StreamControlMessage.h
Go to the documentation of this file.
1 
37 #ifndef LibMultiSense_StreamControlMessage
38 #define LibMultiSense_StreamControlMessage
39 
41 
42 namespace crl {
43 namespace multisense {
44 namespace details {
45 namespace wire {
46 
48 public:
51 
52  //
53  // Set modify mask bit high to have the device
54  // accept the corresponding bit in the control mask.
55 
58 
59  //
60  // Convenience functions
61 
62  void enable(SourceType mask) {
63  modifyMask = controlMask = mask;
64  };
65  void disable(SourceType mask) {
66  modifyMask = mask; controlMask = 0;
67  };
68 
69  //
70  // Constructor
71 
74  : modifyMask(0), controlMask(0) {};
75 
76  //
77  // Serialization routine.
78 
79  template<class Archive>
80  void serialize(Archive& message,
81  const VersionType version)
82  {
83  (void) version;
84  message & modifyMask;
85  message & controlMask;
86  }
87 };
88 
89 }}}} // namespaces
90 
91 #endif
static CRL_CONSTEXPR IdType ID_CMD_STREAM_CONTROL
Definition: Protocol.h:175
StreamControl(utility::BufferStreamReader &r, VersionType v)
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
#define CRL_CONSTEXPR
Definition: Portability.hh:51


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