#include <G4MTcoutDestination.hh>
Definition at line 45 of file G4MTcoutDestination.hh.
◆ G4MTcoutDestination()
G4MTcoutDestination::G4MTcoutDestination |
( |
const G4int & |
threadId, |
|
|
std::ostream & |
co = std::cout , |
|
|
std::ostream & |
ce = std::cerr |
|
) |
| |
◆ ~G4MTcoutDestination()
G4MTcoutDestination::~G4MTcoutDestination |
( |
| ) |
|
|
virtual |
◆ CloseCerrFile()
void G4MTcoutDestination::CloseCerrFile |
( |
| ) |
|
|
private |
◆ CloseCoutFile()
void G4MTcoutDestination::CloseCoutFile |
( |
| ) |
|
|
private |
◆ DumpBuffer()
void G4MTcoutDestination::DumpBuffer |
( |
| ) |
|
|
private |
Definition at line 171 of file G4MTcoutDestination.cc.
174 finalcout<<
"====================="<<std::endl;
175 finalcout<<
"cout buffer for worker with ID:"<<
id<<std::endl;
177 finalcerr<<
"====================="<<std::endl;
178 finalcerr<<
"cerr buffer for worker with ID:"<<
id<<std::endl;
180 finalcerr<<
"====================="<<std::endl;
std::ostringstream cout_buffer
std::ostringstream cerr_buffer
◆ EnableBuffering()
void G4MTcoutDestination::EnableBuffering |
( |
G4bool |
flag = true | ) |
|
◆ GetFullPrefixString()
G4String G4MTcoutDestination::GetFullPrefixString |
( |
| ) |
const |
|
inline |
◆ GetPrefixString()
G4String G4MTcoutDestination::GetPrefixString |
( |
| ) |
const |
|
inline |
◆ ReceiveG4cerr()
Reimplemented from G4coutDestination.
Definition at line 90 of file G4MTcoutDestination.cc.
107 std::stringstream ss;
static G4coutDestination * masterG4coutDestination
static G4StateManager * GetStateManager()
virtual G4int ReceiveG4cerr(const G4String &)
std::ostringstream cerr_buffer
◆ ReceiveG4cout()
Reimplemented from G4coutDestination.
Definition at line 59 of file G4MTcoutDestination.cc.
virtual G4int ReceiveG4cout(const G4String &)
static G4coutDestination * masterG4coutDestination
std::ostringstream cout_buffer
static G4StateManager * GetStateManager()
◆ SetCerrFileName()
void G4MTcoutDestination::SetCerrFileName |
( |
const G4String & |
fileN = "G4cerr.txt" , |
|
|
G4bool |
ifAppend = true |
|
) |
| |
Definition at line 129 of file G4MTcoutDestination.cc.
132 if( fileN ==
"**Screen**" )
return;
135 std::ios::openmode mode = std::ios::out;
◆ SetCoutFileName()
void G4MTcoutDestination::SetCoutFileName |
( |
const G4String & |
fileN = "G4cout.txt" , |
|
|
G4bool |
ifAppend = true |
|
) |
| |
Definition at line 116 of file G4MTcoutDestination.cc.
119 if( fileN ==
"**Screen**" )
return;
122 std::ios::openmode mode = std::ios::out;
◆ SetIgnoreCout()
void G4MTcoutDestination::SetIgnoreCout |
( |
G4int |
tid = 0 | ) |
|
◆ SetIgnoreInit()
void G4MTcoutDestination::SetIgnoreInit |
( |
G4bool |
val = true | ) |
|
|
inline |
◆ SetPrefixString()
void G4MTcoutDestination::SetPrefixString |
( |
const G4String & |
wd = "G4WT" | ) |
|
◆ cerr_buffer
std::ostringstream G4MTcoutDestination::cerr_buffer |
|
private |
◆ cerrFile
std::ofstream G4MTcoutDestination::cerrFile |
|
private |
◆ cout_buffer
std::ostringstream G4MTcoutDestination::cout_buffer |
|
private |
◆ coutFile
std::ofstream G4MTcoutDestination::coutFile |
|
private |
◆ finalcerr
std::ostream& G4MTcoutDestination::finalcerr |
|
private |
◆ finalcout
std::ostream& G4MTcoutDestination::finalcout |
|
private |
◆ id
const G4int G4MTcoutDestination::id |
|
private |
◆ ignoreCout
G4bool G4MTcoutDestination::ignoreCout |
|
private |
◆ ignoreInit
G4bool G4MTcoutDestination::ignoreInit |
|
private |
◆ prefix
◆ threadCerrToFile
G4bool G4MTcoutDestination::threadCerrToFile |
|
private |
◆ threadCoutToFile
G4bool G4MTcoutDestination::threadCoutToFile |
|
private |
◆ useBuffer
G4bool G4MTcoutDestination::useBuffer |
|
private |
The documentation for this class was generated from the following files: