Last change
on this file since 89 was 89, checked in by morasjul, 11 years ago |
PACPUS 2.0 Beta deployed in new branch
Major changes:
-Add communication interface between components
-Add examples for communications interface (TestComponents)
-Move to Qt5 support
|
-
Property svn:executable
set to
*
|
File size:
617 bytes
|
Rev | Line | |
---|
[89] | 1 | #ifndef ConnectionBase_H
|
---|
| 2 | #define ConnectionBase_H
|
---|
| 3 |
|
---|
| 4 |
|
---|
| 5 | namespace pacpus {
|
---|
| 6 |
|
---|
| 7 | class InputInterfaceBase;
|
---|
| 8 |
|
---|
| 9 | class ConnectionBase
|
---|
| 10 | {
|
---|
| 11 | public:
|
---|
| 12 | ConnectionBase(InputInterfaceBase * input, int priority):_input(input),_priority(priority) {}
|
---|
| 13 | ~ConnectionBase() {}
|
---|
| 14 |
|
---|
| 15 | InputInterfaceBase * getInputInterface() const {return _input;}
|
---|
| 16 | int getPriority() const {return _priority;}
|
---|
| 17 |
|
---|
| 18 | bool operator== (ConnectionBase const &c) {
|
---|
| 19 | return _input == c.getInputInterface() && _priority == c.getPriority();}
|
---|
| 20 |
|
---|
| 21 | private:
|
---|
| 22 | InputInterfaceBase * _input;
|
---|
| 23 | int _priority;
|
---|
| 24 | };
|
---|
| 25 |
|
---|
| 26 | } // namespace pacpus
|
---|
| 27 |
|
---|
| 28 | #endif // ConnectionBase_H
|
---|
Note:
See
TracBrowser
for help on using the repository browser.