]> git.stg.codes - ssmd.git/blob - include/subscriber.h
Ignore more files.
[ssmd.git] / include / subscriber.h
1 #ifndef __SSMD_SUBSCRIBER_H__
2 #define __SSMD_SUBSCRIBER_H__
3
4 #include <string>
5
6 namespace SSMD {
7
8 class Subscriber {
9     public:
10         Subscriber(const std::string & mac,
11                    unsigned port,
12                    unsigned upShape,
13                    unsigned downShape,
14                    unsigned upBurst,
15                    unsigned downBurst);
16         ~Subscriber();
17
18         std::string getHexMAC() const;
19         const std::string & getMAC() const { return _mac; }
20         unsigned getPort() const { return _port; }
21         unsigned getUpShape() const { return _upShape; }
22         unsigned getUpBurst() const { return _upBurst; }
23         unsigned getDownShape() const { return _downShape; }
24         unsigned getDownBurst() const { return _downBurst; }
25
26     private:
27         std::string _mac;
28         unsigned _port;
29         unsigned _upShape;
30         unsigned _downShape;
31         unsigned _upBurst;
32         unsigned _downBurst;
33 };
34
35 }
36
37 #endif