The Sparta Modeling Framework
|
#include <FILEStream.hpp>
Public Member Functions | |
FILEOstream (FILE *fd) | |
std::ostream & | getStream () |
A class for creating an ostream from a C file stream.
Create one of these on the stack, then use the getStream method to get a reference to its std::ostream.
This class basically holds the appropriate custom streambuf instance and the ostream instance. The caller will still be responsible for creating and closing the C file stream.
Definition at line 21 of file FILEStream.hpp.
|
inline |
Constructor.
fd | Pointer to the underlying file stream. |
Definition at line 138 of file FILEStream.hpp.
|
inline |
Get a reference to the internal ostream.
Definition at line 148 of file FILEStream.hpp.