#include <CharBinaryStream.h>
Inheritance diagram for CharBinaryStream:Public Member Functions | |
| CharBinaryStream () | |
| virtual | ~CharBinaryStream () |
| bool | Open (MaxSDK::Util::BinaryStream *stream, const MSTR &mode, unsigned int encoding=-1) |
| Open a text file. More... | |
| 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 |
| 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 |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
| bool IsEncrypted | ( | ) | const |
| void check_file_is_open | ( | ) | const |
| void check_readable | ( | ) | const |
| void check_writeable | ( | ) | const |
| void check_is_not_eof | ( | ) | const |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
|
protected |
|
protected |