Geant4  10.02.p03
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 "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>
Include dependency graph for G4UImanager.cc:

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 682 of file G4UImanager.cc.

683 {
684  G4bool qopen = false;
685  std::ifstream fs;
686  fs.open(fname.c_str(), std::ios::in);
687  if(fs.good()) {
688  fs.close();
689  qopen = true;
690  }
691  return qopen;
692 }
ifstream in
Definition: comparison.C:7
bool G4bool
Definition: G4Types.hh:79
Here is the caller graph for this function: