LibMultiSense
LibMultiSense Documentation
Loading...
Searching...
No Matches
CamHistoryMessage.hh
Go to the documentation of this file.
1
41#ifndef LibMultiSense_CamHistoryMessage
42#define LibMultiSense_CamHistoryMessage
43
45
46namespace crl {
47namespace multisense {
48namespace details {
49namespace wire {
50
52public:
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
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
Macros and symbols to help portability between different compiler versions.
#define CRL_CONSTEXPR
static CRL_CONSTEXPR uint32_t HISTORY_LENGTH
static CRL_CONSTEXPR VersionType VERSION
CamHistory(utility::BufferStreamReader &r, VersionType v)
void serialize(Archive &message, const VersionType version)
static CRL_CONSTEXPR IdType ID_DATA_CAM_HISTORY
Definition Protocol.hh:208