CamHistoryMessage.h
Go to the documentation of this file.
1 
41 #ifndef LibMultiSense_CamHistoryMessage
42 #define LibMultiSense_CamHistoryMessage
43 
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  for(unsigned int i = 0; i < HISTORY_LENGTH; i++)
82  message & historyP[i];
83  }
84 };
85 
86 }}}}; // namespaces
87 
88 #endif
static CRL_CONSTEXPR uint32_t HISTORY_LENGTH
static CRL_CONSTEXPR IdType ID_DATA_CAM_HISTORY
Definition: Protocol.h:185
static CRL_CONSTEXPR VersionType VERSION
Definition: channel.cc:56
void serialize(Archive &message, const VersionType version)
CamHistory(utility::BufferStreamReader &r, VersionType v)
#define CRL_CONSTEXPR
Definition: Portability.hh:38


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