SysTestMtuResponseMessage.h
Go to the documentation of this file.
00001 
00037 #ifndef LibMultiSense_SysTestMtuResponseMessage
00038 #define LibMultiSense_SysTestMtuResponseMessage
00039 
00040 #include <typeinfo>
00041 
00042 #include "details/utility/Portability.hh"
00043 
00044 namespace crl {
00045 namespace multisense {
00046 namespace details {
00047 namespace wire {
00048 
00049 class SysTestMtuResponse {
00050 public:
00051     static CRL_CONSTEXPR IdType      ID          = ID_DATA_SYS_TEST_MTU_RESPONSE;
00052     static CRL_CONSTEXPR VersionType VERSION     = 1;
00053     static CRL_CONSTEXPR uint32_t    HEADER_SIZE = sizeof(uint32_t);
00054 
00055     uint32_t payloadSize;
00056 
00057     //
00058     // Constructors
00059 
00060     SysTestMtuResponse(utility::BufferStreamReader&r, VersionType v) {serialize(r,v);};
00061     SysTestMtuResponse(uint32_t s=0) : payloadSize(s) {};
00062 
00063     //
00064     // Serialization routine
00065 
00066     template<class Archive>
00067         void serialize(Archive&          message,
00068                        const VersionType version)
00069     {
00070         message & payloadSize;
00071         for(uint32_t i=0; i<payloadSize; ++i) {
00072             uint8_t dummy = 0;
00073             message & dummy;
00074         }
00075     }
00076 };
00077 
00078 }}}}; // namespaces
00079 
00080 #endif


multisense_lib
Author(s):
autogenerated on Thu Aug 27 2015 14:01:11