36#define G4UImanager_hh 1
89 void Loop(
const char* macroFile,
const char* variableName,
94 void Foreach(
const char* macroFile,
const char* variableName,
95 const char* candidates);
117 void StoreHistory(
const char* fileName =
"G4history.macro");
119 const char* fileName =
"G4history.macro");
127 void SetAlias(
const char* aliasLine);
144 void LoopS(
const char* valueList);
145 void ForeachS(
const char* valueList);
153 G4int parameterNumber = 1,
158 G4int parameterNumber = 1,
161 const char* aParameterName,
166 const char* aParameterName,
205 if(i >= 0 && i <
G4int(histVec.size()))
222 stackCommandsForBroadcast = val;
223 if(val && (bridges ==
nullptr))
225 bridges =
new std::vector<G4UIbridge*>;
226 fMasterUImanager() =
this;
268 void PauseSession(
const char* msg);
269 void CreateMessenger();
286 G4int verboseLevel = 0;
287 std::ofstream historyFile;
288 G4bool saveHistory =
false;
289 std::vector<G4String> histVec;
291 G4int maxHistSize = 20;
292 G4bool pauseAtBeginOfEvent =
false;
293 G4bool pauseAtEndOfEvent =
false;
295 std::vector<G4String> searchDirs;
298 std::vector<G4UIbridge*>* bridges =
nullptr;
299 G4bool ignoreCmdNotFound =
false;
300 G4bool stackCommandsForBroadcast =
false;
301 std::vector<G4String>* commandStack =
nullptr;
311 G4bool fLastCommandOutputTreated =
true;
static G4bool DoublePrecisionStr()
void SetCerrFileName(const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
void SetCoutDestination(G4UIsession *const value)
static void UseDoublePrecisionStr(G4bool val)
const G4String & GetMacroSearchPath() const
void SetIgnoreCmdNotFound(G4bool val)
void ForeachS(const char *valueList)
G4UIcommandTree * GetTree() const
void SetUpForAThread(G4int tId)
std::vector< G4String > * GetCommandStack()
void Foreach(const char *macroFile, const char *variableName, const char *candidates)
G4int ApplyCommand(const char *aCommand)
void SetThreadIgnoreInit(G4bool flg=true)
G4int GetNumberOfHistory() const
void CreateHTML(const char *dir="/")
void Loop(const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0)
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
bool IsLastCommandOutputTreated()
G4String GetPreviousCommand(G4int i) const
void SetThreadPrefixString(const G4String &prefix="W")
void LoopS(const char *valueList)
void SetMasterUIManager(G4bool val)
G4bool GetPauseAtBeginOfEvent() const
void StoreHistory(const char *fileName="G4history.macro")
void ListCommands(const char *direc)
G4double GetCurrentDoubleValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void ExecuteMacroFile(const char *fileName)
void SetMacroSearchPath(const G4String &path)
void SetCoutFileName(const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
static G4UImanager * GetMasterUIpointer()
G4String GetCurrentStringValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
void SetMaxHistSize(G4int mx)
G4int GetVerboseLevel() const
G4UIsession * GetSession() const
G4bool GetPauseAtEndOfEvent() const
G4int GetLastReturnCode() const
void SetUpForSpecialThread(const G4String &aPrefix)
void SetPauseAtBeginOfEvent(G4bool vl)
void AddNewCommand(G4UIcommand *newCommand)
G4String GetCurrentValues(const char *aCommand)
void SetThreadIgnore(G4int tid=0)
void SetAlias(const char *aliasLine)
G4String FindMacroPath(const G4String &fname) const
void RemoveAlias(const char *aliasName)
G4bool Notify(G4ApplicationState requestedState) override
G4String SolveAlias(const char *aCmd)
const G4UImanager & operator=(const G4UImanager &)=delete
G4bool operator==(const G4UImanager &) const =delete
void RemoveCommand(G4UIcommand *aCommand)
G4UIsession * GetG4UIWindow() const
G4UIcommand * FindCommand(const char *aCommand)
void ParseMacroSearchPath()
static G4UImanager * GetUIpointer()
void RegisterBridge(G4UIbridge *brg)
G4MTcoutDestination * GetThreadCout()
void SetSession(G4UIsession *const value)
G4UImanager(const G4UImanager &)=delete
void SetG4UIWindow(G4UIsession *const value)
void SetPauseAtEndOfEvent(G4bool vl)
void SetThreadUseBuffer(G4bool flg=true)
G4int GetThreadID() const
G4int GetMaxHistSize() const
void SetLastCommandOutputTreated()
G4bool operator!=(const G4UImanager &) const =delete
void SetVerboseLevel(G4int val)