UniSet  1.4.0
Открытые типы | Открытые члены | Открытые статические члены | Открытые атрибуты | Защищенные статические члены | Статические защищенные данные
Класс UniXML

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

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

typedef UniXML_iterator iterator

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

xmlNode * getFirstNode ()
iterator begin ()
iterator end ()
void open (const std::string filename)
void close ()
bool isOpen ()
 UniXML (const std::string filename)
void newDoc (const std::string &root_node, 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 * findNodeUtf8 (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)
xmlNode * extFindNodeUtf8 (xmlNode *node, int depth, int width, const std::string searchnode, const std::string name="", bool top=true)

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

static std::string getProp (const xmlNode *node, const std::string name)
static std::string getPropUtf8 (const xmlNode *node, const std::string name)
static int getIntProp (const xmlNode *node, const std::string name)
static int getPIntProp (const xmlNode *node, const std::string name, int def)
 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)

Открытые атрибуты

xmlNode * cur
xmlDoc * doc
std::string filename

Защищенные статические члены

static std::string xml2local (const std::string text)
static const xmlChar * local2xml (std::string text)
static std::string local2utf8 (const std::string text)

Статические защищенные данные

static int recur = 0

Методы

iterator UniXML::begin ( ) [inline]

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

xmlNode * UniXML::copyNode ( xmlNode *  node,
int  recursive = 1 
) [static]
Ошибка:
Почему-то портятся русские имена (точнее становятся UTF8) независимо от текущей локали файла спасает только такое вот дополнительное копирование списка свойств
Ошибка:
Непонятный параметр 'target'
  • при указании NULL нормально работает
  • при указании copynode - проблеммы с русским при сохранении
  • при указании node - SEGFAULT при попытке удалить исходный(node) узел
Необходимо сделать:
"Нужно тест написать на copyNode"
int UniXML::getPIntProp ( const xmlNode *  node,
const std::string  name,
int  def 
) [static]

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

Перекрестные ссылки UniSetTypes::uni_atoi().

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

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


Объявления и описания членов классов находятся в файлах: