arsa  2.7
Typedefs | Functions | Variables
arsa_xml.h File Reference
#include "arsa_begin_code.h"
#include <irrlicht.h>
#include <pugixml.hpp>

Go to the source code of this file.

Typedefs

typedef pugi::xml_node arsa_xml_node
 
typedef pugi::xml_document arsa_xml_doc
 
typedef irr::core::array< arsa_xml_nodeArrayXmlNode
 

Functions

ARSA_API bool ARSACALLCONV xml_load_json (arsa_xml_doc &doc, const void *dat, long len)
 
ARSA_API bool ARSACALLCONV xml_save_json (const arsa_xml_doc &doc, irr::core::stringc &out_stream)
 
ARSA_API bool ARSACALLCONV xml_save_json (const arsa_xml_node &node, irr::core::stringc &out_stream)
 
ARSA_API bool ARSACALLCONV xml_load (arsa_xml_doc &doc, const void *dat, long len)
 
ARSA_API bool ARSACALLCONV xml_load_from_file (arsa_xml_doc &doc, const irr::io::path &name)
 
ARSA_API bool ARSACALLCONV xml_save (const arsa_xml_doc &doc, irr::core::stringc &out_stream, int encoding=XML_ENCODING_AUTO)
 
ARSA_API bool ARSACALLCONV xml_save (const arsa_xml_node &node, irr::core::stringc &out_stream, int encoding=XML_ENCODING_AUTO)
 
ARSA_API bool ARSACALLCONV xml_save_to_file (const arsa_xml_doc &doc, const irr::io::path &name, int encoding=XML_ENCODING_AUTO)
 
ARSA_API bool ARSACALLCONV xml_is_empty (const arsa_xml_node &node)
 
ARSA_API irr::io::IAttributes *ARSACALLCONV xml_create_att (const arsa_xml_node &node, irr::video::IVideoDriver *driver, irr::io::IFileSystem *fs)
 
ARSA_API const char *ARSACALLCONV xml_get_name (const arsa_xml_node &node)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_get_parent (const arsa_xml_node &node)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_get_first (const arsa_xml_doc &doc)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_get_first (const arsa_xml_node &node)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_get_node (const arsa_xml_node &node, const irr::core::stringc &xml_tag_name)
 
ARSA_API irr::u32 ARSACALLCONV xml_get_node (const arsa_xml_node &node, const irr::core::stringc &xml_tag_name, ArrayXmlNode &out_node_array)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_get_node_by_type (const arsa_xml_node &node, const irr::core::stringc &type)
 
ARSA_API irr::u32 ARSACALLCONV xml_get_node_by_type (const arsa_xml_node &node, const irr::core::stringc &type, ArrayXmlNode &out_node_array, bool ignore_case=false)
 
ARSA_API irr::u32 ARSACALLCONV xml_get_node_by_visible (arsa_xml_node &node, bool visible, ArrayXmlNode &out_node_array)
 
ARSA_API void ARSACALLCONV xml_calculate_id (const arsa_xml_node &node, int lastest_id)
 
ARSA_API void ARSACALLCONV xml_calculate_transformation (const arsa_xml_node &node, const irr::core::vector3df *position, const irr::core::vector3df *rotation)
 
ARSA_API bool ARSACALLCONV xml_is_visible (const arsa_xml_node &node, bool &out_visible)
 
ARSA_API bool ARSACALLCONV xml_is_name_equal (const arsa_xml_node &node, irr::core::stringc &out_name)
 
ARSA_API bool ARSACALLCONV xml_remove_node (arsa_xml_node &node)
 
ARSA_API bool ARSACALLCONV xml_remove_node_by_name (arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API bool ARSACALLCONV xml_remove_node_by_visible (arsa_xml_node &node, bool visible=true)
 
ARSA_API bool ARSACALLCONV xml_remove_node_by_type (arsa_xml_node &node, const irr::core::stringc &type)
 
ARSA_API bool ARSACALLCONV xml_remove_node_by_type (arsa_xml_node &node, const irr::core::array< irr::core::stringc > &type_list)
 
ARSA_API void ARSACALLCONV xml_remove_node_by_att_name (arsa_xml_node &node, const irr::core::stringc &prefix)
 
ARSA_API void ARSACALLCONV xml_remove_node_by_att_name_value (arsa_xml_node &node, const irr::core::stringc &prefix, const irr::core::stringc &value)
 
ARSA_API bool ARSACALLCONV xml_move_node_to_start_by_type (arsa_xml_node &node, const irr::core::stringc &type, bool start=true)
 
ARSA_API bool ARSACALLCONV xml_set_att_as_string (arsa_xml_node &node, const irr::core::stringc &name, const irr::core::stringc &value)
 
ARSA_API const char *ARSACALLCONV xml_get_att_as_string (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API irr::s32 ARSACALLCONV xml_get_att_as_int (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API irr::f32 ARSACALLCONV xml_get_att_as_float (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API bool ARSACALLCONV xml_get_att_as_bool (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API irr::core::vector3df ARSACALLCONV xml_get_att_as_vector3df (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API irr::video::SColor ARSACALLCONV xml_get_att_as_color (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API irr::core::quaternion ARSACALLCONV xml_get_att_as_queterion (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API bool ARSACALLCONV xml_get_att_is_exist (const arsa_xml_node &node, const irr::core::stringc &name)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_new_node (arsa_xml_node &node, const irr::core::stringc &name, bool after=true)
 
ARSA_API bool ARSACALLCONV xml_set_value (arsa_xml_node &node, const irr::core::stringc &value)
 
ARSA_API irr::core::stringc ARSACALLCONV xml_get_value (const arsa_xml_node &node)
 
ARSA_API void ARSACALLCONV xml_new_att_string (arsa_xml_node &node, const irr::core::stringc &name, const irr::core::stringc &value)
 
ARSA_API void ARSACALLCONV xml_new_att_int (arsa_xml_node &node, const irr::core::stringc &name, irr::s32 value)
 
ARSA_API void ARSACALLCONV xml_new_att_u32 (arsa_xml_node &node, const irr::core::stringc &name, irr::u32 value)
 
ARSA_API void ARSACALLCONV xml_new_att_float (arsa_xml_node &node, const irr::core::stringc &name, irr::f32 value)
 
ARSA_API void ARSACALLCONV xml_new_att_vec (arsa_xml_node &node, const irr::core::stringc &name, const irr::core::vector3df &vec)
 
ARSA_API void ARSACALLCONV xml_new_att_color (arsa_xml_node &node, const irr::core::stringc &name, const irr::video::SColor &color)
 
ARSA_API void ARSACALLCONV xml_new_att_bool (arsa_xml_node &node, const irr::core::stringc &name, bool value)
 
ARSA_API bool ARSACALLCONV xml_is_sub_string_equal (const irr::core::stringc &name, const irr::core::stringc &sub)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_child_insert (arsa_xml_node &root, const arsa_xml_node &node, bool insert_end=true)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_child_add (arsa_xml_doc &doc, const irr::core::stringc &name)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_child_first (const arsa_xml_node &node)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_child_next (const arsa_xml_node &node)
 
ARSA_API arsa_xml_node ARSACALLCONV xml_child_last (const arsa_xml_node &node)
 
ARSA_API irr::u32 ARSACALLCONV xml_child_count (const arsa_xml_node &node)
 

Variables

ARSA_API int XML_ENCODING_AUTO
 
ARSA_API int XML_ENCODING_UTF8
 
ARSA_API int XML_ENCODING_UTF16
 
ARSA_API int XML_ENCODING_UTF32
 

Typedef Documentation

◆ ArrayXmlNode

Definition at line 21 of file arsa_xml.h.

◆ arsa_xml_doc

Definition at line 20 of file arsa_xml.h.

◆ arsa_xml_node

Definition at line 19 of file arsa_xml.h.

Function Documentation

◆ xml_calculate_id()

ARSA_API void ARSACALLCONV xml_calculate_id ( const arsa_xml_node node,
int  lastest_id 
)

◆ xml_calculate_transformation()

ARSA_API void ARSACALLCONV xml_calculate_transformation ( const arsa_xml_node node,
const irr::core::vector3df position,
const irr::core::vector3df rotation 
)

◆ xml_child_add()

◆ xml_child_count()

ARSA_API irr::u32 ARSACALLCONV xml_child_count ( const arsa_xml_node node)

◆ xml_child_first()

ARSA_API arsa_xml_node ARSACALLCONV xml_child_first ( const arsa_xml_node node)

◆ xml_child_insert()

ARSA_API arsa_xml_node ARSACALLCONV xml_child_insert ( arsa_xml_node root,
const arsa_xml_node node,
bool  insert_end = true 
)

◆ xml_child_last()

◆ xml_child_next()

◆ xml_create_att()

◆ xml_get_att_as_bool()

ARSA_API bool ARSACALLCONV xml_get_att_as_bool ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_color()

ARSA_API irr::video::SColor ARSACALLCONV xml_get_att_as_color ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_float()

ARSA_API irr::f32 ARSACALLCONV xml_get_att_as_float ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_int()

ARSA_API irr::s32 ARSACALLCONV xml_get_att_as_int ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_queterion()

ARSA_API irr::core::quaternion ARSACALLCONV xml_get_att_as_queterion ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_string()

ARSA_API const char* ARSACALLCONV xml_get_att_as_string ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_as_vector3df()

ARSA_API irr::core::vector3df ARSACALLCONV xml_get_att_as_vector3df ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_att_is_exist()

ARSA_API bool ARSACALLCONV xml_get_att_is_exist ( const arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_get_first() [1/2]

◆ xml_get_first() [2/2]

◆ xml_get_name()

ARSA_API const char* ARSACALLCONV xml_get_name ( const arsa_xml_node node)

◆ xml_get_node() [1/2]

ARSA_API arsa_xml_node ARSACALLCONV xml_get_node ( const arsa_xml_node node,
const irr::core::stringc xml_tag_name 
)

◆ xml_get_node() [2/2]

ARSA_API irr::u32 ARSACALLCONV xml_get_node ( const arsa_xml_node node,
const irr::core::stringc xml_tag_name,
ArrayXmlNode out_node_array 
)

◆ xml_get_node_by_type() [1/2]

ARSA_API arsa_xml_node ARSACALLCONV xml_get_node_by_type ( const arsa_xml_node node,
const irr::core::stringc type 
)

◆ xml_get_node_by_type() [2/2]

ARSA_API irr::u32 ARSACALLCONV xml_get_node_by_type ( const arsa_xml_node node,
const irr::core::stringc type,
ArrayXmlNode out_node_array,
bool  ignore_case = false 
)

◆ xml_get_node_by_visible()

ARSA_API irr::u32 ARSACALLCONV xml_get_node_by_visible ( arsa_xml_node node,
bool  visible,
ArrayXmlNode out_node_array 
)

◆ xml_get_parent()

◆ xml_get_value()

◆ xml_is_empty()

ARSA_API bool ARSACALLCONV xml_is_empty ( const arsa_xml_node node)

◆ xml_is_name_equal()

ARSA_API bool ARSACALLCONV xml_is_name_equal ( const arsa_xml_node node,
irr::core::stringc out_name 
)

◆ xml_is_sub_string_equal()

ARSA_API bool ARSACALLCONV xml_is_sub_string_equal ( const irr::core::stringc name,
const irr::core::stringc sub 
)

◆ xml_is_visible()

ARSA_API bool ARSACALLCONV xml_is_visible ( const arsa_xml_node node,
bool &  out_visible 
)

◆ xml_load()

ARSA_API bool ARSACALLCONV xml_load ( arsa_xml_doc doc,
const void dat,
long  len 
)

◆ xml_load_from_file()

ARSA_API bool ARSACALLCONV xml_load_from_file ( arsa_xml_doc doc,
const irr::io::path name 
)

◆ xml_load_json()

ARSA_API bool ARSACALLCONV xml_load_json ( arsa_xml_doc doc,
const void dat,
long  len 
)

◆ xml_move_node_to_start_by_type()

ARSA_API bool ARSACALLCONV xml_move_node_to_start_by_type ( arsa_xml_node node,
const irr::core::stringc type,
bool  start = true 
)

◆ xml_new_att_bool()

ARSA_API void ARSACALLCONV xml_new_att_bool ( arsa_xml_node node,
const irr::core::stringc name,
bool  value 
)

◆ xml_new_att_color()

ARSA_API void ARSACALLCONV xml_new_att_color ( arsa_xml_node node,
const irr::core::stringc name,
const irr::video::SColor color 
)

◆ xml_new_att_float()

ARSA_API void ARSACALLCONV xml_new_att_float ( arsa_xml_node node,
const irr::core::stringc name,
irr::f32  value 
)

◆ xml_new_att_int()

ARSA_API void ARSACALLCONV xml_new_att_int ( arsa_xml_node node,
const irr::core::stringc name,
irr::s32  value 
)

◆ xml_new_att_string()

ARSA_API void ARSACALLCONV xml_new_att_string ( arsa_xml_node node,
const irr::core::stringc name,
const irr::core::stringc value 
)

◆ xml_new_att_u32()

ARSA_API void ARSACALLCONV xml_new_att_u32 ( arsa_xml_node node,
const irr::core::stringc name,
irr::u32  value 
)

◆ xml_new_att_vec()

ARSA_API void ARSACALLCONV xml_new_att_vec ( arsa_xml_node node,
const irr::core::stringc name,
const irr::core::vector3df vec 
)

◆ xml_new_node()

ARSA_API arsa_xml_node ARSACALLCONV xml_new_node ( arsa_xml_node node,
const irr::core::stringc name,
bool  after = true 
)

◆ xml_remove_node()

ARSA_API bool ARSACALLCONV xml_remove_node ( arsa_xml_node node)

◆ xml_remove_node_by_att_name()

ARSA_API void ARSACALLCONV xml_remove_node_by_att_name ( arsa_xml_node node,
const irr::core::stringc prefix 
)

◆ xml_remove_node_by_att_name_value()

ARSA_API void ARSACALLCONV xml_remove_node_by_att_name_value ( arsa_xml_node node,
const irr::core::stringc prefix,
const irr::core::stringc value 
)

◆ xml_remove_node_by_name()

ARSA_API bool ARSACALLCONV xml_remove_node_by_name ( arsa_xml_node node,
const irr::core::stringc name 
)

◆ xml_remove_node_by_type() [1/2]

ARSA_API bool ARSACALLCONV xml_remove_node_by_type ( arsa_xml_node node,
const irr::core::stringc type 
)

◆ xml_remove_node_by_type() [2/2]

ARSA_API bool ARSACALLCONV xml_remove_node_by_type ( arsa_xml_node node,
const irr::core::array< irr::core::stringc > &  type_list 
)

◆ xml_remove_node_by_visible()

ARSA_API bool ARSACALLCONV xml_remove_node_by_visible ( arsa_xml_node node,
bool  visible = true 
)

◆ xml_save() [1/2]

ARSA_API bool ARSACALLCONV xml_save ( const arsa_xml_doc doc,
irr::core::stringc out_stream,
int  encoding = XML_ENCODING_AUTO 
)

◆ xml_save() [2/2]

ARSA_API bool ARSACALLCONV xml_save ( const arsa_xml_node node,
irr::core::stringc out_stream,
int  encoding = XML_ENCODING_AUTO 
)

◆ xml_save_json() [1/2]

ARSA_API bool ARSACALLCONV xml_save_json ( const arsa_xml_doc doc,
irr::core::stringc out_stream 
)

◆ xml_save_json() [2/2]

ARSA_API bool ARSACALLCONV xml_save_json ( const arsa_xml_node node,
irr::core::stringc out_stream 
)

◆ xml_save_to_file()

ARSA_API bool ARSACALLCONV xml_save_to_file ( const arsa_xml_doc doc,
const irr::io::path name,
int  encoding = XML_ENCODING_AUTO 
)

◆ xml_set_att_as_string()

ARSA_API bool ARSACALLCONV xml_set_att_as_string ( arsa_xml_node node,
const irr::core::stringc name,
const irr::core::stringc value 
)

◆ xml_set_value()

ARSA_API bool ARSACALLCONV xml_set_value ( arsa_xml_node node,
const irr::core::stringc value 
)

Variable Documentation

◆ XML_ENCODING_AUTO

ARSA_API int XML_ENCODING_AUTO

◆ XML_ENCODING_UTF16

ARSA_API int XML_ENCODING_UTF16

◆ XML_ENCODING_UTF32

ARSA_API int XML_ENCODING_UTF32

◆ XML_ENCODING_UTF8

ARSA_API int XML_ENCODING_UTF8