DDS  ver. 3.6
AgentsInfoCmd.h
Go to the documentation of this file.
1 // Copyright 2014 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 #ifndef __DDS__AgentsInfoCmd__
6 #define __DDS__AgentsInfoCmd__
7 // DDS
8 #include "BasicCmd.h"
9 
10 namespace dds
11 {
12  namespace protocol_api
13  {
14  // the message is sent for each agent
15  struct SAgentsInfoCmd : public SBasicCmd<SAgentsInfoCmd>
16  {
18  size_t size() const;
19  void _convertFromData(const dds::misc::BYTEVector_t& _data);
20  void _convertToData(dds::misc::BYTEVector_t* _data) const;
21  bool operator==(const SAgentsInfoCmd& _val) const;
22 
23  uint32_t m_nActiveAgents;
24  uint32_t m_nIndex;
25  std::string m_sAgentInfo;
26  };
27  std::ostream& operator<<(std::ostream& _stream, const SAgentsInfoCmd& _val);
28  bool operator!=(const SAgentsInfoCmd& _lhs, const SAgentsInfoCmd& _rhs);
29  } // namespace protocol_api
30 }; // namespace dds
31 
32 #endif /* defined(__DDS__AgentsInfoCmd__) */
Definition: BasicCmd.h:475
void _convertToData(dds::misc::BYTEVector_t *_data) const
Definition: AgentsInfoCmd.cpp:33
void _convertFromData(const dds::misc::BYTEVector_t &_data)
Definition: AgentsInfoCmd.cpp:28
SAgentsInfoCmd()
Definition: AgentsInfoCmd.cpp:12
bool operator==(const SAgentsInfoCmd &_val) const
Definition: AgentsInfoCmd.cpp:23
std::string m_sAgentInfo
index of the current agent
Definition: AgentsInfoCmd.h:25
uint32_t m_nIndex
the number of online agents
Definition: AgentsInfoCmd.h:24
std::vector< unsigned char > BYTEVector_t
An STL vector of bytes.
Definition: def.h:124
uint32_t m_nActiveAgents
Definition: AgentsInfoCmd.h:23
Miscellaneous functions and helpers are located here.
Definition: AgentConnectionManager.h:13
std::ostream & operator<<(std::ostream &_stream, const SAgentsInfoCmd &_val)
Definition: AgentsInfoCmd.cpp:38
size_t size() const
Definition: AgentsInfoCmd.cpp:18
bool operator!=(const SAgentsInfoCmd &_lhs, const SAgentsInfoCmd &_rhs)
Definition: AgentsInfoCmd.cpp:43
Definition: AgentsInfoCmd.h:15