4 G4UImanager* UI = G4UImanager::GetUIpointer();
5 UI->SetCoutDestination(
this);
9 G4UImanager* UI = G4UImanager::GetUIpointer();
10 UI->SetCoutDestination(
nullptr);
16 (*fout) <<
trim(coutString) <<
"\n";
30 if (!str.empty() && str.back() ==
'\n')
31 return str.substr(0, str.length() - 1);
36 if (ptr && !ptr->fail()) {
void sendToFile(std::ofstream *)
std::string trim(const std::string &str)
G4int ReceiveG4cerr(const G4String &cerrString) override
G4int ReceiveG4cout(const G4String &coutString) override
~CustomUIsession() override