DDS  ver. 3.5.3.8.g5fe284b
TestPing.h
Go to the documentation of this file.
1 // Copyright 2016 GSI, Inc. All rights reserved.
2 //
3 //
4 //
5 #ifndef DDS_OCTOPUS_TESTPING_H
6 #define DDS_OCTOPUS_TESTPING_H
7 
8 #include "OctopusTestImpl.h"
9 
10 namespace dds
11 {
12  namespace dds_octopus
13  {
14  //
15  // Send "get_ping" -->
16  // Receive "ping" <---
17  //
18  class CTestPing : public COctopusTestImpl<CTestPing>
19  {
20  public:
21  CTestPing(const SOptions_t& _options);
22 
23  public:
24  BEGIN_OCTOPUS_MSG_MAP("Ping")
27 
28  public:
29  void _init();
30  void onReturnCmd(const SOctopusProtocol_Return& _ping, uint64_t _senderId);
31 
32  private:
33  size_t m_nConfirmedPings;
34  };
35  } // namespace dds_octopus
36 } // namespace dds
37 #endif
Definition: OctopusProtocol.h:63
void _init()
Definition: TestPing.cpp:18
Definition: TestPing.h:18
BEGIN_OCTOPUS_MSG_MAP("Ping") OCTOPUS_MSG_HANDLER(onReturnCmd
CTestPing(const SOptions_t &_options)
Definition: TestPing.cpp:12
Definition: dds-octopus/src/Options.h:23
Definition: AgentConnectionManager.h:13
void onReturnCmd(const SOctopusProtocol_Return &_ping, uint64_t _senderId)
Definition: TestPing.cpp:30
Definition: OctopusTestImpl.h:67
#define OCTOPUS_MSG_HANDLER(func, cmd)
Definition: OctopusTestImpl.h:42
#define END_OCTOPUS_MSG_MAP
Definition: OctopusTestImpl.h:51