HYDRA_development_version
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
HGeomAsciiIo Class Reference

#include <hgeomasciiio.h>

Inheritance diagram for HGeomAsciiIo:
Collaboration diagram for HGeomAsciiIo:

Public Member Functions

 HGeomAsciiIo ()
 
 ~HGeomAsciiIo ()
 
void setDirectory (const Char_t *fDir)
 
const Char_t * getDirectory ()
 
const Char_t * getFilename ()
 
Bool_t open (const Char_t *, const Text_t *status="in")
 
Bool_t isOpen ()
 
Bool_t isWritable ()
 
void close ()
 
void print ()
 
Bool_t read (HGeomMedia *)
 
Bool_t read (HGeomSet *, HGeomMedia *)
 
Bool_t read (HGeomHit *)
 
Bool_t write (HGeomMedia *)
 
Bool_t write (HGeomSet *set)
 
Bool_t write (HGeomHit *hit)
 
Bool_t readGeomConfig (HGeomInterface *)
 
Bool_t readDetectorSetup (HGeomInterface *)
 
Bool_t setSimulRefRun (const Char_t *)
 
Bool_t setHistoryDate (const Char_t *)
 

Private Attributes

TString filename
 
TString filedir
 
Bool_t writable
 
fstream * file
 

Detailed Description

Definition at line 10 of file hgeomasciiio.h.

Constructor & Destructor Documentation

HGeomAsciiIo::HGeomAsciiIo ( )
HGeomAsciiIo::~HGeomAsciiIo ( )

Definition at line 28 of file hgeomasciiio.cc.

References close(), and file.

Member Function Documentation

void HGeomAsciiIo::close ( void  )
virtual

Implements HGeomIo.

Definition at line 83 of file hgeomasciiio.cc.

References file, filename, and isOpen().

Referenced by open(), and ~HGeomAsciiIo().

const Char_t* HGeomAsciiIo::getDirectory ( )
inline

Definition at line 19 of file hgeomasciiio.h.

const Char_t* HGeomAsciiIo::getFilename ( )
inline

Definition at line 20 of file hgeomasciiio.h.

Bool_t HGeomAsciiIo::isOpen ( )
virtual

Implements HGeomIo.

Definition at line 71 of file hgeomasciiio.cc.

References file.

Referenced by close(), isWritable(), open(), print(), read(), readDetectorSetup(), readGeomConfig(), and write().

Bool_t HGeomAsciiIo::isWritable ( )
virtual

Implements HGeomIo.

Definition at line 77 of file hgeomasciiio.cc.

References isOpen(), and writable.

Bool_t HGeomAsciiIo::open ( const Char_t *  fname,
const Text_t *  status = "in" 
)
virtual

Implements HGeomIo.

Definition at line 37 of file hgeomasciiio.cc.

References close(), file, filedir, filename, fname, isOpen(), and writable.

void HGeomAsciiIo::print ( void  )
virtual

Implements HGeomIo.

Definition at line 91 of file hgeomasciiio.cc.

References filename, isOpen(), and writable.

Bool_t HGeomAsciiIo::read ( HGeomMedia media)
virtual

Implements HGeomIo.

Definition at line 100 of file hgeomasciiio.cc.

References file, isOpen(), HGeomMedia::read(), and writable.

Bool_t HGeomAsciiIo::read ( HGeomSet set,
HGeomMedia media 
)
virtual

Implements HGeomIo.

Definition at line 114 of file hgeomasciiio.cc.

References file, isOpen(), HGeomSet::read(), and writable.

Bool_t HGeomAsciiIo::read ( HGeomHit hit)
virtual

Implements HGeomIo.

Definition at line 107 of file hgeomasciiio.cc.

References file, isOpen(), HGeomHit::read(), and writable.

Bool_t HGeomAsciiIo::readDetectorSetup ( HGeomInterface interface)
void HGeomAsciiIo::setDirectory ( const Char_t *  fDir)
inline

Definition at line 18 of file hgeomasciiio.h.

Bool_t HGeomAsciiIo::setHistoryDate ( const Char_t *  )
inlinevirtual

Implements HGeomIo.

Definition at line 35 of file hgeomasciiio.h.

Bool_t HGeomAsciiIo::setSimulRefRun ( const Char_t *  )
inlinevirtual

Implements HGeomIo.

Definition at line 34 of file hgeomasciiio.h.

Bool_t HGeomAsciiIo::write ( HGeomMedia media)
virtual

Implements HGeomIo.

Definition at line 121 of file hgeomasciiio.cc.

References file, isOpen(), writable, and HGeomMedia::write().

Bool_t HGeomAsciiIo::write ( HGeomSet set)
virtual

Implements HGeomIo.

Definition at line 128 of file hgeomasciiio.cc.

References file, isOpen(), writable, and HGeomSet::write().

Bool_t HGeomAsciiIo::write ( HGeomHit hit)
virtual

Implements HGeomIo.

Definition at line 135 of file hgeomasciiio.cc.

References file, isOpen(), writable, and HGeomHit::write().

Member Data Documentation

fstream* HGeomAsciiIo::file
private

Definition at line 14 of file hgeomasciiio.h.

Referenced by close(), isOpen(), open(), read(), readGeomConfig(), write(), and ~HGeomAsciiIo().

TString HGeomAsciiIo::filedir
private

Definition at line 12 of file hgeomasciiio.h.

Referenced by open().

TString HGeomAsciiIo::filename
private

Definition at line 11 of file hgeomasciiio.h.

Referenced by close(), open(), and print().

Bool_t HGeomAsciiIo::writable
private

Definition at line 13 of file hgeomasciiio.h.

Referenced by isWritable(), open(), print(), read(), readDetectorSetup(), readGeomConfig(), and write().


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