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
RevLine 
[89]1#ifndef ConnectionBase_H
2#define ConnectionBase_H
3
[102]4#include <Pacpus/kernel/pacpus.h>
[89]5
6namespace pacpus {
7
[96]8class AbstractInterface;
[89]9
[102]10class PACPUSLIB_API ConnectionBase
[89]11{
12public:
[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
22private:
[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.