CamSetResolutionMessage.h
Go to the documentation of this file.
1 
40 #ifndef LibMultiSense_CamSetResolutionMessage
41 #define LibMultiSense_CamSetResolutionMessage
42 
44 
45 namespace crl {
46 namespace multisense {
47 namespace details {
48 namespace wire {
49 
51 public:
54 
55  //
56  // Parameters
57 
58  uint32_t width;
59  uint32_t height;
60 
61  //
62  // Version 2 additions
63 
64  int32_t disparities;
65 
66  //
67  // Version 3 additions
68  int camMode;
69  int offset;
70 
71  //
72  // Constructors
73 
75  CamSetResolution(uint32_t w=0, uint32_t h=0, int32_t d=-1, int m=0, int o=0) :
76  width(w), height(h), disparities(d), camMode(m), offset(o) {};
77 
78  //
79  // Serialization routine
80 
81  template<class Archive>
82  void serialize(Archive& message,
83  const VersionType version)
84  {
85  message & width;
86  message & height;
87 
88  if (version >= 2)
89  message & disparities;
90  else
91  disparities = 0;
92 
93  if (version >= 3){
94  message & camMode;
95  message & offset;
96  }else{
97  camMode = 0;
98  offset = -1;
99  }
100  }
101 };
102 
103 }}}}; // namespaces
104 
105 #endif
d
CamSetResolution(utility::BufferStreamReader &r, VersionType v)
CamSetResolution(uint32_t w=0, uint32_t h=0, int32_t d=-1, int m=0, int o=0)
void serialize(Archive &message, const VersionType version)
Definition: channel.cc:56
static CRL_CONSTEXPR IdType ID_CMD_CAM_SET_RESOLUTION
Definition: Protocol.h:153
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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