00001 #pragma once
00002
00003 #ifndef TRIGSTEERINGEVENT_GENERICRESULT_H
00004 #define TRIGSTEERINGEVENT_GENERICRESULT_H
00005
00014 #include <stdint.h>
00015 #include "CLIDSvc/CLASS_DEF.h"
00016
00017 class GenericResult {
00018 public:
00019 GenericResult(){}
00020 virtual ~GenericResult(){}
00025 virtual bool accepted() const = 0;
00026
00031 virtual bool error() const = 0;
00032
00037 virtual uint32_t error_bits() const = 0;
00038
00039
00040
00041
00042
00043
00049 virtual bool serialize( std::vector<uint32_t>& output ) = 0;
00050
00064 virtual bool serialize( uint32_t*& output, int& data_size, const int max_size=-1, const unsigned int mod_id = 0 ) = 0;
00065
00071 virtual bool deserialize( const std::vector<uint32_t>& source ) = 0;
00072
00078 virtual bool deserialize( uint32_t* source, int data_size ) = 0;
00079 };
00080
00081 CLASS_DEF ( GenericResult, 102650969, 1)
00082
00083 #endif // TRIGSTEERINGEVENT_GENERICRESULT_H