]> git.tdb.fi Git - netvis.git/blob - source/port.h
ebc9c22d98afee9e50035933a6568c2bc4c8a50d
[netvis.git] / source / port.h
1 /* $Id$
2
3 This file is part of NetVis
4 Copyright @ 2008 Mikko Rasa, Mikkosoft Productions
5 Distributed unter the GPL
6 */
7
8 #ifndef PORT_H_
9 #define PORT_H_
10
11 #include <string>
12 #include <msp/gl/color.h>
13
14 class Port
15 {
16 private:
17         unsigned number;
18         std::string name;
19         Msp::GL::Color color;
20
21 public:
22         Port(unsigned, const Msp::GL::Color &);
23
24         unsigned get_number() const { return number; }
25         const std::string &get_name() const { return name; }
26         const Msp::GL::Color &get_color() const { return color; }
27 };
28
29 #endif