36#define G4UImanager_hh 1
90 void Loop(
const char* macroFile,
const char* variableName,
G4double initialValue,
95 void Foreach(
const char* macroFile,
const char* variableName,
const char* candidates);
117 void StoreHistory(
const char* fileName =
"G4history.macro");
127 void SetAlias(
const char* aliasLine);
143 void LoopS(
const char* valueList);
144 void ForeachS(
const char* valueList);
198 if (i >= 0 && i <
G4int(histVec.size())) {
214 stackCommandsForBroadcast = val;
215 if (val && (bridges ==
nullptr)) {
216 bridges =
new std::vector<G4UIbridge*>;
217 fMasterUImanager() =
this;
255 void PauseSession(
const char* msg);
256 void CreateMessenger();
272 G4int verboseLevel = 0;
273 std::ofstream historyFile;
274 G4bool saveHistory =
false;
275 std::vector<G4String> histVec;
277 G4int maxHistSize = 20;
278 G4bool pauseAtBeginOfEvent =
false;
279 G4bool pauseAtEndOfEvent =
false;
281 std::vector<G4String> searchDirs;
284 std::vector<G4UIbridge*>* bridges =
nullptr;
285 G4bool ignoreCmdNotFound =
false;
286 G4bool stackCommandsForBroadcast =
false;
287 std::vector<G4String>* commandStack =
nullptr;
297 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)
G4UIsession * GetBaseSession() const
void SetThreadUseBuffer(G4bool flg=true)
G4int GetThreadID() const
G4int GetMaxHistSize() const
void SetLastCommandOutputTreated()
G4bool operator!=(const G4UImanager &) const =delete
void SetVerboseLevel(G4int val)