36 #ifdef CHECK_MEMORY_LEAKS
38 #endif // CHECK_MEMORY_LEAKS
47 if (fullName ==
"/dev/null") {
50 if (fullName ==
"nul" || fullName ==
"NUL") {
54 myFileStream =
new std::ofstream(fullName.c_str(), binary ? std::ios::binary : std::ios_base::out);
58 throw IOError(
"Could not build output file '" + fullName +
"'.");
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.