This documentation is automatically generated from the openFrameworks source code using doxygen and refers to the most recent release, version 0.12.0.
ofXml Class Reference
#include <ofXml.h>
Classes | |
class | Attribute |
class | Range |
class | Search |
Public Member Functions | |
ofXml () | |
bool | load (const of::filesystem::path &file) |
bool | load (const ofBuffer &buffer) |
bool | parse (const std::string &xmlStr) |
bool | save (const of::filesystem::path &file) const |
void | clear () |
std::string | toString (const std::string &indent="\t") const |
ofXml | getChild (const std::string &name) const |
Range< ofXmlIterator< pugi::xml_node_iterator > > | getChildren () const |
Range< ofXmlIterator< pugi::xml_named_node_iterator > > | getChildren (const std::string &name) const |
ofXml | appendChild (const ofXml &xml) |
ofXml | prependChild (const ofXml &xml) |
bool | removeChild (const ofXml &node) |
ofXml | appendChild (const std::string &name) |
ofXml | prependChild (const std::string &name) |
bool | removeChild (const std::string &name) |
ofXml | insertChildAfter (const std::string &name, const ofXml &after) |
ofXml | insertChildBefore (const std::string &name, const ofXml &after) |
ofXml | getNextSibling () const |
ofXml | getPreviousSibling () const |
ofXml | getNextSibling (const std::string &name) const |
ofXml | getPreviousSibling (const std::string &name) const |
ofXml | getFirstChild () const |
ofXml | getLastChild () const |
ofXml | getParent () const |
Attribute | getAttribute (const std::string &name) const |
Range< ofXmlAttributeIterator > | getAttributes () const |
Attribute | getFirstAttribute () const |
Attribute | getLastAttribute () const |
Attribute | appendAttribute (const std::string &name) |
Attribute | prependAttribute (const std::string &name) |
bool | removeAttribute (const std::string &name) |
bool | removeAttribute (const Attribute &attr) |
bool | removeAttribute (Attribute &&attr) |
template<typename T > | |
Attribute | setAttribute (const std::string &name, const T &value) |
ofXml | findFirst (const std::string &path) const |
Search | find (const std::string &path) const |
template<typename T > | |
T | getValue () const |
std::string | getValue () const |
std::string | getName () const |
template<typename T > | |
void | set (const T &value) |
void | set (const unsigned char &value) |
void | setName (const std::string &name) |
int | getIntValue () const |
unsigned int | getUintValue () const |
float | getFloatValue () const |
double | getDoubleValue () const |
bool | getBoolValue () const |
operator bool () const | |
Friends | |
template<typename It > | |
class | ofXmlIterator |
class | ofXmlAttributeIterator |
class | ofXmlSearchIterator |
Constructor & Destructor Documentation
◆ ofXml()
ofXml::ofXml | ( | ) |
Member Function Documentation
◆ appendAttribute()
ofXml::Attribute ofXml::appendAttribute | ( | const std::string & | name | ) |
◆ appendChild() [1/2]
◆ appendChild() [2/2]
ofXml ofXml::appendChild | ( | const std::string & | name | ) |
◆ clear()
void ofXml::clear | ( | ) |
◆ find()
ofXml::Search ofXml::find | ( | const std::string & | path | ) | const |
◆ findFirst()
ofXml ofXml::findFirst | ( | const std::string & | path | ) | const |
◆ getAttribute()
ofXml::Attribute ofXml::getAttribute | ( | const std::string & | name | ) | const |
◆ getAttributes()
ofXml::Range< ofXmlAttributeIterator > ofXml::getAttributes | ( | ) | const |
◆ getBoolValue()
bool ofXml::getBoolValue | ( | ) | const |
◆ getChild()
ofXml ofXml::getChild | ( | const std::string & | name | ) | const |
◆ getChildren() [1/2]
ofXml::Range< ofXmlIterator< pugi::xml_node_iterator > > ofXml::getChildren | ( | ) | const |
◆ getChildren() [2/2]
ofXml::Range< ofXmlIterator< pugi::xml_named_node_iterator > > ofXml::getChildren | ( | const std::string & | name | ) | const |
◆ getDoubleValue()
double ofXml::getDoubleValue | ( | ) | const |
◆ getFirstAttribute()
ofXml::Attribute ofXml::getFirstAttribute | ( | ) | const |
◆ getFirstChild()
ofXml ofXml::getFirstChild | ( | ) | const |
◆ getFloatValue()
float ofXml::getFloatValue | ( | ) | const |
◆ getIntValue()
int ofXml::getIntValue | ( | ) | const |
◆ getLastAttribute()
ofXml::Attribute ofXml::getLastAttribute | ( | ) | const |
◆ getLastChild()
ofXml ofXml::getLastChild | ( | ) | const |
◆ getName()
std::string ofXml::getName | ( | ) | const |
◆ getNextSibling() [1/2]
ofXml ofXml::getNextSibling | ( | ) | const |
◆ getNextSibling() [2/2]
ofXml ofXml::getNextSibling | ( | const std::string & | name | ) | const |
◆ getParent()
ofXml ofXml::getParent | ( | ) | const |
◆ getPreviousSibling() [1/2]
ofXml ofXml::getPreviousSibling | ( | ) | const |
◆ getPreviousSibling() [2/2]
ofXml ofXml::getPreviousSibling | ( | const std::string & | name | ) | const |
◆ getUintValue()
unsigned int ofXml::getUintValue | ( | ) | const |
◆ getValue() [1/2]
template<typename T >
|
inline |
◆ getValue() [2/2]
std::string ofXml::getValue | ( | ) | const |
◆ insertChildAfter()
◆ insertChildBefore()
◆ load() [1/2]
bool ofXml::load | ( | const of::filesystem::path & | file | ) |
◆ load() [2/2]
bool ofXml::load | ( | const ofBuffer & | buffer | ) |
◆ operator bool()
ofXml::operator bool | ( | ) | const |
◆ parse()
bool ofXml::parse | ( | const std::string & | xmlStr | ) |
◆ prependAttribute()
ofXml::Attribute ofXml::prependAttribute | ( | const std::string & | name | ) |
◆ prependChild() [1/2]
◆ prependChild() [2/2]
ofXml ofXml::prependChild | ( | const std::string & | name | ) |
◆ removeAttribute() [1/3]
bool ofXml::removeAttribute | ( | ofXml::Attribute && | attr | ) |
◆ removeAttribute() [2/3]
bool ofXml::removeAttribute | ( | const Attribute & | attr | ) |
◆ removeAttribute() [3/3]
bool ofXml::removeAttribute | ( | const std::string & | name | ) |
◆ removeChild() [1/2]
bool ofXml::removeChild | ( | const ofXml & | node | ) |
◆ removeChild() [2/2]
bool ofXml::removeChild | ( | const std::string & | name | ) |
◆ save()
bool ofXml::save | ( | const of::filesystem::path & | file | ) | const |
◆ set() [1/2]
template<typename T >
|
inline |
◆ set() [2/2]
|
inline |
◆ setAttribute()
template<typename T >
|
inline |
◆ setName()
void ofXml::setName | ( | const std::string & | name | ) |
◆ toString()
std::string ofXml::toString | ( | const std::string & | indent = "\t" | ) | const |
Friends And Related Symbol Documentation
◆ ofXmlAttributeIterator
|
friend |
◆ ofXmlIterator
template<typename It >
|
friend |
◆ ofXmlSearchIterator
|
friend |
The documentation for this class was generated from the following files: