8 uint32_t wordEventOffset,
9 uint32_t expectedLength,
12 expectedLength_(expectedLength) {
13 errors_[
"TRAILER::EVENT LENGTH"] = 0;
31 std::pair<bool, std::string> res;
35 checkErrors += res.second;
36 (
errors_[
"TRAILER::EVENT LENGTH"])++;
41 checkErrors += res.second;
47 checkErrors += res.second;
53 if (!checkErrors.empty()) {
54 errorString_ +=
"\n ======================================================================\n";
57 errorString_ +=
"\n ======================================================================";
virtual std::pair< bool, std::string > checkDataField(std::string name, uint32_t data)
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * mapperFields_
DCCTBDataParser * parser_
std::map< std::string, uint32_t > errors_
DCCTBTrailerBlock(DCCTBDataParser *parser, const uint32_t *buffer, uint32_t numbBytes, uint32_t wToEnd, uint32_t wordEventOffset, uint32_t expectedLength, uint32_t expectedCRC)
DCCTBDataMapper * mapper()
std::set< DCCTBDataField *, DCCTBDataFieldComparator > * trailerFields()