31 #define G4UImanager_h 1
87 void Loop(
const char * macroFile,
const char * variableName,
90 void Foreach(
const char * macroFile,
const char * variableName,
91 const char * candidates);
104 void StoreHistory(
const char* fileName =
"G4history.macro");
106 const char* fileName =
"G4history.macro");
112 void SetAlias(
const char * aliasLine);
130 void LoopS(
const char* valueList);
131 void ForeachS(
const char* valueList);
178 const char * aParameterName,
G4bool reGet=
true);
180 const char * aParameterName,
G4bool reGet=
true);
182 const char * aParameterName,
G4bool reGet=
true);
193 { pauseAtBeginOfEvent = vl; }
197 { pauseAtEndOfEvent = vl; }
216 { g4UIWindow = value; }
226 { verboseLevel = val; }
230 {
return histVec.size(); }
234 if(i>=0 && i<
G4int(histVec.size()))
239 { maxHistSize = mx; }
244 { searchPath = path; }
262 stackCommandsForBroadcast = val;
265 bridges =
new std::vector<G4UIbridge*>;
266 fMasterUImanager =
this;
270 { ignoreCmdNotFound = val; }
void SetMacroSearchPath(const G4String &path)
void ForeachS(const char *valueList)
void ExecuteMacroFile(const char *fileName)
void Foreach(const char *macroFile, const char *variableName, const char *candidates)
void RemoveAlias(const char *aliasName)
G4int operator==(const G4UImanager &right) const
static G4ThreadLocal G4UImanager * fUImanager
void SetThreadPrefixString(const G4String &s="W")
G4int GetNumberOfHistory() const
G4MTcoutDestination * GetThreadCout()
void SetAlias(const char *aliasLine)
G4UIsession * GetSession() const
G4int GetThreadID() const
G4UIcommand * savedCommand
void SetUpForAThread(G4int tId)
G4LocalThreadCoutMessenger * CoutMessenger
G4String GetPreviousCommand(G4int i) const
static constexpr double s
G4String GetCurrentStringValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void SetCoutFileName(const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
static G4UImanager * GetMasterUIpointer()
void RegisterBridge(G4UIbridge *brg)
G4UIcontrolMessenger * UImessenger
void SetIgnoreCmdNotFound(G4bool val)
G4UIcommandTree * treeTop
std::ofstream historyFile
static G4UImanager * fMasterUImanager
void SetThreadUseBuffer(G4bool flg=true)
G4bool stackCommandsForBroadcast
G4int GetVerboseLevel() const
void SetSession(G4UIsession *const value)
void RemoveWorkerCommand(G4UIcommand *aCommand)
std::vector< G4String > * GetCommandStack()
void SetG4UIWindow(G4UIsession *const value)
void SetVerboseLevel(G4int val)
void SetCerrFileName(const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
static G4UImanager * GetUIpointer()
void ParseMacroSearchPath()
std::vector< G4String > searchDirs
void SetThreadIgnoreInit(G4bool flg=true)
G4UIaliasList * aliasList
void Loop(const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0)
G4MTcoutDestination * threadCout
std::vector< G4UIbridge * > * bridges
G4bool GetPauseAtBeginOfEvent() const
void RemoveCommand(G4UIcommand *aCommand)
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
G4UnitsMessenger * UnitsMessenger
G4bool GetPauseAtEndOfEvent() const
G4String GetCurrentValues(const char *aCommand)
void SetMaxHistSize(G4int mx)
void ListCommands(const char *direc)
void PauseSession(const char *msg)
std::vector< G4String > histVec
G4UIcommandTree * GetTree() const
std::vector< G4String > * commandStack
void AddNewCommand(G4UIcommand *newCommand)
void SetPauseAtEndOfEvent(G4bool vl)
void SetCoutDestination(G4UIsession *const value)
G4UIsession * GetG4UIWindow() const
G4String SolveAlias(const char *aCmd)
const G4String & GetMacroSearchPath() const
void SetPauseAtBeginOfEvent(G4bool vl)
static G4ThreadLocal G4bool fUImanagerHasBeenKilled
void LoopS(const char *valueList)
const G4UImanager & operator=(const G4UImanager &right)
virtual G4bool Notify(G4ApplicationState requestedState)
void AddWorkerCommand(G4UIcommand *newCommand)
G4double GetCurrentDoubleValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void SetUpForSpecialThread(G4String aPrefix)
void SetThreadIgnore(G4int tid=0)
void CreateHTML(const char *dir="/")
void StoreHistory(const char *fileName="G4history.macro")
G4String FindMacroPath(const G4String &fname) const
G4bool pauseAtBeginOfEvent
void SetMasterUIManager(G4bool val)
G4UIcommandTree * FindDirectory(const char *dirName)
G4int ApplyCommand(const char *aCommand)
G4int GetMaxHistSize() const
G4int operator!=(const G4UImanager &right) const