56 " with colon-separated list.");
83 "Loop counter can be used as an aliased variable.");
96 "Suppress the program abortion caused by G4Exception.");
98 "Suppression level = 0 : no suppression");
100 " = 1 : suppress during EventProc state");
102 " = 2 : full suppression, i.e. no abortion by "
105 "When abortion is suppressed, you will get error messages issued by "
108 "and there is NO guarantee for the correct result after the G4Exception "
126 "Use double precision for printing out the current parameter value(s).");
147 "the string must be enclosed by double quotes (\").");
164 "Get a shell environment variable and define it as an alias.");
169 "Get the current value of the UI command and define it as an alias.");
171 "Command is ignored if the UI command does not support GetCurrentValue().");
199 "Generate HTML files for all of sub-directories and commands.");
208 "Set maximum number of stored UI commands.");
244 " <new_alias> may be an already existing alias. If it is the case,");
256 "Define a new alias as the subtraction of two values.");
259 " <new_alias> may be an already existing alias. If it is the case,");
271 "Define a new alias as the multiplication of two values.");
274 " <new_alias> may be an already existing alias. If it is the case,");
286 "Define a new alias as the division of two values.");
289 " <new_alias> may be an already existing alias. If it is the case,");
302 "Define a new alias as the remainder of two values.");
305 " <new_alias> may be an already existing alias. If it is the case,");
332 "Execute a UI command if the expression is true.");
334 " Syntax : <string> <comp> <string> <UI_command>");
349 "Execute a macro file if program is running in batch mode.");
355 "Execute a macro file if program is running in interactive mode.");
361 "Execute a UI command if program is running in batch mode.");
368 "Execute a UI command if program is running in interactive mode.");
473 if(std::getenv(newValue))
477 st += std::getenv(newValue);
483 ed <<
"<" << newValue
484 <<
"> is not defined as a shell variable. Command ignored.";
494 if(!(curVal.empty()))
502 for(
G4int i = 0; i <= idx; i++)
504 theValue = nextVal();
508 st += aliName +
" " + theValue;
519 int rc = system(newValue);
523 ed <<
"<" << newValue
524 <<
"> is not a valid shell command. Command ignored.";
568 else if(comp ==
">=")
572 else if(comp ==
"<=")
574 else if(comp ==
"==")
576 else if(comp ==
"!=")
590 while(!((ca = next()).
empty()))
600 strippedValue = c1.substr(1, c1.length() - 2);
604 strippedValue = c1.substr(1, c1.length() - 1);
612 else if(comp ==
">=")
616 else if(comp ==
"<=")
618 else if(comp ==
"==")
620 else if(comp ==
"!=")
697 else if(comp ==
"!=")
713 while(!((ca = next()).
empty()))
723 strippedValue = c1.substr(1, c1.length() - 2);
727 strippedValue = c1.substr(1, c1.length() - 1);
737 else if(comp ==
"!=")
std::ostringstream G4ExceptionDescription
G4GLOB_DLL std::ostream G4cout
void SetSuppressAbortion(G4int i)
static G4StateManager * GetStateManager()
static G4bool GetNewBoolValue(const char *paramString)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
static G4int GetNewIntValue(const char *paramString)
void SetDefaultValue(G4int defVal)
void SetToBeBroadcasted(G4bool val)
static G4String ConvertToString(G4bool boolVal)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void CommandFailed(G4int errCode, G4ExceptionDescription &ed)
void SetRange(const char *rs)
G4UIcmdWithAnInteger * maxStoredHistCommand
G4UIcmdWithoutParameter * stopStoreHistoryCommand
G4UIcmdWithAString * ExecuteCommand
G4UIcmdWithAString * unaliasCommand
G4UIcmdWithAString * doifBatchCommand
G4UIcmdWithAString * shellCommand
void SetNewValue(G4UIcommand *command, G4String newValue)
G4UIcommand * subtractCommand
G4UIdirectory * controlDirectory
G4UIcommand * loopCommand
G4UIcommand * remainderCommand
G4UIcommand * strdoifCommand
G4UIcmdWithoutParameter * listAliasCommand
G4UIcmdWithAString * doifInteractiveCommand
G4UIcmdWithAnInteger * verboseCommand
G4UIcmdWithAString * ifBatchCommand
G4UIcommand * aliasCommand
G4UIcmdWithAString * ifInteractiveCommand
G4UIcommand * multiplyCommand
G4UIcmdWithAString * HTMLCommand
G4UIcommand * foreachCommand
G4UIcmdWithAString * echoCmd
G4UIcmdWithAString * ManualCommand
G4UIcommand * strifCommand
G4UIcommand * doifCommand
G4UIcmdWithABool * doublePrecCommand
G4String GetCurrentValue(G4UIcommand *command)
G4UIcmdWithAString * historyCommand
G4UIcmdWithAString * getEnvCmd
G4UIcmdWithAnInteger * suppressAbortionCommand
G4UIcommand * divideCommand
G4UIcmdWithAString * macroPathCommand
static G4bool DoublePrecisionStr()
static void UseDoublePrecisionStr(G4bool val)
const G4String & GetMacroSearchPath() const
void ForeachS(const char *valueList)
G4int ApplyCommand(const char *aCommand)
void CreateHTML(const char *dir="/")
void LoopS(const char *valueList)
void StoreHistory(const char *fileName="G4history.macro")
void ListCommands(const char *direc)
void ExecuteMacroFile(const char *fileName)
void SetMacroSearchPath(const G4String &path)
void SetMaxHistSize(G4int mx)
G4int GetVerboseLevel() const
G4int GetLastReturnCode() const
G4String GetCurrentValues(const char *aCommand)
void SetAlias(const char *aliasLine)
G4String FindMacroPath(const G4String &fname) const
void RemoveAlias(const char *aliasName)
G4String SolveAlias(const char *aCmd)
void ParseMacroSearchPath()
static G4UImanager * GetUIpointer()
G4int GetMaxHistSize() const
void SetVerboseLevel(G4int val)
G4String DtoS(G4double a)
G4double StoD(G4String s)
void SetDefaultValue(const char *theDefaultValue)
void SetParameterRange(const char *theRange)
void SetParameterCandidates(const char *theString)