The Gaudi Framework  master (01b473db)
RDirectoryCnv.h
Go to the documentation of this file.
1 /***********************************************************************************\
2 * (c) Copyright 1998-2025 CERN for the benefit of the LHCb and ATLAS collaborations *
3 * *
4 * This software is distributed under the terms of the Apache version 2 licence, *
5 * copied verbatim in the file "LICENSE". *
6 * *
7 * In applying this licence, CERN does not waive the privileges and immunities *
8 * granted to it by virtue of its status as an Intergovernmental Organization *
9 * or submit itself to any jurisdiction. *
10 \***********************************************************************************/
11 #pragma once
12 
13 // Include files
14 #include "RConverter.h"
15 #include <GaudiKernel/NTuple.h>
16 
17 namespace RootHistCnv {
18 
25  class RDirectoryCnv : public RConverter {
26  public:
28  StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& refpObj ) override;
30  StatusCode fillObjRefs( IOpaqueAddress* pAddr, DataObject* refpObj ) override;
32  StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAddr ) override;
34  StatusCode updateRep( IOpaqueAddress* pAddr, DataObject* pObject ) override;
36  static const CLID& classID() { return CLID_NTupleDirectory; }
38  RDirectoryCnv( ISvcLocator* svc ) : RConverter( CLID_NTupleDirectory, svc ) {}
40  RDirectoryCnv( ISvcLocator* svc, const CLID& clid ) : RConverter( clid, svc ) {}
41  };
42 } // namespace RootHistCnv
RConverter.h
RootHistCnv::RDirectoryCnv::fillObjRefs
StatusCode fillObjRefs(IOpaqueAddress *pAddr, DataObject *refpObj) override
Update the transient object from the other representation.
Definition: RDirectoryCnv.cpp:81
IOpaqueAddress
Definition: IOpaqueAddress.h:28
ISvcLocator
Definition: ISvcLocator.h:42
RootHistCnv::RDirectoryCnv
Definition: RDirectoryCnv.h:25
RootHistCnv::RDirectoryCnv::RDirectoryCnv
RDirectoryCnv(ISvcLocator *svc, const CLID &clid)
Standard constructor.
Definition: RDirectoryCnv.h:40
RootHistCnv::RDirectoryCnv::classID
static const CLID & classID()
Inquire class type.
Definition: RDirectoryCnv.h:36
RootHistCnv
Definition: DirectoryCnv.h:26
StatusCode
Definition: StatusCode.h:64
NTuple.h
RootHistCnv::RConverter
Definition: RConverter.h:40
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
RootHistCnv::RDirectoryCnv::updateRep
StatusCode updateRep(IOpaqueAddress *pAddr, DataObject *pObject) override
Convert the transient object to the requested representation.
Definition: RDirectoryCnv.cpp:69
RootHistCnv::RDirectoryCnv::RDirectoryCnv
RDirectoryCnv(ISvcLocator *svc)
Standard constructor.
Definition: RDirectoryCnv.h:38
DataObject
Definition: DataObject.h:37
RootHistCnv::RDirectoryCnv::createObj
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj) override
Create the transient representation of an object.
Definition: RDirectoryCnv.cpp:46
RootHistCnv::RDirectoryCnv::createRep
StatusCode createRep(DataObject *pObj, IOpaqueAddress *&refpAddr) override
Convert the transient object to the requested representation.
Definition: RDirectoryCnv.cpp:54