The Gaudi Framework  master (d98a2936)
DirectoryCnv.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/DataObject.h>
16 
17 //------------------------------------------------------------------------------
18 //
19 // ClassName: RootHistCnv::DirectoryCnv
20 //
21 // Description: Histogram directory converter
22 //
23 // Author: Charles Leggett
24 //
25 //------------------------------------------------------------------------------
26 namespace RootHistCnv {
27  class DirectoryCnv : public RConverter {
28  public:
30  StatusCode createObj( IOpaqueAddress* pAddr, DataObject*& refpObj ) override;
32  StatusCode createRep( DataObject* pObj, IOpaqueAddress*& refpAddr ) override;
34  static const CLID& classID() { return CLID_DataObject; }
36  DirectoryCnv( ISvcLocator* svc ) : RConverter( CLID_DataObject, svc ) {}
38  DirectoryCnv( const CLID& clid, ISvcLocator* svc ) : RConverter( clid, svc ) {}
39  };
40 } // namespace RootHistCnv
RConverter.h
IOpaqueAddress
Definition: IOpaqueAddress.h:28
ISvcLocator
Definition: ISvcLocator.h:42
RootHistCnv::DirectoryCnv
Definition: DirectoryCnv.h:27
RootHistCnv
Definition: DirectoryCnv.h:26
StatusCode
Definition: StatusCode.h:64
RootHistCnv::RConverter
Definition: RConverter.h:40
CLID
unsigned int CLID
Class ID definition.
Definition: ClassID.h:16
DataObject.h
RootHistCnv::DirectoryCnv::createObj
StatusCode createObj(IOpaqueAddress *pAddr, DataObject *&refpObj) override
Create the transient representation of an object.
Definition: DirectoryCnv.cpp:22
RootHistCnv::DirectoryCnv::classID
static const CLID & classID()
Inquire class type.
Definition: DirectoryCnv.h:34
DataObject
Definition: DataObject.h:37
RootHistCnv::DirectoryCnv::DirectoryCnv
DirectoryCnv(const CLID &clid, ISvcLocator *svc)
Standard constructor.
Definition: DirectoryCnv.h:38
RootHistCnv::DirectoryCnv::DirectoryCnv
DirectoryCnv(ISvcLocator *svc)
Standard constructor.
Definition: DirectoryCnv.h:36
RootHistCnv::DirectoryCnv::createRep
StatusCode createRep(DataObject *pObj, IOpaqueAddress *&refpAddr) override
Convert the transient object to the requested representation.
Definition: DirectoryCnv.cpp:28