43 lines
894 B
C++
43 lines
894 B
C++
// This code implementation is the intellectual property of
|
|
// the RD44 GEANT4 collaboration.
|
|
//
|
|
// By copying, distributing or modifying the Program (or any work
|
|
// based on the Program) you indicate your acceptance of this statement,
|
|
// and all its terms.
|
|
//
|
|
// $Id: G4UIbatch.hh,v 2.1 1998/07/12 02:59:27 urbi Exp $
|
|
// GEANT4 tag $Name: geant4-00 $
|
|
//
|
|
// $id$
|
|
|
|
#ifndef G4UIbatch_h
|
|
#define G4UIbatch_h 1
|
|
|
|
#include "globals.hh"
|
|
#include "G4UIsession.hh"
|
|
#include <fstream.h>
|
|
|
|
class G4UImanager;
|
|
|
|
class G4UIbatch : public G4UIsession
|
|
{
|
|
public:
|
|
G4UIbatch(G4String fileName,G4UIsession* prevSession=NULL);
|
|
~G4UIbatch();
|
|
|
|
G4UIsession * SessionStart();
|
|
void PauseSessionStart(G4String Prompt);
|
|
|
|
private:
|
|
G4UImanager * UImanager;
|
|
G4UIsession * previousSession;
|
|
ifstream macroFile;
|
|
G4String macroFileName;
|
|
G4bool openFailed;
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|