53 throw std::ios_base::failure(
"No output file name specified");
56 if(m_output !=
nullptr && m_output->is_open())
60 m_output = std::make_unique<std::ofstream>(m_name, std::ios_base::out | mode);
66 if(m_output && m_output->is_open())
75 if(m_output ==
nullptr || !m_output->is_open())
86 if(m_output ==
nullptr || !m_output->is_open())
~G4FilecoutDestination() override
void Open(std::ios_base::openmode mode=std::ios_base::app)
G4int ReceiveG4cout(const G4String &msg) override
G4int ReceiveG4cerr(const G4String &msg) override