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);
138 void PauseSession(
const char* msg);
139 void CreateMessenger();
160 std::ofstream historyFile;
162 std::vector<G4String> histVec;
165 G4bool pauseAtBeginOfEvent;
168 std::vector<G4String> searchDirs;
178 const char * aParameterName,
G4bool reGet=
true);
180 const char * aParameterName,
G4bool reGet=
true);
182 const char * aParameterName,
G4bool reGet=
true);
193 { pauseAtBeginOfEvent = vl; }
195 {
return pauseAtBeginOfEvent; }
197 { pauseAtEndOfEvent = vl; }
199 {
return pauseAtEndOfEvent; }
211 {
return g4UIWindow; }
216 { g4UIWindow =
value; }
226 { verboseLevel = val; }
228 {
return verboseLevel; }
230 {
return histVec.size(); }
234 if(i>=0 && i<
G4int(histVec.size()))
239 { maxHistSize = mx; }
241 {
return maxHistSize; }
244 { searchPath = path; }
246 {
return searchPath; }
252 std::vector<G4UIbridge*>* bridges;
254 G4bool stackCommandsForBroadcast;
255 std::vector<G4String>* commandStack;
262 stackCommandsForBroadcast = val;
265 bridges =
new std::vector<G4UIbridge*>;
266 fMasterUImanager =
this;
270 { ignoreCmdNotFound = val; }
285 static G4int igThreadID;
297 static G4bool doublePrecisionStr;
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)
void SetThreadPrefixString(const G4String &s="W")
G4int GetNumberOfHistory() const
G4MTcoutDestination * GetThreadCout()
void SetAlias(const char *aliasLine)
G4UIsession * GetSession() const
G4int GetThreadID() const
void SetUpForAThread(G4int tId)
G4String GetPreviousCommand(G4int i) const
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)
void SetIgnoreCmdNotFound(G4bool val)
void SetThreadUseBuffer(G4bool flg=true)
G4int GetVerboseLevel() const
void SetSession(G4UIsession *const value)
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()
void SetThreadIgnoreInit(G4bool flg=true)
const XML_Char int const XML_Char * value
void Loop(const char *macroFile, const char *variableName, G4double initialValue, G4double finalValue, G4double stepSize=1.0)
G4bool GetPauseAtBeginOfEvent() const
void RemoveCommand(G4UIcommand *aCommand)
G4int GetCurrentIntValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
G4bool GetPauseAtEndOfEvent() const
G4String GetCurrentValues(const char *aCommand)
void SetMaxHistSize(G4int mx)
static G4bool DoublePrecisionStr()
void ListCommands(const char *direc)
G4UIcommandTree * GetTree() const
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)
void LoopS(const char *valueList)
virtual G4bool Notify(G4ApplicationState requestedState)
G4double GetCurrentDoubleValue(const char *aCommand, G4int parameterNumber=1, G4bool reGet=true)
static void UseDoublePrecisionStr(G4bool val)
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
void SetMasterUIManager(G4bool val)
G4int ApplyCommand(const char *aCommand)
G4int GetMaxHistSize() const