SysTestMtuResponseMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_SysTestMtuResponseMessage
38 #define LibMultiSense_SysTestMtuResponseMessage
39 
40 #include <typeinfo>
41 
43 
44 namespace crl {
45 namespace multisense {
46 namespace details {
47 namespace wire {
48 
50 public:
53  static CRL_CONSTEXPR uint32_t HEADER_SIZE = sizeof(uint32_t);
54 
55  uint32_t payloadSize;
56 
57  //
58  // Constructors
59 
61  SysTestMtuResponse(uint32_t s=0) : payloadSize(s) {};
62 
63  //
64  // Serialization routine
65 
66  template<class Archive>
67  void serialize(Archive& message,
68  const VersionType version)
69  {
70  message & payloadSize;
71  for(uint32_t i=0; i<payloadSize; ++i) {
72  uint8_t dummy = 0;
73  message & dummy;
74  }
75  }
76 };
77 
78 }}}}; // namespaces
79 
80 #endif
static CRL_CONSTEXPR IdType ID_DATA_SYS_TEST_MTU_RESPONSE
Definition: Protocol.h:201
void serialize(Archive &message, const VersionType version)
Definition: channel.cc:56
SysTestMtuResponse(utility::BufferStreamReader &r, VersionType v)
#define CRL_CONSTEXPR
Definition: Portability.hh:38


multisense_lib
Author(s):
autogenerated on Sat Apr 6 2019 02:16:46