372 if( command == macroPathCommand) {
373 UI-> SetMacroSearchPath(newValue);
374 UI-> ParseMacroSearchPath();
376 if(command==ExecuteCommand)
378 UI-> ExecuteMacroFile(UI-> FindMacroPath(newValue));
380 if(command==suppressAbortionCommand)
384 if(command==verboseCommand)
388 if(command==doublePrecCommand)
392 if(command==historyCommand)
396 if(command==stopStoreHistoryCommand)
400 if(command==ManualCommand)
404 if(command==aliasCommand)
408 if(command==unaliasCommand)
412 if(command==listAliasCommand)
416 if(command==getEnvCmd)
423 st += getenv(newValue);
427 {
G4cerr <<
"<" << newValue <<
"> is not defined as a shell variable. Command ignored." <<
G4endl; }
429 if(command==getValCmd)
443 for(
G4int i = 0;i<=idx;i++)
444 { theValue = nextVal(); }
447 st += aliName +
" " + theValue;
453 if(command==shellCommand)
457 if(command==loopCommand)
461 if(command==foreachCommand)
465 if(command==HTMLCommand)
469 if(command==maxStoredHistCommand)
473 if(command==ifCommand)
481 if(comp==
">") x = (l>r);
482 else if(comp==
">=") x = (l>=r);
483 else if(comp==
"<") x = (l<r);
484 else if(comp==
"<=") x = (l<=r);
485 else if(comp==
"==") x = (l==r);
486 else if(comp==
"!=") x = (l!=r);
489 if(command==doifCommand)
498 while(!((ca=next()).isNull()))
506 if(
c1(c1.length()-1)==
'"')
507 { strippedValue =
c1(1,c1.length()-2); }
509 { strippedValue =
c1(1,c1.length()-1); }
514 if(comp==
">") x = (l>r);
515 else if(comp==
">=") x = (l>=r);
516 else if(comp==
"<") x = (l<r);
517 else if(comp==
"<=") x = (l<=r);
518 else if(comp==
"==") x = (l==r);
519 else if(comp==
"!=") x = (l!=r);
522 if(command==addCommand)
534 if(command==subtractCommand)
546 if(command==multiplyCommand)
558 if(command==divideCommand)
570 if(command==remainderCommand)
582 if(command==strifCommand)
590 if(comp==
"==") { x = (l==r); }
591 else if(comp==
"!=") { x = (l!=r); }
594 if(command==strdoifCommand)
603 while(!((ca=next()).isNull()))
611 if(
c1(c1.length()-1)==
'"')
612 { strippedValue =
c1(1,c1.length()-2); }
614 { strippedValue =
c1(1,c1.length()-1); }
619 if(comp==
"==") { x = (l==r); }
620 else if(comp==
"!=") { x = (l!=r); }
623 if(command==ifBatchCommand)
627 if(command==ifInteractiveCommand)
631 if(command==doifBatchCommand)
635 if(command==doifInteractiveCommand)
void ForeachS(const char *valueList)
void ExecuteMacroFile(const char *fileName)
void RemoveAlias(const char *aliasName)
void SetAlias(const char *aliasLine)
static G4int GetNewIntValue(const char *paramString)
static G4bool GetNewBoolValue(const char *paramString)
void SetVerboseLevel(G4int val)
static G4UImanager * GetUIpointer()
void SetSuppressAbortion(G4int i)
static G4StateManager * GetStateManager()
G4GLOB_DLL std::ostream G4cout
G4String DtoS(G4double a)
G4String GetCurrentValues(const char *aCommand)
void SetMaxHistSize(G4int mx)
void ListCommands(const char *direc)
G4double StoD(G4String s)
G4String SolveAlias(const char *aCmd)
void LoopS(const char *valueList)
static void UseDoublePrecisionStr(G4bool val)
void CreateHTML(const char *dir="/")
void StoreHistory(const char *fileName="G4history.macro")
G4String FindMacroPath(const G4String &fname) const
G4int ApplyCommand(const char *aCommand)
G4GLOB_DLL std::ostream G4cerr