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