Last change
on this file since 96 was 96, checked in by morasjul, 11 years ago |
2.0 minor fixs
|
-
Property svn:executable
set to
*
|
File size:
627 bytes
|
Rev | Line | |
---|
[89] | 1 | #ifndef ConnectionBase_H
|
---|
| 2 | #define ConnectionBase_H
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | namespace pacpus {
|
---|
| 6 |
|
---|
[96] | 7 | class AbstractInterface;
|
---|
[89] | 8 |
|
---|
| 9 | class ConnectionBase
|
---|
| 10 | {
|
---|
| 11 | public:
|
---|
[96] | 12 | ConnectionBase(AbstractInterface * interface, int priority):_interface(interface),_priority(priority) {}
|
---|
[89] | 13 | ~ConnectionBase() {}
|
---|
| 14 |
|
---|
[96] | 15 | AbstractInterface * getInterface() const {return _interface;}
|
---|
[89] | 16 | int getPriority() const {return _priority;}
|
---|
| 17 |
|
---|
| 18 | bool operator== (ConnectionBase const &c) {
|
---|
[96] | 19 | return _interface == c.getInterface() && _priority == c.getPriority();}
|
---|
[89] | 20 |
|
---|
| 21 | private:
|
---|
[96] | 22 | AbstractInterface * _interface;
|
---|
[89] | 23 | int _priority;
|
---|
| 24 | };
|
---|
| 25 |
|
---|
| 26 | } // namespace pacpus
|
---|
| 27 |
|
---|
| 28 | #endif // ConnectionBase_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.