|
Gaudi Framework, version v23r1 |
| Home | Generated: Wed Feb 29 2012 |
#include <DirectoryCnv.h>


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. | |
Definition at line 18 of file DirectoryCnv.h.
| 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] |
| virtual RootHistCnv::DirectoryCnv::~DirectoryCnv | ( | ) | [inline, virtual] |
| static const CLID& RootHistCnv::DirectoryCnv::classID | ( | ) | [inline, static] |
| 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;
}