| # Gaudi Framework, version v22r4 |

Home |  | Generated: Fri Sep 2 2011

Public Member Functions | Static Public Member Functions

# RootHistCnv::DirectoryCnv Class Reference

`#include <DirectoryCnv.h>`

Inheritance diagram for RootHistCnv::DirectoryCnv:
[legend]
Collaboration diagram for RootHistCnv::DirectoryCnv:
[legend]

List of all members.

## Public Member Functions
virtual StatusCode | createObj (IOpaqueAddress *pAddr, DataObject *&refpObj)
| Create the transient representation of an object.
virtual StatusCode | createRep (DataObject *pObj, IOpaqueAddress *&refpAddr)
| Convert the transient object to the requested representation.
| DirectoryCnv (ISvcLocator *svc)
| Standard constructor.
| DirectoryCnv (const CLID &clid, ISvcLocator *svc)
| Standard constructor.
virtual | ~DirectoryCnv ()
| Standard destructor.
## Static Public Member Functions
static const CLID & | classID ()
| Inquire class type.

## Detailed Description

Definition at line 18 of file DirectoryCnv.h.

## Constructor & Destructor Documentation

RootHistCnv::DirectoryCnv::DirectoryCnv | ( | ISvcLocator * | svc ) | `[inline]`

Standard constructor.

Definition at line 27 of file DirectoryCnv.h.

    : RConverter(CLID_DataObject, svc) {}

RootHistCnv::DirectoryCnv::DirectoryCnv | ( | const CLID & | clid,
|  | ISvcLocator * | svc
| ) |  | `[inline]`

Standard constructor.

Definition at line 29 of file DirectoryCnv.h.

    : RConverter(clid, svc) {}

virtual RootHistCnv::DirectoryCnv::~DirectoryCnv | ( | ) | `[inline, virtual]`

Standard destructor.

Definition at line 31 of file DirectoryCnv.h.

    {}

## Member Function Documentation

static const CLID& RootHistCnv::DirectoryCnv::classID | ( | ) | `[inline, static]`

Inquire class type.

Definition at line 25 of file DirectoryCnv.h.

    {  return CLID_DataObject;    }

StatusCode RootHistCnv::DirectoryCnv::createObj | ( | IOpaqueAddress * | pAddr,
|  | DataObject *& | refpObj
| ) |  | `[virtual]`

Create the transient representation of an object.

Reimplemented from Converter.

Definition at line 15 of file DirectoryCnv.cpp.

    {
      refpObject = new DataObject();
      return StatusCode::SUCCESS;
    }

StatusCode RootHistCnv::DirectoryCnv::createRep | ( | DataObject * | pObj,
|  | IOpaqueAddress *& | refpAddr
| ) |  | `[virtual]`

Convert the transient object to the requested representation.

Reimplemented from RootHistCnv::RConverter.

Definition at line 24 of file DirectoryCnv.cpp.

                                                                                  {
      if ( changeDirectory(pObj) ) {
        const char* d_nam = pObj->name().c_str()+1;
        if (! gDirectory->GetKey(d_nam) ) {
          gDirectory->mkdir(d_nam);
        }
        gDirectory->cd(d_nam);
        return createAddress(pObj, gDirectory, 0, refpAddr);
      }
      refpAddr = 0;
      return StatusCode::FAILURE;
    }

The documentation for this class was generated from the following files:

- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/RootHistCnv/src/DirectoryCnv.h
- /afs/cern.ch/sw/Gaudi/releases/GAUDI/GAUDI_v22r4/RootHistCnv/src/DirectoryCnv.cpp

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines