| Top |
| LeecsWorld * | leecs_read_xml_node () |
| LeecsWorld * | leecs_read_xml_string () |
| LeecsWorld * | leecs_read_xml_file () |
| void | leecs_write_xml_writer () |
| char * | leecs_write_xml_string () |
LeecsWorld * leecs_read_xml_node (LeecsRegistry *registry,xmlNode *node);
Traverses an XML document from node
and creates a new LeecsWorld with the
entities specified in the document. registry
is used as the registry for
the new LeecsWorld, and its reference counter is incremented.
The components and serializable members which appear in the XML document
must be registered to registry
beforehand.
registry |
LeecsRegistry with serialization information
about |
[transfer none] |
node |
XML document node. |
LeecsWorld * leecs_read_xml_string (LeecsRegistry *registry,const char *string);
Reads an XML document stored as a string and creates a new LeecsWorld with
the entities specified in the document. registry
is used as the registry
for the new LeecsWorld, and its reference counter is incremented.
The components and serializable members which appear in the XML document
must be registered to registry
beforehand.
registry |
LeecsRegistry with serialization information
about |
[transfer none] |
string |
XML document as a string. |
LeecsWorld * leecs_read_xml_file (LeecsRegistry *registry,const char *filename);
Reads an XML document stored as a file and creates a new LeecsWorld with
the entities specified in the document. registry
is used as the registry
for the new LeecsWorld, and its reference counter is incremented.
The components and serializable members which appear in the XML document
must be registered to registry
beforehand.
registry |
LeecsRegistry with serialization information
about |
[transfer none] |
filename |
Filename of an XML document. |
void leecs_write_xml_writer (const LeecsWorld *world,xmlTextWriter *writer);
Writes an XML document representation of world
to the location specified by
writer
.
The components and serializable members which appear in the XML document
must be registered to the LeecsRegistry associated with world
beforehand.
char *
leecs_write_xml_string (const LeecsWorld *world);
Writes an XML document representation of world
and returns it as a string.
The components and serializable members which appear in the XML document
must be registered to the LeecsRegistry associated with world
beforehand.