40 if (fullName ==
"/dev/null") {
54 throw IOError(
"Could not build output file '" + fullName +
"' (" + e.
what() +
").");
57 myFileStream =
new std::ofstream(fullName.c_str(), std::ios_base::out);
61 myFileStream =
new std::ofstream(fullName.c_str(), binary ? std::ios::binary : std::ios_base::out);
#define UNUSED_PARAMETER(x)
std::ostream * myFileStream
The wrapped ofstream.
OutputDevice_File(const std::string &fullName, const bool compressed=false)
Constructor.
std::ostream & getOStream()
Returns the associated ostream.
~OutputDevice_File()
Destructor.
Static storage of an output device and its base (abstract) implementation.
Exception class thrown by failed zlib operations.
const char * what() const NOEXCEPT
static std::string strerror()