HDK
|
#include <GA_IO.h>
Public Member Functions | |
io_ReadHandle () | |
io_ReadHandle (const GA_IO &io, const char *filename, UT_StringArray *errors) | |
~io_ReadHandle () | |
bool | isValid () const |
Test whether the read handle is valid. More... | |
bool | isStdin () const |
Test whether the read handle reads from stdin. More... | |
UT_IStream * | getStream () const |
Get the UT_IStream associated with the handle. More... | |
UT_IStream * | open (const GA_IO &io, const char *filename, UT_StringArray *errors) |
void | close () |
Close the stream. More... | |
const FS_Reader * | reader () const |
Provide access to the FS_Reader (this may be nullptr) More... | |
Class to hold information about a read stream. This class is used solely to hold the istream handles and clean up properly. Destruction of the class will close the stream
|
inline |
void io_ReadHandle::close | ( | ) |
Close the stream.
|
inline |
Get the UT_IStream associated with the handle.
|
inline |
|
inline |
UT_IStream* io_ReadHandle::open | ( | const GA_IO & | io, |
const char * | filename, | ||
UT_StringArray * | errors | ||
) |
Open a file for reading. If check_stdin
is true and the filename starts with "stdin", the stream returned will be stdin. If the open fails, errors will be appended to the error array.
|
inline |