50 throw std::ios_base::failure(
"No output file name specified");
53 if(m_output !=
nullptr && m_output->is_open())
55 m_output.reset(
new std::ofstream(m_name, std::ios_base::out | mode));
61 if(m_output && m_output->is_open())
70 if(m_output ==
nullptr || !m_output->is_open())
79 if(m_output ==
nullptr || !m_output->is_open())
void Open(std::ios_base::openmode mode=std::ios_base::app)
virtual G4int ReceiveG4cout(const G4String &msg) override
virtual G4int ReceiveG4cerr(const G4String &msg) override
virtual ~G4FilecoutDestination()