LibMultiSense
LibMultiSense Documentation
SecondaryAppControlMessage.hh
Go to the documentation of this file.
1 
39 #ifndef LibMultiSense_SecondaryAppControl
40 #define LibMultiSense_SecondaryAppControl
41 
42 #include "utility/Portability.hh"
43 #include "wire/Protocol.hh"
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
51 public:
54 
55  //
56  // Parameters representing the current camera configuration
57  uint32_t dataLength;
58 
59  uint8_t data[1024];
60 
61 
62  //
63  // Constructors
64 
67  dataLength(0),
68  data()
69  {};
70 
71  //
72  // Serialization routine
73 
74  template<class Archive>
75  void serialize(Archive& message,
76  const VersionType version)
77  {
78  (void) version;
79  message & dataLength;
80  for (size_t i = 0; i < dataLength; i++)
81  {
82  message & data[i];
83  }
84  }
85 };
86 
87 }}}} // namespaces
88 
89 #endif
crl::multisense::details::wire::SecondaryAppControl::ID
static CRL_CONSTEXPR IdType ID
Definition: SecondaryAppControlMessage.hh:52
crl::multisense::details::wire::SecondaryAppControl::serialize
void serialize(Archive &message, const VersionType version)
Definition: SecondaryAppControlMessage.hh:75
crl::multisense::details::wire::ID_CMD_SECONDARY_APP_CONTROL
static CRL_CONSTEXPR IdType ID_CMD_SECONDARY_APP_CONTROL
Definition: Protocol.hh:198
crl::multisense::details::wire::SecondaryAppControl::data
uint8_t data[1024]
Definition: SecondaryAppControlMessage.hh:59
Portability.hh
Protocol.hh
CRL_CONSTEXPR
#define CRL_CONSTEXPR
Definition: Portability.hh:49
crl::multisense::details::wire::SecondaryAppControl::dataLength
uint32_t dataLength
Definition: SecondaryAppControlMessage.hh:57
crl
Definition: BufferStream.hh:51
crl::multisense::details::wire::SecondaryAppControl
Definition: SecondaryAppControlMessage.hh:50
crl::multisense::details::wire::VersionType
uint16_t VersionType
Definition: Protocol.hh:137
crl::multisense::details::wire::SecondaryAppControl::SecondaryAppControl
SecondaryAppControl(utility::BufferStreamReader &r, VersionType v)
Definition: SecondaryAppControlMessage.hh:65
crl::multisense::details::wire::SecondaryAppControl::VERSION
static CRL_CONSTEXPR VersionType VERSION
Definition: SecondaryAppControlMessage.hh:53
crl::multisense::details::utility::BufferStreamReader
Definition: BufferStream.hh:192
multisense
Definition: MultiSenseChannel.hh:44
crl::multisense::details::wire::SecondaryAppControl::SecondaryAppControl
SecondaryAppControl()
Definition: SecondaryAppControlMessage.hh:66
crl::multisense::details::wire::IdType
uint16_t IdType
Definition: Protocol.hh:136