ATLAS Offline Software
ITrigSerializerToolBase.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef ITRIGSERIALIZERTOOLBASE_H
6 #define ITRIGSERIALIZERTOOLBASE_H
7 
8 #include "GaudiKernel/IAlgTool.h"
9 #include "GaudiKernel/ClassID.h"
10 #include <vector>
11 #include <stdint.h>
12 
13 
20 static const InterfaceID IID_ITrigSerializerToolBase("ITrigSerializerToolBase", 1 , 0);
21 
22 
24 public:
25 
30  virtual void serialize(const std::string &nameOfClass, const void* instance, std::vector<uint32_t> &v) = 0;
31 
36  virtual std::vector<uint32_t> serialize(const std::string &nameOfClass, const void* instance) = 0;
37 
42  virtual void* deserialize(const std::string &nameOfClass, const std::vector<uint32_t>& v) = 0;
43 
49  virtual StatusCode initClass(const std::string &nameOfClass) const = 0;
50 
56  virtual void reset()=0;
57 
64  virtual void setCLID(const uint32_t *guid) = 0;
65 
68  virtual StatusCode peekCLID(const std::vector<uint32_t>& v, uint32_t *guid) const = 0;
69 
73  virtual ~ITrigSerializer(){;}
74 
75 };
76 
77 
78 
79 
80 
86 class ITrigSerializerToolBase : virtual public ITrigSerializer, virtual public IAlgTool
87 
88 {
89  public:
90 
91  // Retrieve interface ID
92  static const InterfaceID& interfaceID() { return IID_ITrigSerializerToolBase; }
93 
94  // virtual ~ITrigSerializerToolBase() {}
95 
96 
97 
98 };
99 
100 #endif
101 
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
ITrigSerializer::serialize
virtual void serialize(const std::string &nameOfClass, const void *instance, std::vector< uint32_t > &v)=0
serializes an object of a class nameOfClass pointed to by instance and recursively also other objects...
instance
std::map< std::string, double > instance
Definition: Run_To_Get_Tags.h:8
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
ITrigSerializer
Definition: ITrigSerializerToolBase.h:23
ITrigSerializer::reset
virtual void reset()=0
clean internal serializer state.
pool_uuid.guid
guid
Definition: pool_uuid.py:112
ITrigSerializerToolBase::interfaceID
static const InterfaceID & interfaceID()
Definition: ITrigSerializerToolBase.h:92
ITrigSerializer::deserialize
virtual void * deserialize(const std::string &nameOfClass, const std::vector< uint32_t > &v)=0
deserializes an object of a class nameOfClass (and recursively other objects) found in std::vector<ui...
ITrigSerializer::setCLID
virtual void setCLID(const uint32_t *guid)=0
access clid of the payload virtual CLID getCLID() const = 0;
ITrigSerializer::~ITrigSerializer
virtual ~ITrigSerializer()
Definition: ITrigSerializerToolBase.h:73
python.PyAthena.v
v
Definition: PyAthena.py:154
ITrigSerializer::initClass
virtual StatusCode initClass(const std::string &nameOfClass) const =0
initialize framework to be ready to serialize a given class method to be called to prevent delayed in...
ITrigSerializer::serialize
virtual std::vector< uint32_t > serialize(const std::string &nameOfClass, const void *instance)=0
serializes an object of a class nameOfClass pointed to by instance and recursively also other objects...
ITrigSerializerToolBase
Definition: ITrigSerializerToolBase.h:88
ITrigSerializer::peekCLID
virtual StatusCode peekCLID(const std::vector< uint32_t > &v, uint32_t *guid) const =0
access clid of the payload (stored in BS)