ATLAS Offline Software
Loading...
Searching...
No Matches
GenericResult.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3*/
4
5#pragma once
6// emacs -*- c++ -*-
7#ifndef TRIGSTEERINGEVENT_GENERICRESULT_H
8#define TRIGSTEERINGEVENT_GENERICRESULT_H
9
17
18#include <stdint.h>
19#include "xAODCore/CLASS_DEF.h"
20
22 public:
24 virtual ~GenericResult(){}
29 virtual bool accepted() const = 0;
30
35 virtual bool error() const = 0;
36
41 virtual uint32_t error_bits() const = 0;
42
43 /*
44 virtual bctime() = 0;
45 virtual char lvl1confirmation() = 0;
46 */
47
53 virtual bool serialize( std::vector<uint32_t>& output ) = 0;
54
68 virtual bool serialize( uint32_t*& output, int& data_size, const int max_size=-1, const unsigned int mod_id = 0 ) = 0;
69
75 virtual bool deserialize( const std::vector<uint32_t>& source ) = 0;
76
82 virtual bool deserialize( uint32_t* source, int data_size ) = 0;
83};
84
85CLASS_DEF ( GenericResult, 102650969, 1)
86
87#endif // TRIGSTEERINGEVENT_GENERICRESULT_H
#define CLASS_DEF(NAME, CID, VERSION)
associate a clid and a version to a type eg
File providing the different SG_BASE macros.
the interface class for all HLT, CALIB, MONITORING results The class define the interface between PSC...
virtual bool deserialize(const std::vector< uint32_t > &source)=0
unpacking raw result into the usable high level object
virtual bool serialize(uint32_t *&output, int &data_size, const int max_size=-1, const unsigned int mod_id=0)=0
the optimized version of the above, works on plain C array the content is the same as in above
virtual bool deserialize(uint32_t *source, int data_size)=0
more efficient version of above deserialize, using raw C arrays
virtual bool serialize(std::vector< uint32_t > &output)=0
get the result of the processing as the raw vector of 32 bit unsigned integers
virtual ~GenericResult()
virtual uint32_t error_bits() const =0
bit flags to explain problems during processing
virtual bool error() const =0
problems during processing
virtual bool accepted() const =0
reject or accept