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