|
Robotics Library
0.6.2
|
Go to the documentation of this file.
27 #ifndef _RL_XML_ATTRIBUTE_H_
28 #define _RL_XML_ATTRIBUTE_H_
31 #include <boost/shared_array.hpp>
32 #include <libxml/parser.h>
46 Attribute(xmlNodePtr node, const ::std::string& name, const ::std::string& value) :
50 reinterpret_cast< const xmlChar* >(name.c_str()),
51 reinterpret_cast< const xmlChar* >(value.c_str())
59 if (NULL == this->
attr->doc)
61 xmlFreeProp(this->
attr);
67 ::boost::shared_array< xmlChar > value(
75 return reinterpret_cast< char*
>(value.get());
85 xmlRemoveProp(this->
attr);
93 reinterpret_cast< const xmlChar*
>(value.c_str())
105 #endif // _RL_XML_ATTRIBUTE_H_
::std::string getValue() const
Definition: Attribute.h:65
Attribute(xmlNodePtr node, const ::std::string &name, const ::std::string &value)
Definition: Attribute.h:46
Definition: Attribute.h:39
void setValue(const ::std::string &value)
Definition: Attribute.h:88
void remove()
Definition: Attribute.h:83
Attribute(xmlAttrPtr attr)
Definition: Attribute.h:41
xmlAttrPtr operator()() const
Definition: Attribute.h:78
virtual ~Attribute()
Definition: Attribute.h:57
xmlAttrPtr attr
Definition: Attribute.h:100