ATLAS Offline Software
Loading...
Searching...
No Matches
xAODCnv.h
Go to the documentation of this file.
1
2
3/*
4 Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
5*/
6
7// xAODCnv.h
8// Header file for class xAODCnv
9// Author: Johannes Elmsheuser, Will Buttinger
11#ifndef ATHENAROOTCOMPS_XAODCNV_H
12#define ATHENAROOTCOMPS_XAODCNV_H 1
13
14// STL includes
15#include <iosfwd>
16
17// FrameWork includes
18#include "GaudiKernel/Converter.h"
19#include "GaudiKernel/ClassID.h"
22
23// Forward declaration
24class TLeaf;
25class ISvcLocator;
26class DataObject;
27class IOpaqueAddress;
28class StatusCode;
30template <class TYPE> class CnvFactory;
31
32namespace Athena {
33
35 : public ::Converter,
36 public ::AthMessaging
37{
38
40 // Public methods:
42 public:
43
45 xAODCnv( const CLID& clid, ISvcLocator* pSvcLocator );
46 xAODCnv(ISvcLocator* pSvcLocator);
47
49 virtual ~xAODCnv();
50
52
53 virtual StatusCode initialize();
55
57 // Const methods:
59
61 // Non-const methods:
63
64 long repSvcType() const;
65
69 virtual StatusCode createObj(IOpaqueAddress* pAddr, DataObject*& pObj);
70
74 virtual StatusCode createRep(DataObject* pObj, IOpaqueAddress*& pAddr);
75
77 static long storageType();
78
80 static const CLID& classID() { return CLID_NULL; }
81
82
84 // Private data:
86 private:
87
90
91};
92
94// Inline methods:
96//std::ostream& operator<<( std::ostream& out, const xAODCnv& o );
97
98} //> end namespace Athena
99
100#endif //> !ATHENAROOTCOMPS_XAODCNV_H
uint32_t CLID
The Class ID type.
TTypeAdapter RootType
Definition RootType.h:211
AthMessaging(IMessageSvc *msgSvc, const std::string &name)
Constructor.
virtual ~xAODCnv()
Destructor:
Definition xAODCnv.cxx:81
static const CLID & classID()
Definition xAODCnv.h:80
static long storageType()
Definition xAODCnv.cxx:218
xAODCnv(const CLID &clid, ISvcLocator *pSvcLocator)
Constructor with parameters:
Definition xAODCnv.cxx:53
virtual StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&pObj)
Create a transient object from a persistent representation.
Definition xAODCnv.cxx:142
virtual StatusCode initialize()
Gaudi Service Implementation.
Definition xAODCnv.cxx:88
long repSvcType() const
Definition xAODCnv.cxx:128
virtual StatusCode createRep(DataObject *pObj, IOpaqueAddress *&pAddr)
Create a persistent representation for a transient object.
Definition xAODCnv.cxx:171
RootType m_type
the type we can convert
Definition xAODCnv.h:89
Abstract factory to create the converter.
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....