ATLAS Offline Software
Loading...
Searching...
No Matches
xAODCnvSvc.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// NtupleCnvSvc.h
8// Header file for class NtupleCnvSvc
9// Author: S.Binet<binet@cern.ch>
11#ifndef ATHENAROOTCOMPS_XAODCNVSVC_H
12#define ATHENAROOTCOMPS_XAODCNVSVC_H 1
13
14// STL includes
15#include <string>
16
17// FrameWork includes
19
20// GaudiKernel
21#include "GaudiKernel/IConversionSvc.h"
22
23
24namespace Athena {
25
27 : public extends<::AthCnvSvc, ::IConversionSvc>
28{
30 // Public methods:
32 public:
33
35 xAODCnvSvc( const std::string& name, ISvcLocator* pSvcLocator );
36
38 virtual ~xAODCnvSvc();
39
40 // Assignment operator:
41 //xAODCnvSvc &operator=(const xAODCnvSvc &alg);
42
44
45 virtual StatusCode initialize();
46 virtual StatusCode finalize();
48
50
51
54 virtual
55 StatusCode updateServiceState(IOpaqueAddress* pAddress);
56
61 virtual
62 StatusCode createObj(IOpaqueAddress* pAddress, DataObject*& refpObject);
63
69 virtual
70 StatusCode createRep(DataObject* pObject, IOpaqueAddress*& refpAddress);
71
77 virtual
78 StatusCode fillRepRefs(IOpaqueAddress* pAddress, DataObject* pObject);
79
84 virtual
85 StatusCode connectOutput(const std::string& outputConnectionSpec,
86 const std::string& openMode);
87
91 virtual
92 StatusCode connectOutput(const std::string& outputConnectionSpec);
93
95 virtual
96 StatusCode commitOutput(const std::string& outputConnectionSpec,
97 bool doCommit);
98
100
102
103
111 virtual
112 StatusCode createAddress(long svcType,
113 const CLID& clid,
114 const std::string* par,
115 const unsigned long* ip,
116 IOpaqueAddress*& refpAddress);
117
121 virtual
122 StatusCode convertAddress(const IOpaqueAddress* pAddress,
123 std::string& refAddress);
124
130 virtual
131 StatusCode createAddress(long svcType,
132 const CLID& clid,
133 const std::string& refAddress,
134 IOpaqueAddress*& refpAddress);
136
137protected:
138
140 virtual
141 IConverter* createConverter(long typ,
142 const CLID& clid,
143 const ICnvFactory* fac);
144
146 // Private data:
148 private:
149
152
154
155
156};
157
158} //> end namespace Athena
159
160#endif //> !ATHENAROOTCOMPS_XAODCNVSVC_H
uint32_t CLID
The Class ID type.
virtual StatusCode initialize()
Gaudi Service Implementation.
virtual StatusCode createObj(IOpaqueAddress *pAddress, DataObject *&refpObject)
Implementation of IConverter: Create the transient representation of an object from persistent state.
virtual StatusCode connectOutput(const std::string &outputConnectionSpec, const std::string &openMode)
Connect the output connection specification to the service with open mode.
virtual StatusCode convertAddress(const IOpaqueAddress *pAddress, std::string &refAddress)
Convert address to string form.
virtual IConverter * createConverter(long typ, const CLID &clid, const ICnvFactory *fac)
Create new Converter using factory (override AthCnvSvc::createConverter)
virtual StatusCode commitOutput(const std::string &outputConnectionSpec, bool doCommit)
Commit pending output.
virtual StatusCode updateServiceState(IOpaqueAddress *pAddress)
IConversionSvc and IConverter interfaces
virtual ~xAODCnvSvc()
Destructor:
virtual StatusCode fillRepRefs(IOpaqueAddress *pAddress, DataObject *pObject)
Implementation of IConverter: Resolve the references of the converted object.
virtual StatusCode createAddress(long svcType, const CLID &clid, const std::string *par, const unsigned long *ip, IOpaqueAddress *&refpAddress)
IAddressCreator interfaces
xAODCnvSvc()
Default constructor:
virtual StatusCode createRep(DataObject *pObject, IOpaqueAddress *&refpAddress)
Implementation of IConverter: Convert the transient object to the requested representation.
xAODCnvSvc(const std::string &name, ISvcLocator *pSvcLocator)
Constructor with parameters:
virtual StatusCode finalize()
Some weak symbol referencing magic... These are declared in AthenaKernel/getMessageSvc....