50 : ref_defaultOut(nullptr), ref_masterOut(nullptr),
51 masterDestinationFlag(
true),masterDestinationFmtFlag(
true),
52 id(threadId), useBuffer(
false), ignoreCout(
false), ignoreInit(
true),
70 std::ostringstream str;
90 output->AddCoutTransformer(
f);
91 output->AddCerrTransformer(
f);
92 push_back( std::move(output) );
93 if ( addmasterDestination )
112 if ( formatAlsoMaster )
116 std::ostringstream str;
123 forwarder->AddCoutTransformer(
f);
124 forwarder->AddCerrTransformer(
f);
126 push_back( std::move(forwarder ) );
149 : std::ios_base::trunc);
154 output->AddCerrTransformer( [](
G4String&) {
return false;} );
155 push_back(std::move(output));
157 if ( suppressDefault )
171 : std::ios_base::trunc);
173 output->AddCoutTransformer( [](
G4String&) {
return false;} );
174 push_back(std::move(output));
175 if ( suppressDefault )
188 if ( fileN !=
"**Screen**" )
210 const size_t infiniteSize = 0;
213 else { assert(
false); }
230 if ( fileN !=
"**Screen**")
256 std::ostringstream msg;
257 msg <<
"=======================\n";
258 msg <<
"cout buffer(s) for worker with ID:" <<
id << std::endl;
261 std::for_each( begin() , end(),
264 if ( cout !=
nullptr ) {
273 msg <<
"=======================\n";
274 msg <<
"cerr buffer(s) for worker with ID:" <<
id
275 <<
" (goes to std error)" << std::endl;
277 std::for_each( begin() , end(),
280 if ( cout !=
nullptr ) {