Kage Studio 0.7.230612
A Simple Free and Open Source 2D Animation Software
Loading...
Searching...
No Matches
BasicXml Class Reference

#include <xml.h>

Collaboration diagram for BasicXml:

Public Member Functions

 BasicXml (string p_xmlContent)
 
 BasicXml ()
 
virtual ~BasicXml ()
 
void setContent (string p_xmlContent)
 
string getContent ()
 
bool parse (string p_content)
 
bool parse ()
 
void setProperties (vector< XmlTagProperty > p_xmlTagProperties)
 
string getProperties ()
 
BasicXml clone ()
 
std::string toString ()
 
void copy (BasicXml p_xmlTag)
 
bool equalTo (BasicXml p_xmlTag)
 
bool tokenize ()
 
XmlTag getRoot ()
 
void debugToken (unsigned int p_index)
 
void printXML ()
 
string getXML ()
 
bool setXML (string p_xmldata)
 

Static Public Member Functions

static string openXMLFile (string p_path)
 
static bool isNumeric (string p_value)
 

Data Fields

vector< XmlToken_tokens
 

Protected Member Functions

unsigned int createTag (unsigned int p_index, XmlTag &p_xmlTagParent)
 
unsigned int skipWhitespace (unsigned int p_index)
 
unsigned int expectFor (unsigned int p_index, string p_token)
 
unsigned int lookFor (unsigned int p_index, string p_token)
 
unsigned int getPreviousIndex (unsigned int p_index)
 
void listChildren (vector< XmlTag > p_tags, string p_tab)
 
string getXMLChildren (vector< XmlTag > p_children, string p_tab)
 

Protected Attributes

string _xmlContent
 
vector< XmlTagProperty_xmlTagProperties
 
XmlTag _root
 

Constructor & Destructor Documentation

◆ BasicXml() [1/2]

BasicXml::BasicXml ( string  p_xmlContent)
Here is the call graph for this function:

◆ BasicXml() [2/2]

BasicXml::BasicXml ( )
Here is the call graph for this function:

◆ ~BasicXml()

BasicXml::~BasicXml ( )
virtual

Member Function Documentation

◆ clone()

BasicXml BasicXml::clone ( )

◆ copy()

void BasicXml::copy ( BasicXml  p_xmlTag)

◆ createTag()

unsigned int BasicXml::createTag ( unsigned int  p_index,
XmlTag p_xmlTagParent 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ debugToken()

void BasicXml::debugToken ( unsigned int  p_index)
Here is the caller graph for this function:

◆ equalTo()

bool BasicXml::equalTo ( BasicXml  p_xmlTag)

◆ expectFor()

unsigned int BasicXml::expectFor ( unsigned int  p_index,
string  p_token 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getContent()

string BasicXml::getContent ( )

◆ getPreviousIndex()

unsigned int BasicXml::getPreviousIndex ( unsigned int  p_index)
protected
Here is the caller graph for this function:

◆ getProperties()

string BasicXml::getProperties ( )

◆ getRoot()

XmlTag BasicXml::getRoot ( )
Here is the caller graph for this function:

◆ getXML()

string BasicXml::getXML ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ getXMLChildren()

string BasicXml::getXMLChildren ( vector< XmlTag p_children,
string  p_tab 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ isNumeric()

bool BasicXml::isNumeric ( string  p_value)
static
Here is the caller graph for this function:

◆ listChildren()

void BasicXml::listChildren ( vector< XmlTag p_tags,
string  p_tab 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lookFor()

unsigned int BasicXml::lookFor ( unsigned int  p_index,
string  p_token 
)
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openXMLFile()

string BasicXml::openXMLFile ( string  p_path)
static
Here is the caller graph for this function:

◆ parse() [1/2]

bool BasicXml::parse ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse() [2/2]

bool BasicXml::parse ( string  p_content)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ printXML()

void BasicXml::printXML ( )
Here is the call graph for this function:

◆ setContent()

void BasicXml::setContent ( string  p_xmlContent)
Here is the caller graph for this function:

◆ setProperties()

void BasicXml::setProperties ( vector< XmlTagProperty p_xmlTagProperties)

◆ setXML()

bool BasicXml::setXML ( string  p_xmldata)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ skipWhitespace()

unsigned int BasicXml::skipWhitespace ( unsigned int  p_index)
protected
Here is the caller graph for this function:

◆ tokenize()

bool BasicXml::tokenize ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ toString()

string BasicXml::toString ( )
Here is the call graph for this function:

Field Documentation

◆ _root

XmlTag BasicXml::_root
protected

◆ _tokens

vector<XmlToken> BasicXml::_tokens

◆ _xmlContent

string BasicXml::_xmlContent
protected

◆ _xmlTagProperties

vector<XmlTagProperty> BasicXml::_xmlTagProperties
protected

The documentation for this class was generated from the following files: