6 #include "eformat/util.h"
7 #include "eformat/Version.h"
14 const uint16_t MAJOR_V50_VERSION = 0x0500;
22 eformat::CheckSum event_checksum,
23 eformat::CheckSum rob_checksum)
25 switch (eformat::peek_type(
src)) {
26 case eformat::FULL_EVENT:
27 switch (eformat::peek_major_version(
src)) {
28 case ::MAJOR_V50_VERSION:
30 case eformat::MAJOR_V40_VERSION:
34 throw EFORMAT_BAD_VERSION(eformat::peek_major_version(
src), ::MAJOR_V50_VERSION);
37 throw EFORMAT_UNSUPPORTED_OPERATION(
"convert to v40 format",
src[0]);