LibMultiSense
LibMultiSense Documentation
CamHistoryMessage.hh
Go to the documentation of this file.
1 
41 #ifndef LibMultiSense_CamHistoryMessage
42 #define LibMultiSense_CamHistoryMessage
43 
44 #include "utility/Portability.hh"
45 
46 namespace crl {
47 namespace multisense {
48 namespace details {
49 namespace wire {
50 
51 class CamHistory {
52 public:
55 
56  //
57  // To help debug network issues with the customer, we keep track of
58  // the frame numbers of the images we send. This constant determines
59  // how much history we should remember
60 
61  static CRL_CONSTEXPR uint32_t HISTORY_LENGTH = 50;
62 
63  //
64  // A list of recently-sent frame numbers. '-1' if invalid
65 
67 
68  //
69  // Constructors
70 
72  CamHistory() {};
73 
74  //
75  // Serialization routine
76 
77  template<class Archive>
78  void serialize(Archive& message,
79  const VersionType version)
80  {
81  (void) version;
82  for(unsigned int i = 0; i < HISTORY_LENGTH; i++)
83  message & historyP[i];
84  }
85 };
86 
87 }}}} // namespaces
88 
89 #endif
crl::multisense::details::wire::CamHistory
Definition: CamHistoryMessage.hh:51
crl::multisense::details::wire::CamHistory::ID
static CRL_CONSTEXPR IdType ID
Definition: CamHistoryMessage.hh:53
crl::multisense::details::wire::CamHistory::serialize
void serialize(Archive &message, const VersionType version)
Definition: CamHistoryMessage.hh:78
Portability.hh
CRL_CONSTEXPR
#define CRL_CONSTEXPR
Definition: Portability.hh:49
crl
Definition: BufferStream.hh:51
crl::multisense::details::wire::CamHistory::HISTORY_LENGTH
static CRL_CONSTEXPR uint32_t HISTORY_LENGTH
Definition: CamHistoryMessage.hh:61
crl::multisense::details::wire::ID_DATA_CAM_HISTORY
static CRL_CONSTEXPR IdType ID_DATA_CAM_HISTORY
Definition: Protocol.hh:208
crl::multisense::details::wire::VersionType
uint16_t VersionType
Definition: Protocol.hh:137
crl::multisense::details::wire::CamHistory::CamHistory
CamHistory()
Definition: CamHistoryMessage.hh:72
crl::multisense::details::wire::CamHistory::historyP
int64_t historyP[HISTORY_LENGTH]
Definition: CamHistoryMessage.hh:66
crl::multisense::details::wire::CamHistory::VERSION
static CRL_CONSTEXPR VersionType VERSION
Definition: CamHistoryMessage.hh:54
crl::multisense::details::utility::BufferStreamReader
Definition: BufferStream.hh:192
multisense
Definition: MultiSenseChannel.hh:44
crl::multisense::details::wire::CamHistory::CamHistory
CamHistory(utility::BufferStreamReader &r, VersionType v)
Definition: CamHistoryMessage.hh:71
crl::multisense::details::wire::IdType
uint16_t IdType
Definition: Protocol.hh:136