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);
110 void StoreHistory(
const char* fileName =
"G4history.macro");
112 const char* fileName =
"G4history.macro");
120 void SetAlias(
const char* aliasLine);
137 void LoopS(
const char* valueList);
138 void ForeachS(
const char* valueList);
146 G4int parameterNumber = 1,
151 G4int parameterNumber = 1,
154 const char* aParameterName,
159 const char* aParameterName,
198 if(i >= 0 && i <
G4int(histVec.size()))
215 stackCommandsForBroadcast = val;
218 bridges =
new std::vector<G4UIbridge*>;
219 fMasterUImanager() =
this;
258 void PauseSession(
const char* msg);
259 void CreateMessenger();
276 G4int verboseLevel = 0;
277 std::ofstream historyFile;
278 G4bool saveHistory =
false;
279 std::vector<G4String> histVec;
281 G4int maxHistSize = 20;
282 G4bool pauseAtBeginOfEvent =
false;
283 G4bool pauseAtEndOfEvent =
false;
285 std::vector<G4String> searchDirs;
288 std::vector<G4UIbridge*>* bridges =
nullptr;
289 G4bool ignoreCmdNotFound =
false;
290 G4bool stackCommandsForBroadcast =
false;
291 std::vector<G4String>* commandStack =
nullptr;
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)
G4String GetPreviousCommand(G4int i) const
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 SetUpForSpecialThread(G4String aPrefix)
void SetMaxHistSize(G4int mx)
G4int GetVerboseLevel() const
G4UIsession * GetSession() const
G4bool GetPauseAtEndOfEvent() const
G4int GetLastReturnCode() const
void SetPauseAtBeginOfEvent(G4bool vl)
void AddNewCommand(G4UIcommand *newCommand)
G4String GetCurrentValues(const char *aCommand)
virtual G4bool Notify(G4ApplicationState requestedState)
void SetThreadIgnore(G4int tid=0)
void SetAlias(const char *aliasLine)
void SetThreadPrefixString(const G4String &s="W")
G4String FindMacroPath(const G4String &fname) const
void RemoveAlias(const char *aliasName)
G4String SolveAlias(const char *aCmd)
const G4UImanager & operator=(const G4UImanager &)=delete
G4bool operator==(const G4UImanager &) const =delete
void RemoveCommand(G4UIcommand *aCommand)
G4UIsession * GetG4UIWindow() const
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
G4bool operator!=(const G4UImanager &) const =delete
void SetVerboseLevel(G4int val)