Gaudi Framework, version v23r6

Home   Generated: Wed Jan 30 2013
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DirectoryCnv.cpp
Go to the documentation of this file.
1 // $Id: DirectoryCnv.cpp,v 1.6 2006/11/13 15:19:34 hmd Exp $
2 
3 // Include files
5 #include "DirectoryCnv.h"
6 //------------------------------------------------------------------------------
7 //
8 // Implementation of class : RootHistCnv::DirectoryCnv
9 //
10 // Author : Charles Leggett
11 //
12 //------------------------------------------------------------------------------
13 DECLARE_NAMESPACE_CONVERTER_FACTORY(RootHistCnv,DirectoryCnv)
14 //------------------------------------------------------------------------------
15 StatusCode RootHistCnv::DirectoryCnv::createObj(IOpaqueAddress* /* pAddress */,
16  DataObject*& refpObject)
17 {
18  refpObject = new DataObject();
19  return StatusCode::SUCCESS;
20 }
21 
22 //------------------------------------------------------------------------------
25  if ( changeDirectory(pObj) ) {
26  const char* d_nam = pObj->name().c_str()+1;
27  if (! gDirectory->GetKey(d_nam) ) {
28  gDirectory->mkdir(d_nam);
29  }
30  gDirectory->cd(d_nam);
31  return createAddress(pObj, gDirectory, 0, refpAddr);
32  }
33  refpAddr = 0;
34  return StatusCode::FAILURE;
35 }

Generated at Wed Jan 30 2013 17:13:42 for Gaudi Framework, version v23r6 by Doxygen version 1.8.2 written by Dimitri van Heesch, © 1997-2004