37 lines
No EOL
625 B
C
37 lines
No EOL
625 B
C
#ifndef _XML_MANAGER_H_
|
|
#define _XML_MANAGER_H_
|
|
|
|
|
|
#include "Scene.h"
|
|
#include "TXT_Manager.h"
|
|
|
|
|
|
|
|
typedef char* XML_Text;
|
|
typedef unsigned long XML_Number;
|
|
|
|
struct XML_Attribute
|
|
{
|
|
char* name;
|
|
char* value;
|
|
};
|
|
|
|
|
|
struct XML_Tag
|
|
{
|
|
XML_Tag* parentNode;
|
|
|
|
XML_Number nbOfChildren;
|
|
XML_Tag** allChildren;
|
|
|
|
XML_Number nbOfAttributes;
|
|
XML_Attribute** allAttributes;
|
|
|
|
XML_Text text;
|
|
};
|
|
|
|
bool loadXML(char* xmlFilename);
|
|
XML_Number getTags(XML_Tag* startTag, char* nameToFind, XML_Tag** foundTags);
|
|
XML_Number getAttributes(XML_Tag* startTag, char* nameToFind, XML_Attribute** foundAttributes);
|
|
|
|
#endif |