X-Git-Url: http://git.tdb.fi/?p=netvis.git;a=blobdiff_plain;f=source%2Fport.cpp;h=678be06e991bdfb4dce3bbd31f88c36732795cbd;hp=a96e151fcd63c9d82f933d91bfc9b879d469c96e;hb=HEAD;hpb=e4b57e21ec2bc7f99c182eea23ecec297e111799 diff --git a/source/port.cpp b/source/port.cpp index a96e151..678be06 100644 --- a/source/port.cpp +++ b/source/port.cpp @@ -92,6 +92,11 @@ Port::Port(NetVis &v, unsigned n): bld.end(); } +void Port::set_name(const string &n) +{ + name = n; +} + void Port::add_activity(unsigned bytes) { activity.add_bytes(bytes);