#include <CharBinaryStream.h>
Public Member Functions |
|
CharBinaryStream () | |
virtual | ~CharBinaryStream () |
bool | Open (MaxSDK::Util::BinaryStream *stream, const MSTR &mode, unsigned int encoding=-1) |
Open a text file. |
|
virtual MaxSDK::Util::Char | get_char () |
virtual void | unget_char (const MaxSDK::Util::Char &c) |
virtual MaxSDK::Util::Char | peek_char () |
virtual int | at_eos () |
virtual void | rewind () |
virtual void | seek (int pos) |
virtual unsigned int | pos () |
virtual unsigned int | line () |
virtual void | flush () |
virtual void | flush_to_eol () |
virtual MaxSDK::Util::Char | putch (const MaxSDK::Util::Char &c) |
virtual const MCHAR * | puts (const MCHAR *str) |
virtual int | printf (const MCHAR *format,...) |
virtual void | close () |
bool | IsEncrypted () const |
void | check_file_is_open () const |
void | check_readable () const |
void | check_writeable () const |
void | check_is_not_eof () const |
Protected Member Functions |
|
virtual void | ThrowNotOpenedError () const |
virtual void | ThrowNotReadableError () const |
virtual void | ThrowNotWritableError () const |
virtual void | ThrowReachEOFError () const |
Protected Attributes |
|
MaxSDK::Util::BinaryStream * | stream |
MaxSDK::Util::TextFile::BaseTextReader * | textReader |
MaxSDK::Util::TextFile::BaseTextWriter * | textWriter |
CharBinaryStream | ( | ) |
virtual ~CharBinaryStream | ( | ) | [virtual] |
bool Open | ( | MaxSDK::Util::BinaryStream * | stream, |
const MSTR & | mode, | ||
unsigned int | encoding =
-1 |
||
) |
Open a text file.
[in] | stream | The binary stream that holds the file. |
[in] | mode | The file open mode. See the MAXScript Help file, topic FileStream Values, for a description of the mode string values. |
[in] | encoding | The encoding to use if if can not be determined from the file contents, If -1, a default encoding based on the file language settings in Preference /Files (exposed through Interface14) will be used. |
virtual MaxSDK::Util::Char get_char | ( | ) | [virtual] |
virtual void unget_char | ( | const MaxSDK::Util::Char & | c | ) | [virtual] |
virtual MaxSDK::Util::Char peek_char | ( | ) | [virtual] |
virtual int at_eos | ( | ) | [virtual] |
virtual void rewind | ( | ) | [virtual] |
virtual void seek | ( | int | pos | ) | [virtual] |
virtual unsigned int pos | ( | ) | [virtual] |
virtual unsigned int line | ( | ) | [virtual] |
virtual void flush | ( | ) | [virtual] |
virtual void flush_to_eol | ( | ) | [virtual] |
virtual MaxSDK::Util::Char putch | ( | const MaxSDK::Util::Char & | c | ) | [virtual] |
virtual const MCHAR* puts | ( | const MCHAR * | str | ) | [virtual] |
virtual int printf | ( | const MCHAR * | format, |
... | |||
) | [virtual] |
virtual void close | ( | ) | [virtual] |
bool IsEncrypted | ( | ) | const |
void check_file_is_open | ( | ) | const |
void check_readable | ( | ) | const |
void check_writeable | ( | ) | const |
void check_is_not_eof | ( | ) | const |
virtual void ThrowNotOpenedError | ( | ) | const [protected, virtual] |
virtual void ThrowNotReadableError | ( | ) | const [protected, virtual] |
virtual void ThrowNotWritableError | ( | ) | const [protected, virtual] |
virtual void ThrowReachEOFError | ( | ) | const [protected, virtual] |
MaxSDK::Util::BinaryStream*
stream
[protected] |