#include <G4LocalThreadCoutMessenger.hh>
G4LocalThreadCoutMessenger::G4LocalThreadCoutMessenger |
( |
| ) |
|
Definition at line 43 of file G4LocalThreadCoutMessenger.cc.
46 coutDir->
SetGuidance(
"Control cout/cerr for local thread.");
48 coutFileNameCmd =
new G4UIcommand(
"/control/cout/setCoutFile",
this);
49 coutFileNameCmd->
SetGuidance(
"Send G4cout stream to a file dedicated to a thread. ");
50 coutFileNameCmd->
SetGuidance(
"To have a display output, use special keyword \"**Screen**\".");
51 coutFileNameCmd->
SetGuidance(
"If append flag is true output is appended to file,");
52 coutFileNameCmd->
SetGuidance(
"otherwise file output is overwritten.");
61 cerrFileNameCmd =
new G4UIcommand(
"/control/cout/setCerrFile",
this);
62 cerrFileNameCmd->
SetGuidance(
"Send G4cerr stream to a file dedicated to a thread. ");
63 cerrFileNameCmd->
SetGuidance(
"To have a display output, use special keyword \"**Screen**\".");
64 cerrFileNameCmd->
SetGuidance(
"If append flag is true output is appended to file,");
65 cerrFileNameCmd->
SetGuidance(
"otherwise file output is overwritten.");
75 bufferCoutCmd->
SetGuidance(
"Send cout and/or cerr stream to a buffer.");
76 bufferCoutCmd->
SetGuidance(
"The buffered text will be printed at the end of the job");
77 bufferCoutCmd->
SetGuidance(
"for each thread at a time, so that output of each thread is grouped.");
78 bufferCoutCmd->
SetGuidance(
"This command has no effect if output goes to a file.");
84 prefixCmd->
SetGuidance(
"Set the prefix string for each cout/cerr line from a thread.");
90 ignoreCmd->
SetGuidance(
"Omit cout from threads except the specified one.");
91 ignoreCmd->
SetGuidance(
"This command takes effect only if cout destination is screen without buffering.");
92 ignoreCmd->
SetGuidance(
"If specified thread ID is greater than the number of threads,");
93 ignoreCmd->
SetGuidance(
"no cout is displayed from worker threads. -1 to reset.");
94 ignoreCmd->
SetGuidance(
"This command does not affect to cerr.");
99 ignoreInitCmd =
new G4UIcmdWithABool(
"/control/cout/ignoreInitializationCout",
this);
100 ignoreInitCmd->
SetGuidance(
"Omit cout from threads during initialization, as they should be identical to the masther thread.");
101 ignoreInitCmd->
SetGuidance(
"This command takes effect only if cout destination is screen without buffering.");
102 ignoreInitCmd->
SetGuidance(
"This command does not affect to cerr.");
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetParameter(G4UIparameter *const newParameter)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetDefaultValue(const char *theDefaultValue)
void SetDefaultValue(G4bool defVal)
void SetParameterName(const char *theName, G4bool omittable, G4bool currentAsDefault=false)
void SetGuidance(const char *aGuidance)
void AvailableForStates(G4ApplicationState s1)
void SetDefaultValue(const char *defVal)
void SetDefaultValue(G4int defVal)
G4LocalThreadCoutMessenger::~G4LocalThreadCoutMessenger |
( |
| ) |
|
Definition at line 108 of file G4LocalThreadCoutMessenger.cc.
110 delete coutFileNameCmd;
111 delete cerrFileNameCmd;
112 delete bufferCoutCmd;
115 delete ignoreInitCmd;
Reimplemented from G4UImessenger.
Definition at line 119 of file G4LocalThreadCoutMessenger.cc.
122 if(command == coutFileNameCmd)
129 else if(command == cerrFileNameCmd)
136 else if(command == bufferCoutCmd)
138 else if(command == prefixCmd)
140 else if(command == ignoreCmd)
142 else if(command == ignoreInitCmd)
void SetThreadPrefixString(const G4String &s="W")
void SetCoutFileName(const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
void SetThreadUseBuffer(G4bool flg=true)
void SetCerrFileName(const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
static G4UImanager * GetUIpointer()
void SetThreadIgnoreInit(G4bool flg=true)
void SetThreadIgnore(G4int tid=0)
The documentation for this class was generated from the following files: