Scopira  20080306
scopira::tool::xml_attrib Class Reference

#include <xml.h>

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

◆ xml_attrib() [1/2]

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

Null constructor

Author
Aleksander Demko

◆ xml_attrib() [2/2]

scopira::tool::xml_attrib::xml_attrib ( xmlAttrPtr  ptr)
inline

Initializaing construtor.

Author
Aleksander Demko

Member Function Documentation

◆ get_c_name()

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

◆ get_name()

std::string scopira::tool::xml_attrib::get_name ( void  ) const
inline

Gets the name of this attribute

Author
Aleksander Demko

◆ get_text_c_content()

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

◆ is_null()

bool scopira::tool::xml_attrib::is_null ( void  ) const
inline

Is this attribute null/empty?

Author
Aleksander Demko

◆ is_valid()

bool scopira::tool::xml_attrib::is_valid ( void  ) const
inline

Is this attribute not null/empty?

Author
Aleksander Demko

◆ next()

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: