]> git.tdb.fi Git - netvis.git/blobdiff - source/port.h
Resolve port names
[netvis.git] / source / port.h
diff --git a/source/port.h b/source/port.h
new file mode 100644 (file)
index 0000000..ebc9c22
--- /dev/null
@@ -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 <string>
+#include <msp/gl/color.h>
+
+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