Import Geant4 0.0.0 source tree
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
// 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: G4VBasicShell.hh,v 2.2 1998/07/12 03:00:16 urbi Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
//
|
||||
|
||||
#ifndef G4VBasicShell_H
|
||||
#define G4VBasicShell_H 1
|
||||
|
||||
class G4UIcommandTree;
|
||||
class G4UIcommand;
|
||||
|
||||
#include "G4UIsession.hh"
|
||||
#include "globals.hh"
|
||||
|
||||
class G4VBasicShell : public G4UIsession
|
||||
{
|
||||
public:
|
||||
G4VBasicShell();
|
||||
virtual ~G4VBasicShell();
|
||||
|
||||
virtual G4UIsession* SessionStart() = 0;
|
||||
// null should be returned for interactive session
|
||||
|
||||
virtual void PauseSessionStart(G4String Prompt) = 0;
|
||||
// Prompt string can be ignored
|
||||
|
||||
protected:
|
||||
G4String ModifyToFullPathCommand(const char* aCommandLine);
|
||||
// convert "BeamOn 10" to "/run/BeamOn 10" if the
|
||||
// current working directory is "/run/"
|
||||
|
||||
G4String GetCurrentWorkingDirectory();
|
||||
// directory string starts with '/' and ends with '/'
|
||||
|
||||
G4bool ChangeDirectory(const char* newDir);
|
||||
// change directory to newDir
|
||||
// false will be returned if the target directory doesn't exist
|
||||
|
||||
G4UIcommandTree* FindDirectory(const char* dirName);
|
||||
// find G4UIcommandTree object
|
||||
// null returned if the taregt does not exist
|
||||
|
||||
G4UIcommand* FindCommand(const char* commandName);
|
||||
// find G4UIcommand object
|
||||
// null returned if the target does not exist
|
||||
|
||||
private:
|
||||
G4String currentDirectory;
|
||||
|
||||
G4String ModifyPath(G4String tempPath);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user