UniSet  2.6.0
Открытые типы | Открытые члены | Открытые статические члены | Защищенные данные
Класс uniset::UniXML
Граф связей класса uniset::UniXML:
Collaboration graph
[см. легенду]

Полный список членов класса

Открытые типы

typedef UniXML_iterator iterator

Открытые члены

 UniXML (const std::string &filename)
xmlNode * getFirstNode () noexcept
xmlNode * getFirstNode () const noexcept
iterator begin () noexcept
iterator end () noexcept
void open (const std::string &filename)
bool isOpen () const noexcept
void close ()
std::string getFileName () const noexcept
void newDoc (const std::string &root_node, const std::string &xml_ver="1.0")
bool save (const std::string &filename="", int level=2)
xmlNode * findNode (xmlNode *node, const std::string &searchnode, const std::string &name="") const
xmlNode * extFindNode (xmlNode *node, int depth, int width, const std::string &searchnode, const std::string &name="", bool top=true) const

Открытые статические члены

static std::string getProp (const xmlNode *node, const std::string &name) noexcept
static std::string getProp2 (const xmlNode *node, const std::string &name, const std::string &defval="") noexcept
static int getIntProp (const xmlNode *node, const std::string &name) noexcept
static int getPIntProp (const xmlNode *node, const std::string &name, int def) noexcept
 if value if not positive ( <= 0 ), returns def
static void setProp (xmlNode *node, const std::string &name, const std::string &text)
static xmlNode * createChild (xmlNode *node, const std::string &title, const std::string &text)
static xmlNode * createNext (xmlNode *node, const std::string &title, const std::string &text)
static void removeNode (xmlNode *node)
 Удаление указанного узла со всеми вложенными
static xmlNode * copyNode (xmlNode *node, int recursive=1)
static xmlNode * nextNode (xmlNode *node)

Защищенные данные

std::string filename
std::shared_ptr< xmlDoc > doc = { nullptr }

Методы

возвращает итератор на самый первый узел документа

xmlNode * UniXML::copyNode ( xmlNode *  node,
int  recursive = 1 
) [static]
int UniXML::getPIntProp ( const xmlNode *  node,
const std::string &  name,
int  def 
) [static]

if value if not positive ( <= 0 ), returns def

void UniXML::removeNode ( xmlNode *  node) [static]

Удаление указанного узла со всеми вложенными