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

#include <xml.h>

Inheritance diagram for BasicXml:
Collaboration diagram for BasicXml:

Public Member Functions

 BasicXml (std::string p_xmlContent)
 
 BasicXml ()
 
virtual ~BasicXml ()
 
void setContent (std::string p_xmlContent)
 
std::string getContent ()
 
bool parse (std::string p_content)
 
bool parse ()
 
void setProperties (std::vector< XmlTagProperty > p_xmlTagProperties)
 
std::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 ()
 
std::string getXML ()
 
bool setXML (std::string p_xmldata)
 

Static Public Member Functions

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

Data Fields

std::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, std::string p_token)
 
unsigned int lookFor (unsigned int p_index, std::string p_token)
 
unsigned int getPreviousIndex (unsigned int p_index)
 
void listChildren (std::vector< XmlTag > p_tags, std::string p_tab)
 
std::string getXMLChildren (std::vector< XmlTag > p_children, std::string p_tab)
 

Protected Attributes

std::string _xmlContent
 
std::vector< XmlTagProperty_xmlTagProperties
 
XmlTag _root
 

Constructor & Destructor Documentation

◆ BasicXml() [1/2]

BasicXml::BasicXml ( std::string p_xmlContent)
Here is the call graph for this function:
Here is the caller 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 ( )
Here is the call graph for this function:

◆ copy()

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

◆ 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)
Here is the call graph for this function:

◆ expectFor()

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

◆ getContent()

std::string BasicXml::getContent ( )

◆ getPreviousIndex()

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

◆ getProperties()

std::string BasicXml::getProperties ( )

◆ getRoot()

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

◆ getXML()

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

◆ getXMLChildren()

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

◆ isNumeric()

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

◆ listChildren()

void BasicXml::listChildren ( std::vector< XmlTag > p_tags,
std::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,
std::string p_token )
protected
Here is the call graph for this function:
Here is the caller graph for this function:

◆ openXMLFile()

std::string BasicXml::openXMLFile ( std::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 ( std::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 ( std::string p_xmlContent)
Here is the caller graph for this function:

◆ setProperties()

void BasicXml::setProperties ( std::vector< XmlTagProperty > p_xmlTagProperties)

◆ setXML()

bool BasicXml::setXML ( std::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()

std::string BasicXml::toString ( )

Field Documentation

◆ _root

XmlTag BasicXml::_root
protected

◆ _tokens

std::vector<XmlToken> BasicXml::_tokens

◆ _xmlContent

std::string BasicXml::_xmlContent
protected

◆ _xmlTagProperties

std::vector<XmlTagProperty> BasicXml::_xmlTagProperties
protected

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