37 #ifdef CHECK_MEMORY_LEAKS
39 #endif // CHECK_MEMORY_LEAKS
48 if (fullName ==
"/dev/null") {
51 if (fullName ==
"nul" || fullName ==
"NUL") {
55 myFileStream =
new std::ofstream(fullName.c_str(), binary ? std::ios::binary : std::ios_base::out);
59 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.