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  message & modifyMask;
84  message & controlMask;
85  }
86 };
87 
88 }}}}; // namespaces
89 
90 #endif
static CRL_CONSTEXPR IdType ID_CMD_STREAM_CONTROL
Definition: Protocol.h:166
StreamControl(utility::BufferStreamReader &r, VersionType v)
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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