AckMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_AckMessage
38 #define LibMultiSense_AckMessage
39 
41 
42 namespace crl {
43 namespace multisense {
44 namespace details {
45 namespace wire {
46 
47 class Ack {
48 public:
51 
52  IdType command; // the command being [n]ack'd
54 
55  //
56  // Constructors
57 
59  Ack(IdType c=0, Status s=Status_Ok) : command(c), status(s) {};
60 
61  //
62  // Serialization routine
63 
64  template<class Archive>
65  void serialize(Archive& message,
66  const VersionType version)
67  {
68  (void) version;
69  message & command;
70  message & status;
71  }
72 };
73 
74 }}}} // namespaces
75 
76 #endif
static CRL_CONSTEXPR IdType ID
Definition: AckMessage.h:49
static CRL_CONSTEXPR VersionType VERSION
Definition: AckMessage.h:50
Ack(IdType c=0, Status s=Status_Ok)
Definition: AckMessage.h:59
Definition: channel.cc:56
static CRL_CONSTEXPR Status Status_Ok
Ack(utility::BufferStreamReader &r, VersionType v)
Definition: AckMessage.h:58
static CRL_CONSTEXPR IdType ID_ACK
Definition: Protocol.h:151
void serialize(Archive &message, const VersionType version)
Definition: AckMessage.h:65
#define CRL_CONSTEXPR
Definition: Portability.hh:51


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