X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fport.h;fp=source%2Fport.h;h=ebc9c22d98afee9e50035933a6568c2bc4c8a50d;hb=c147c9caaf9bc2f6323baf188a438ced9f0f5894;hp=0000000000000000000000000000000000000000;hpb=6ffe2b950143c5474659cbca2bbcdf58d6b8322c;p=netvis.git diff --git a/source/port.h b/source/port.h new file mode 100644 index 0000000..ebc9c22 --- /dev/null +++ b/source/port.h @@ -0,0 +1,29 @@ +/* $Id$ + +This file is part of NetVis +Copyright @ 2008 Mikko Rasa, Mikkosoft Productions +Distributed unter the GPL +*/ + +#ifndef PORT_H_ +#define PORT_H_ + +#include +#include + +class Port +{ +private: + unsigned number; + std::string name; + Msp::GL::Color color; + +public: + Port(unsigned, const Msp::GL::Color &); + + unsigned get_number() const { return number; } + const std::string &get_name() const { return name; } + const Msp::GL::Color &get_color() const { return color; } +}; + +#endif