#include <DirectoryCnv.h>
Inheritance diagram for RootHistCnv::DirectoryCnv:
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.
00027 : RConverter(CLID_DataObject, svc) {}
| RootHistCnv::DirectoryCnv::DirectoryCnv | ( | const CLID & | clid, | |
| ISvcLocator * | svc | |||
| ) | [inline] |
| virtual RootHistCnv::DirectoryCnv::~DirectoryCnv | ( | ) | [inline, virtual] |
| StatusCode RootHistCnv::DirectoryCnv::createObj | ( | IOpaqueAddress * | pAddr, | |
| DataObject *& | refpObj | |||
| ) | [virtual] |
Create the transient representation of an object.
Definition at line 15 of file DirectoryCnv.cpp.
00017 { 00018 refpObject = new DataObject(); 00019 return StatusCode::SUCCESS; 00020 }
| StatusCode RootHistCnv::DirectoryCnv::createRep | ( | DataObject * | pObj, | |
| IOpaqueAddress *& | refpAddr | |||
| ) | [virtual] |
Convert the transient object to the requested representation.
Definition at line 24 of file DirectoryCnv.cpp.
00024 { 00025 if ( changeDirectory(pObj) ) { 00026 const char* d_nam = pObj->name().c_str()+1; 00027 if (! gDirectory->GetKey(d_nam) ) { 00028 gDirectory->mkdir(d_nam); 00029 } 00030 gDirectory->cd(d_nam); 00031 return createAddress(pObj, gDirectory, 0, refpAddr); 00032 } 00033 refpAddr = 0; 00034 return StatusCode::FAILURE; 00035 }
| static const CLID& RootHistCnv::DirectoryCnv::classID | ( | ) | [inline, static] |
1.4.7