Scopira 20080306

scopira::tool::xml_attrib Class Reference

#include <xml.h>

List of all members.

Public Member Functions

 xml_attrib (void)
 xml_attrib (xmlAttrPtr ptr)
xmlAttrPtr get_ptr (void) const
 returns the internal pointer -- use with care
const char * get_c_name (void) const
std::string get_name (void) const
bool is_null (void) const
bool is_valid (void) const
void next (void)
const char * get_text_c_content (void) const

Detailed Description

An XML node attribute pointer/link.

Author:
Aleksander Demko

Constructor & Destructor Documentation

scopira::tool::xml_attrib::xml_attrib ( void  ) [inline]

Null constructor

Author:
Aleksander Demko
scopira::tool::xml_attrib::xml_attrib ( xmlAttrPtr  ptr) [inline]

Initializaing construtor.

Author:
Aleksander Demko

Member Function Documentation

const char* scopira::tool::xml_attrib::get_c_name ( void  ) const [inline]

Gets the name of this attribute, as a C string

Author:
Aleksander Demko
std::string scopira::tool::xml_attrib::get_name ( void  ) const [inline]

Gets the name of this attribute

Author:
Aleksander Demko
const char* scopira::tool::xml_attrib::get_text_c_content ( void  ) const

Gets the value/text/content of this attribute. Return null on failure.

Author:
Aleksander Demko
bool scopira::tool::xml_attrib::is_null ( void  ) const [inline]

Is this attribute null/empty?

Author:
Aleksander Demko
bool scopira::tool::xml_attrib::is_valid ( void  ) const [inline]

Is this attribute not null/empty?

Author:
Aleksander Demko
void scopira::tool::xml_attrib::next ( void  ) [inline]

Gets the next attribute in the set

Author:
Aleksander Demko

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