ATLAS Offline Software
Public Member Functions | Protected Attributes | List of all members
Directory Class Reference

#include <Directory.h>

Collaboration diagram for Directory:

Public Member Functions

 Directory ()
 
 Directory (const std::string &n)
 
virtual ~Directory ()
 
void push ()
 
void pop ()
 
void Write ()
 
void pwd () const
 
TDirectory * cwd ()
 
void disable ()
 
void restore ()
 

Protected Attributes

bool m_HAddState
 
bool m_DAddState
 
TDirectory * m_Pop
 
TDirectory * m_Dir
 

Detailed Description

Definition at line 29 of file Directory.h.

Constructor & Destructor Documentation

◆ Directory() [1/2]

Directory::Directory ( )
inline

Definition at line 33 of file Directory.h.

33 : m_HAddState(true), m_DAddState(true), m_Pop(NULL), m_Dir(NULL) { }

◆ Directory() [2/2]

Directory::Directory ( const std::string &  n)
inline

Definition at line 34 of file Directory.h.

34  :m_HAddState(true), m_DAddState(true), m_Pop(gDirectory), m_Dir(gDirectory->mkdir(n.c_str())) {
35  }

◆ ~Directory()

virtual Directory::~Directory ( )
inlinevirtual

Definition at line 37 of file Directory.h.

37 { }

Member Function Documentation

◆ cwd()

TDirectory* Directory::cwd ( )
inline

Definition at line 45 of file Directory.h.

45 { return m_Dir; }

◆ disable()

void Directory::disable ( )
inline

Definition at line 47 of file Directory.h.

47 { }

◆ pop()

void Directory::pop ( )
inline

Definition at line 40 of file Directory.h.

40 { if (m_Pop) m_Pop->cd(); }

◆ push()

void Directory::push ( )
inline

Definition at line 39 of file Directory.h.

39 { m_Pop = gDirectory; if (m_Dir) m_Dir->cd(); }

◆ pwd()

void Directory::pwd ( ) const
inline

Definition at line 44 of file Directory.h.

44 { m_Dir->pwd(); }

◆ restore()

void Directory::restore ( )
inline

Definition at line 48 of file Directory.h.

48 { }

◆ Write()

void Directory::Write ( )
inline

Definition at line 42 of file Directory.h.

42 { push(); m_Dir->Write(); pop(); }

Member Data Documentation

◆ m_DAddState

bool Directory::m_DAddState
protected

Definition at line 53 of file Directory.h.

◆ m_Dir

TDirectory* Directory::m_Dir
protected

Definition at line 56 of file Directory.h.

◆ m_HAddState

bool Directory::m_HAddState
protected

Definition at line 52 of file Directory.h.

◆ m_Pop

TDirectory* Directory::m_Pop
protected

Definition at line 55 of file Directory.h.


The documentation for this class was generated from the following file:
Directory::m_HAddState
bool m_HAddState
Definition: Directory.h:52
Directory::m_DAddState
bool m_DAddState
Definition: Directory.h:53
Directory::push
void push()
Definition: Directory.h:39
Directory::pop
void pop()
Definition: Directory.h:40
ParseInputs.gDirectory
gDirectory
Definition: Final2012/ParseInputs.py:133
beamspotman.n
n
Definition: beamspotman.py:731
Directory::m_Pop
TDirectory * m_Pop
Definition: Directory.h:55
Directory::m_Dir
TDirectory * m_Dir
Definition: Directory.h:56