Geant4-11
Functions
G4UImanager.cc File Reference
#include "G4UImanager.hh"
#include "G4UIcommandTree.hh"
#include "G4UIcommand.hh"
#include "G4UIsession.hh"
#include "G4UIbatch.hh"
#include "G4UIcontrolMessenger.hh"
#include "G4UnitsMessenger.hh"
#include "G4LocalThreadCoutMessenger.hh"
#include "G4ProfilerMessenger.hh"
#include "G4ios.hh"
#include "G4strstreambuf.hh"
#include "G4StateManager.hh"
#include "G4UIaliasList.hh"
#include "G4Tokenizer.hh"
#include "G4MTcoutDestination.hh"
#include "G4UIbridge.hh"
#include "G4Threading.hh"
#include <sstream>
#include <fstream>

Go to the source code of this file.

Functions

static G4bool FileFound (const G4String &fname)
 

Function Documentation

◆ FileFound()

static G4bool FileFound ( const G4String fname)
static

Definition at line 807 of file G4UImanager.cc.

808{
809 G4bool qopen = false;
810 std::ifstream fs;
811 fs.open(fname.c_str(), std::ios::in);
812 if(fs.good())
813 {
814 fs.close();
815 qopen = true;
816 }
817 return qopen;
818}
bool G4bool
Definition: G4Types.hh:86
string fname
Definition: test.py:308

References test::fname.

Referenced by G4UImanager::FindMacroPath().