Changeset 153 in pacpusframework for branches/2.0-beta1/include/Pacpus/kernel/ConnectionBase.h
- Timestamp:
- 08/01/13 11:42:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.0-beta1/include/Pacpus/kernel/ConnectionBase.h
r102 r153 1 #ifndef C onnectionBase_H2 #define C onnectionBase_H1 #ifndef CONNECTIONBASE_H 2 #define CONNECTIONBASE_H 3 3 4 4 #include <Pacpus/kernel/pacpus.h> … … 11 11 { 12 12 public: 13 ConnectionBase(AbstractInterface * interface, int priority):_interface(interface),_priority(priority) {} 14 ~ConnectionBase() {} 13 ConnectionBase(AbstractInterface * interface, int priority) 14 : m_interface(interface) 15 , m_priority(priority) 16 {} 15 17 16 AbstractInterface * getInterface() const {return _interface;}17 int getPriority() const {return _priority;}18 ~ConnectionBase() 19 {} 18 20 19 bool operator== (ConnectionBase const &c) { 20 return _interface == c.getInterface() && _priority == c.getPriority();} 21 AbstractInterface * getInterface() const 22 { 23 return m_interface; 24 } 25 26 int getPriority() const 27 { 28 return m_priority; 29 } 30 31 bool operator==(ConnectionBase const &c) 32 { 33 return getInterface() == c.getInterface() 34 && getPriority() == c.getPriority() 35 ; 36 } 21 37 22 38 private: 23 AbstractInterface * _interface;24 int _priority;39 AbstractInterface * m_interface; 40 int m_priority; 25 41 }; 26 42 27 43 } // namespace pacpus 28 44 29 #endif // C onnectionBase_H45 #endif // CONNECTIONBASE_H
Note:
See TracChangeset
for help on using the changeset viewer.