1 #ifndef VARIANT_PARSER_H 2 #define VARIANT_PARSER_H 5 #include "os/file_access.h" 13 virtual CharType get_char()=0;
14 virtual bool is_utf8()
const=0;
15 virtual bool is_eof()
const=0;
27 virtual CharType get_char();
28 virtual bool is_utf8()
const;
29 virtual bool is_eof()
const;
40 virtual CharType get_char();
41 virtual bool is_utf8()
const;
42 virtual bool is_eof()
const;
53 ParseResourceFunc func;
54 ParseResourceFunc ext_func;
55 ParseResourceFunc sub_func;
60 TK_CURLY_BRACKET_OPEN,
61 TK_CURLY_BRACKET_CLOSE,
100 static const char * tk_name[TK_MAX];
103 static Error _parse_construct(
Stream *p_stream,
Vector<T>& r_construct,
int &line,
String &r_err_str);
115 static Error get_token(
Stream *p_stream,
Token& r_token,
int &line,
String &r_err_str);
125 typedef Error (*StoreStringFunc)(
void *ud,
const String& p_string);
126 typedef String (*EncodeResourceFunc)(
void *ud,
const RES& p_resource);
128 static Error write(
const Variant& p_variant, StoreStringFunc p_store_string_func,
void *p_store_string_ud,EncodeResourceFunc p_encode_res_func,
void* p_encode_res_ud);
129 static Error write_to_string(
const Variant& p_variant,
String& r_string, EncodeResourceFunc p_encode_res_func=NULL,
void* p_encode_res_ud=NULL);
139 #endif // VARIANT_PARSER_H
Definition: variant_parser.h:50
Definition: variant_parser.h:35
Definition: variant_parser.h:11
Definition: variant_parser.h:23
Definition: variant_parser.h:93
Definition: dictionary.h:42
Definition: variant_parser.h:122
Definition: variant_parser.h:8
Definition: file_access.h:40
Definition: variant_parser.h:87