X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fport.cpp;h=678be06e991bdfb4dce3bbd31f88c36732795cbd;hb=e7ccd0d35487219da5d1e447e5fd435ad763ba4c;hp=a96e151fcd63c9d82f933d91bfc9b879d469c96e;hpb=d21b97e4f7f62ccdaf347012d6355a76f974f87e;p=netvis.git 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);