HDK
|
#include <GA_IO.h>
Public Member Functions | |
io_WriteHandle () | |
io_WriteHandle (const GA_IO &io, const char *filename, UT_StringArray *errors) | |
~io_WriteHandle () | |
bool | isValid () const |
Check if the stream is valid. More... | |
std::ostream * | getStream () const |
Get the output stream. More... | |
std::ostream * | open (const GA_IO &io, const char *filename, UT_StringArray *errors) |
void | close () |
Close the stream. More... | |
Class to hold information about a write stream. This class is used solely to hold the ostream handles and clean up properly. Destruction of the class will close the stream.
|
inline |
void io_WriteHandle::close | ( | ) |
Close the stream.
|
inline |
|
inline |
std::ostream* io_WriteHandle::open | ( | const GA_IO & | io, |
const char * | filename, | ||
UT_StringArray * | errors | ||
) |
Open a file for reading. If check_stdout
is true and the filename starts with "stdout", the stream returned will be stdout. If the open fails, errors will be appended to the error array.