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  message & command;
69  message & status;
70  }
71 };
72 
73 }}}}; // namespaces
74 
75 #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:142
void serialize(Archive &message, const VersionType version)
Definition: AckMessage.h:65
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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