47 coutDir->
SetGuidance(
"Control cout/cerr for local thread.");
49 coutFileNameCmd =
new G4UIcommand(
"/control/cout/setCoutFile",
this);
51 "Send G4cout stream to a file dedicated to a thread. ");
53 "To have a display output, use special keyword \"**Screen**\".");
55 "If append flag is true output is appended to file,");
56 coutFileNameCmd->
SetGuidance(
"otherwise file output is overwritten.");
59 pp->SetDefaultValue(
"**Screen**");
62 pp->SetDefaultValue(
true);
65 cerrFileNameCmd =
new G4UIcommand(
"/control/cout/setCerrFile",
this);
67 "Send G4cerr stream to a file dedicated to a thread. ");
69 "To have a display output, use special keyword \"**Screen**\".");
71 "If append flag is true output is appended to file,");
72 cerrFileNameCmd->
SetGuidance(
"otherwise file output is overwritten.");
75 pp->SetDefaultValue(
"**Screen**");
78 pp->SetDefaultValue(
true);
82 bufferCoutCmd->
SetGuidance(
"Send cout and/or cerr stream to a buffer.");
84 "The buffered text will be printed at the end of the job");
86 "for each thread at a time, so that output of each thread is grouped.");
88 "This command has no effect if output goes to a file.");
95 "Set the prefix string for each cout/cerr line from a thread.");
102 ignoreCmd->
SetGuidance(
"Omit cout from threads except the specified one.");
103 ignoreCmd->
SetGuidance(
"This command takes effect only if cout destination "
104 "is screen without buffering.");
106 "If specified thread ID is greater than the number of threads,");
108 "no cout is displayed from worker threads. -1 to reset.");
109 ignoreCmd->
SetGuidance(
"This command does not affect to cerr.");
116 ignoreInitCmd->
SetGuidance(
"Omit cout from threads during initialization, as "
117 "they should be identical to the master thread.");
118 ignoreInitCmd->
SetGuidance(
"This command takes effect only if cout "
119 "destination is screen without buffering.");
120 ignoreInitCmd->
SetGuidance(
"This command does not affect to cerr.");
129 delete coutFileNameCmd;
130 delete cerrFileNameCmd;
131 delete bufferCoutCmd;
134 delete ignoreInitCmd;
143 if(command == coutFileNameCmd)
150 else if(command == cerrFileNameCmd)
157 else if(command == bufferCoutCmd)
161 else if(command == prefixCmd)
165 else if(command == ignoreCmd)
169 else if(command == ignoreInitCmd)
G4LocalThreadCoutMessenger()
void SetNewValue(G4UIcommand *, G4String)
~G4LocalThreadCoutMessenger()
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)
void SetDefaultValue(G4int defVal)
void SetParameter(G4UIparameter *const newParameter)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetCerrFileName(const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
void SetThreadIgnoreInit(G4bool flg=true)
void SetCoutFileName(const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
void SetThreadIgnore(G4int tid=0)
void SetThreadPrefixString(const G4String &s="W")
static G4UImanager * GetUIpointer()
void SetThreadUseBuffer(G4bool flg=true)