#include "..\foundation\streams.h"#include "..\..\assetmanagement\AssetUser.h"#include "..\macros\define_implementations.h"#include "..\protocols\strings.inl"#include "..\protocols\streams.inl"Go to the source code of this file.
Defines |
|
| #define | is_string(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(String)) |
| #define | is_stringstream(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(StringStream)) |
Functions |
|
| visible_class_debug_ok (String) class String | |
| applyable_class_debug_ok (StringStream) class StringStream | |
| ScripterExport MSTR | expand_file_name (const MCHAR *file_name) |
| ScripterExport MSTR | expand_file_dir (const MCHAR *dir) |
| #define is_string | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(String)) |
| #define is_stringstream | ( | v | ) | ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(StringStream)) |
| visible_class_debug_ok | ( | String | ) |
Define an equal operator (i.e. '==') for maxscript visible values.
Define a NOT equal operator (i.e. '!=') for maxscript visible values.
Definition at line 13 of file strings.h.
: public Value
{
MCHAR* string;
const MaxSDK::AssetManagement::AssetId* pAssetId;
public:
ScripterExport String(const MCHAR *init_string);
ScripterExport String(const MCHAR *init_string, const MaxSDK::AssetManagement::AssetId& assetId);
~String();
classof_methods (String, Value);
# define is_string(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(String))
void collect() { delete this; }
ScripterExport void sprin1(CharStream* s);
Value* append(const MCHAR* str);
Value* append(Value* str_val) { return append(str_val->to_string()); }
const MaxSDK::AssetManagement::AssetId* GetAssetId();
#include "..\macros\define_implementations.h"
# include "..\protocols\strings.inl"
def_property( count );
MCHAR* to_string();
MSTR to_filename();
void to_fpvalue(FPValue& v) { v.s = to_string(); v.type = TYPE_STRING; }
Value* eval(); // returns new string if string is a literal
// scene I/O
IOResult Save(ISave* isave);
static Value* Load(ILoad* iload, USHORT chunkID, ValueLoader* vload);
friend class StringStream;
};
| applyable_class_debug_ok | ( | StringStream | ) |
Define an equal operator (i.e. '==') for maxscript visible values.
Define a NOT equal operator (i.e. '!=') for maxscript visible values.
Definition at line 54 of file strings.h.
: public CharStream
{
public:
MCHAR* content_string; /* the content string */
MCHAR* cursor; /* current read/write cursor */
size_t buf_len; /* allocated buffer length */
int ungetchar_count;
Parser* reader;
ScripterExport StringStream();
ScripterExport ~StringStream();
ScripterExport StringStream(const MCHAR* init_string);
ScripterExport StringStream(int ilen);
ScripterExport StringStream(Value* init_string_value);
ScripterExport void init(const MCHAR* init_string);
classof_methods (StringStream, CharStream);
# define is_stringstream(v) ((DbgVerify(!is_sourcepositionwrapper(v)), (v))->tag == class_tag(StringStream))
void collect() { delete this; }
void gc_trace();
ScripterExport void sprin1(CharStream* s);
#include "..\macros\define_implementations.h"
# include "..\protocols\streams.inl"
use_generic( coerce, "coerce");
use_generic( copy, "copy");
use_generic( append, "append");
Value* get_property(Value** arg_list, int count);
Value* set_property(Value** arg_list, int count);
// only want CharStream::file_name to be used in context of resolving resource file name
Value* get_file_name() { return NULL; }
ScripterExport MCHAR get_char();
ScripterExport void unget_char(MCHAR c);
ScripterExport MCHAR peek_char();
ScripterExport unsigned int pos();
void seek(int pos);
ScripterExport int at_eos();
ScripterExport void rewind();
ScripterExport void set_size(int size);
ScripterExport void flush_to_eol();
ScripterExport void flush_to_eobuf();
ScripterExport void undo_lookahead();
ScripterExport const MCHAR* puts(const MCHAR* str);
ScripterExport MCHAR putch(MCHAR c);
ScripterExport int printf(const MCHAR *format, ...);
MCHAR* to_string();
void to_fpvalue(FPValue& v) { v.s = to_string(); v.type = TYPE_STRING; }
};
| ScripterExport MSTR expand_file_name | ( | const MCHAR * | file_name | ) |
| ScripterExport MSTR expand_file_dir | ( | const MCHAR * | dir | ) |