Geant4-11
|
#include <G4tgrFileIn.hh>
Public Member Functions | |
void | Close () |
void | DumpException (const G4String &sent) |
G4bool | EndOfFile () |
void | ErrorInLine () |
G4tgrFileIn () | |
const G4String & | GetName () |
G4int | GetWordsInLine (std::vector< G4String > &wl) |
G4int | Nline () |
void | OpenNewFile (const char *filename) |
~G4tgrFileIn () | |
Static Public Member Functions | |
static G4tgrFileIn & | GetInstance (const G4String &name) |
static G4tgrFileIn & | GetInstanceOpened (const G4String &name) |
Private Member Functions | |
G4tgrFileIn (const G4String &name) | |
Private Attributes | |
G4int | theCurrentFile = -1 |
std::vector< std::ifstream * > | theFiles |
std::vector< G4int > | theLineNo |
G4String | theName = "" |
std::vector< G4String > | theNames |
Static Private Attributes | |
static G4ThreadLocal std::vector< G4tgrFileIn * > * | theInstances = nullptr |
Definition at line 41 of file G4tgrFileIn.hh.
G4tgrFileIn::G4tgrFileIn | ( | ) |
Definition at line 45 of file G4tgrFileIn.cc.
References theInstances.
Referenced by GetInstance().
G4tgrFileIn::~G4tgrFileIn | ( | ) |
Definition at line 54 of file G4tgrFileIn.cc.
References theInstances.
|
inlineprivate |
Definition at line 73 of file G4tgrFileIn.hh.
void G4tgrFileIn::Close | ( | ) |
Definition at line 419 of file G4tgrFileIn.cc.
References G4cout, G4endl, G4tgrMessenger::GetVerboseLevel(), theCurrentFile, and theFiles.
Referenced by EndOfFile().
void G4tgrFileIn::DumpException | ( | const G4String & | sent | ) |
Definition at line 434 of file G4tgrFileIn.cc.
References G4UIcommand::ConvertToString(), FatalException, G4Exception(), theCurrentFile, theLineNo, and theName.
Referenced by GetWordsInLine(), and G4tgrFileReader::ReadFiles().
G4bool G4tgrFileIn::EndOfFile | ( | ) |
Definition at line 382 of file G4tgrFileIn.cc.
References Close(), G4cout, G4endl, G4tgrMessenger::GetVerboseLevel(), theCurrentFile, and theFiles.
Referenced by GetWordsInLine().
void G4tgrFileIn::ErrorInLine | ( | ) |
Definition at line 375 of file G4tgrFileIn.cc.
References G4cerr, theCurrentFile, theLineNo, and theNames.
Referenced by GetWordsInLine().
|
static |
Definition at line 68 of file G4tgrFileIn.cc.
References G4tgrFileIn(), OpenNewFile(), theCurrentFile, and theInstances.
Referenced by GetInstanceOpened(), and G4tgrFileReader::ReadFiles().
|
static |
Definition at line 120 of file G4tgrFileIn.cc.
References FatalException, G4Exception(), GetInstance(), and GetName().
|
inline |
Definition at line 64 of file G4tgrFileIn.hh.
References theName.
Referenced by GetInstanceOpened().
Definition at line 137 of file G4tgrFileIn.cc.
References DumpException(), EndOfFile(), ErrorInLine(), FatalException, G4cout, G4endl, G4Exception(), G4tgrMessenger::GetVerboseLevel(), GetWordsInLine(), OpenNewFile(), theCurrentFile, theFiles, and theLineNo.
Referenced by GetWordsInLine(), and G4tgrFileReader::ReadFiles().
|
inline |
void G4tgrFileIn::OpenNewFile | ( | const char * | filename | ) |
Definition at line 99 of file G4tgrFileIn.cc.
References FatalException, G4Exception(), theCurrentFile, theFiles, theLineNo, and theNames.
Referenced by GetInstance(), and GetWordsInLine().
|
private |
Definition at line 84 of file G4tgrFileIn.hh.
Referenced by Close(), DumpException(), EndOfFile(), ErrorInLine(), GetInstance(), GetWordsInLine(), Nline(), and OpenNewFile().
|
private |
Definition at line 77 of file G4tgrFileIn.hh.
Referenced by Close(), EndOfFile(), GetWordsInLine(), and OpenNewFile().
|
staticprivate |
Definition at line 87 of file G4tgrFileIn.hh.
Referenced by G4tgrFileIn(), GetInstance(), and ~G4tgrFileIn().
|
private |
Definition at line 79 of file G4tgrFileIn.hh.
Referenced by DumpException(), ErrorInLine(), GetWordsInLine(), Nline(), and OpenNewFile().
|
private |
Definition at line 90 of file G4tgrFileIn.hh.
Referenced by DumpException(), and GetName().
|
private |
Definition at line 82 of file G4tgrFileIn.hh.
Referenced by ErrorInLine(), and OpenNewFile().