Gaudi Framework, version v25r2
Home
Generated: Wed Jun 4 2014
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
.cern.ch
sw
Gaudi
releases
GAUDI
GAUDI_v25r2
RootHistCnv
src
DirectoryCnv.cpp
Go to the documentation of this file.
1
// Include files
2
#include "
DirectoryCnv.h
"
3
//------------------------------------------------------------------------------
4
//
5
// Implementation of class : RootHistCnv::DirectoryCnv
6
//
7
// Author : Charles Leggett
8
//
9
//------------------------------------------------------------------------------
10
DECLARE_NAMESPACE_CONVERTER_FACTORY
(RootHistCnv, DirectoryCnv)
11
//------------------------------------------------------------------------------
12
StatusCode
RootHistCnv::
DirectoryCnv
::createObj(
IOpaqueAddress
*
/* pAddress */
,
13
DataObject
*& refpObject)
14
{
15
refpObject =
new
DataObject
();
16
return
StatusCode::SUCCESS
;
17
}
18
19
//------------------------------------------------------------------------------
20
StatusCode
21
RootHistCnv::DirectoryCnv::createRep
(
DataObject
* pObj,
IOpaqueAddress
*& refpAddr) {
22
if
(
changeDirectory
(pObj) ) {
23
const
char
* d_nam = pObj->
name
().c_str()+1;
24
if
(! gDirectory->GetKey(d_nam) ) {
25
gDirectory->mkdir(d_nam);
26
}
27
gDirectory->cd(d_nam);
28
return
createAddress
(pObj, gDirectory, 0, refpAddr);
29
}
30
refpAddr = 0;
31
return
StatusCode::FAILURE
;
32
}
Generated at Wed Jun 4 2014 14:48:58 for Gaudi Framework, version v25r2 by
Doxygen
version 1.8.2 written by
Dimitri van Heesch
, © 1997-2004