DDS  ver. 2.0
ChannelInfo.h
Go to the documentation of this file.
1 // Copyright 2017 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 
6 #ifndef __DDS__ChannelInfo_h
7 #define __DDS__ChannelInfo_h
8 
9 namespace dds
10 {
11  namespace protocol_api
12  {
13  template <class T>
14  struct SChannelInfo
15  {
18  {
19  }
20 
21  SChannelInfo(typename T::connectionPtr_t _channel, uint64_t _protocolHeaderID)
22  : m_channel(_channel)
23  , m_protocolHeaderID(_protocolHeaderID)
24  {
25  }
26  typename T::connectionPtr_t m_channel;
28 
29  typedef std::vector<SChannelInfo<T>> container_t;
30  };
31 
32  template <class T>
33  bool operator==(const SChannelInfo<T>& lhs, const SChannelInfo<T>& rhs)
34  {
35  return lhs.m_channel.get() == rhs.m_channel.get();
36  }
37 
38  template <class T>
40  {
43  {
44  }
45 
46  SWeakChannelInfo(typename T::weakConnectionPtr_t _channel, uint64_t _protocolHeaderID)
47  : m_channel(_channel)
48  , m_protocolHeaderID(_protocolHeaderID)
49  {
50  }
51  typename T::weakConnectionPtr_t m_channel;
53 
54  typedef std::vector<SWeakChannelInfo> container_t;
55  };
56  }
57 }
58 #endif /* __DDS__ChannelInfo_h */
T::weakConnectionPtr_t m_channel
Definition: ChannelInfo.h:51
SWeakChannelInfo()
Definition: ChannelInfo.h:41
Definition: ChannelInfo.h:14
Definition: dds-agent/src/AgentConnectionManager.h:18
Definition: ChannelInfo.h:39
SChannelInfo(typename T::connectionPtr_t _channel, uint64_t _protocolHeaderID)
Definition: ChannelInfo.h:21
SWeakChannelInfo(typename T::weakConnectionPtr_t _channel, uint64_t _protocolHeaderID)
Definition: ChannelInfo.h:46
T::connectionPtr_t m_channel
Definition: ChannelInfo.h:26
bool operator==(const SChannelInfo< T > &lhs, const SChannelInfo< T > &rhs)
Definition: ChannelInfo.h:33
SChannelInfo()
Definition: ChannelInfo.h:16
std::vector< SChannelInfo< T > > container_t
Definition: ChannelInfo.h:29
std::vector< SWeakChannelInfo > container_t
Definition: ChannelInfo.h:54
uint64_t m_protocolHeaderID
Definition: ChannelInfo.h:27
uint64_t m_protocolHeaderID
Definition: ChannelInfo.h:52