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  (void) version;
71  message & payloadSize;
72  for(uint32_t i=0; i<payloadSize; ++i) {
73  uint8_t dummy = 0;
74  message & dummy;
75  }
76  }
77 };
78 
79 }}}} // namespaces
80 
81 #endif
static CRL_CONSTEXPR IdType ID_DATA_SYS_TEST_MTU_RESPONSE
Definition: Protocol.h:212
void serialize(Archive &message, const VersionType version)
Definition: channel.cc:56
SysTestMtuResponse(utility::BufferStreamReader &r, VersionType v)
#define CRL_CONSTEXPR
Definition: Portability.hh:51


multisense_lib
Author(s):
autogenerated on Sun Mar 14 2021 02:34:50