37 :
OutputDevice(binary, 0, fullName), myFileStream(nullptr) {
39 if (fullName ==
"/dev/null") {
43 myFileStream =
new std::ofstream(fullName.c_str(), binary ? std::ios::binary : std::ios_base::out);
46 throw IOError(
"Could not build output file '" + fullName +
"' (" + std::strerror(errno) +
").");
std::ostream & getOStream()
Returns the associated ostream.
std::ofstream * myFileStream
The wrapped ofstream.
~OutputDevice_File()
Destructor.
OutputDevice_File(const std::string &fullName, const bool binary)
Constructor.
Static storage of an output device and its base (abstract) implementation.