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

Last change on this file since 153 was 153, checked in by Marek Kurdej, 11 years ago

Fixed: C4996 unchecked iterator warning on MSVC.

  • Property svn:executable set to *
File size: 788 bytes
RevLine 
[153]1#ifndef CONNECTIONBASE_H
2#define CONNECTIONBASE_H
[89]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:
[153]13 ConnectionBase(AbstractInterface * interface, int priority)
14 : m_interface(interface)
15 , m_priority(priority)
16 {}
[89]17
[153]18 ~ConnectionBase()
19 {}
[89]20
[153]21 AbstractInterface * getInterface() const
22 {
23 return m_interface;
24 }
[89]25
[153]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 }
37
[89]38private:
[153]39 AbstractInterface * m_interface;
40 int m_priority;
[89]41};
42
43} // namespace pacpus
44
[153]45#endif // CONNECTIONBASE_H
Note: See TracBrowser for help on using the repository browser.