Import Geant4 11.2.0.beta source tree
This commit is contained in:
@@ -40,7 +40,7 @@
|
||||
// auto multi = new G4MulticoutDestination();
|
||||
// multi->push_back( G4coutDestinationUPtr( new MyCout1 ) );
|
||||
// multi->push_back( G4coutDestinationUPtr( new MyCout2 ) );
|
||||
// G4coutbuf.SetDestination( multi ); // or G4cerrbuf
|
||||
// G4iosSetDestination( multi ); // or G4cerrbuf
|
||||
|
||||
// ---------------- G4MulticoutDestination ----------------
|
||||
//
|
||||
@@ -67,6 +67,15 @@ class G4MulticoutDestination
|
||||
|
||||
// Forward call to contained destination. Note that the message may have
|
||||
// been modified by formatters attached to this
|
||||
G4int ReceiveG4debug(const G4String& msg) override
|
||||
{
|
||||
G4bool result = true;
|
||||
std::for_each(begin(), end(), [&](G4coutDestinationUPtr& e) {
|
||||
result &= (e->ReceiveG4debug_(msg) == 0);
|
||||
});
|
||||
return (result ? 0 : -1);
|
||||
}
|
||||
|
||||
G4int ReceiveG4cout(const G4String& msg) override
|
||||
{
|
||||
G4bool result = true;
|
||||
|
||||
Reference in New Issue
Block a user