source: pacpusframework/branches/2.0-beta1/include/Pacpus/kernel/ConnectionBase.h@ 102

Last change on this file since 102 was 102, checked in by morasjul, 11 years ago

beta : correct reading mode

  • Property svn:executable set to *
File size: 675 bytes
Line 
1#ifndef ConnectionBase_H
2#define ConnectionBase_H
3
4#include <Pacpus/kernel/pacpus.h>
5
6namespace pacpus {
7
8class AbstractInterface;
9
10class PACPUSLIB_API ConnectionBase
11{
12public:
13 ConnectionBase(AbstractInterface * interface, int priority):_interface(interface),_priority(priority) {}
14 ~ConnectionBase() {}
15
16 AbstractInterface * getInterface() const {return _interface;}
17 int getPriority() const {return _priority;}
18
19 bool operator== (ConnectionBase const &c) {
20 return _interface == c.getInterface() && _priority == c.getPriority();}
21
22private:
23 AbstractInterface * _interface;
24 int _priority;
25};
26
27} // namespace pacpus
28
29#endif // ConnectionBase_H
Note: See TracBrowser for help on using the repository browser.