39 std::ostream& co, std::ostream& ce)
40 : finalcout(co), finalcerr(ce), id(threadId), useBuffer(false),
41 threadCoutToFile(false), threadCerrToFile(false), ignoreCout(false)
82 if( fileN ==
"**Screen**" )
return;
85 std::ios::openmode mode = std::ios::out;
86 if ( ifAppend ) mode |= std::ios::app;
95 if( fileN ==
"**Screen**" )
return;
98 std::ios::openmode mode = std::ios::out;
99 if ( ifAppend ) mode |= std::ios::app;
137 finalcout<<
"====================="<<std::endl;
138 finalcout<<
"cout buffer for worker with ID:"<<
id<<std::endl;
140 finalcerr<<
"====================="<<std::endl;
141 finalcerr<<
"cerr buffer for worker with ID:"<<
id<<std::endl;
143 finalcerr<<
"====================="<<std::endl;
void SetCerrFileName(const G4String &fileN="G4cerr.txt", G4bool ifAppend=true)
std::ostringstream cout_buffer
#define G4MUTEX_INITIALIZER
void SetPrefixString(const G4String &wd="G4WT")
void SetCoutFileName(const G4String &fileN="G4cout.txt", G4bool ifAppend=true)
G4MTcoutDestination(const G4int &threadId, std::ostream &co=std::cout, std::ostream &ce=std::cerr)
void EnableBuffering(G4bool flag=true)
void SetIgnoreCout(G4int tid=0)
void SetDestination(G4coutDestination *dest)
std::ostringstream cerr_buffer
virtual G4int ReceiveG4cerr(const G4String &)
virtual G4int ReceiveG4cout(const G4String &)
virtual ~G4MTcoutDestination()