29 #ifndef RESOURCE_FORMAT_XML_H 30 #define RESOURCE_FORMAT_XML_H 32 #include "io/resource_loader.h" 33 #include "io/resource_saver.h" 34 #include "os/file_access.h" 70 uint8_t get_char()
const;
71 int get_current_line()
const;
77 Tag* parse_tag(
bool* r_exit=NULL,
bool p_printerr=
true,
List<String> *r_order=NULL);
78 Error close_tag(
const String& p_name);
79 _FORCE_INLINE_
void unquote(
String& p_str);
80 Error goto_end_of_tag();
81 Error parse_property_data(
String &r_data);
90 virtual void set_local_path(
const String& p_local_path);
93 virtual int get_stage()
const;
94 virtual int get_stage_count()
const;
110 virtual void get_recognized_extensions_for_type(
const String& p_type,
List<String> *p_extensions)
const;
111 virtual void get_recognized_extensions(
List<String> *p_extensions)
const;
112 virtual bool handles_type(
const String& p_type)
const;
113 virtual String get_resource_type(
const String &p_path)
const;
114 virtual void get_dependencies(
const String& p_path,
List<String> *p_dependencies,
bool p_add_types=
false);
132 bool bundle_resources;
140 void enter_tag(
const char* p_tag,
const String& p_args=
String());
141 void exit_tag(
const char* p_tag);
143 void _find_resources(
const Variant& p_variant,
bool p_main=
false);
144 void write_property(
const String& p_name,
const Variant& p_property,
bool *r_ok=NULL);
147 void escape(
String& p_str);
148 void write_tabs(
int p_diff=0);
149 void write_string(
String p_str,
bool p_escape=
true);
154 Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0);
162 virtual Error save(
const String &p_path,
const RES& p_resource,uint32_t p_flags=0);
163 virtual bool recognize(
const RES& p_resource)
const;
164 virtual void get_recognized_extensions(
const RES& p_resource,
List<String> *p_extensions)
const;
170 #endif // RESOURCE_FORMAT_XML_H Definition: reference.h:78
Definition: resource_format_xml.h:38
Definition: file_access.h:40
Definition: resource_loader.h:38