mirror of https://github.com/AxioDL/tinyxml2.git
commit
ab42b16bac
15
tinyxml2.cpp
15
tinyxml2.cpp
|
@ -595,6 +595,10 @@ XMLNode::~XMLNode()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const char* XMLNode::Value() const
|
||||||
|
{
|
||||||
|
return _value.GetStr();
|
||||||
|
}
|
||||||
|
|
||||||
void XMLNode::SetValue( const char* str, bool staticMem )
|
void XMLNode::SetValue( const char* str, bool staticMem )
|
||||||
{
|
{
|
||||||
|
@ -1040,6 +1044,17 @@ bool XMLUnknown::Accept( XMLVisitor* visitor ) const
|
||||||
}
|
}
|
||||||
|
|
||||||
// --------- XMLAttribute ---------- //
|
// --------- XMLAttribute ---------- //
|
||||||
|
|
||||||
|
const char* XMLAttribute::Name() const
|
||||||
|
{
|
||||||
|
return _name.GetStr();
|
||||||
|
}
|
||||||
|
|
||||||
|
const char* XMLAttribute::Value() const
|
||||||
|
{
|
||||||
|
return _value.GetStr();
|
||||||
|
}
|
||||||
|
|
||||||
char* XMLAttribute::ParseDeep( char* p, bool processEntities )
|
char* XMLAttribute::ParseDeep( char* p, bool processEntities )
|
||||||
{
|
{
|
||||||
// Parse using the name rules: bug fix, was using ParseText before
|
// Parse using the name rules: bug fix, was using ParseText before
|
||||||
|
|
14
tinyxml2.h
14
tinyxml2.h
|
@ -643,9 +643,7 @@ public:
|
||||||
Text: the text string
|
Text: the text string
|
||||||
@endverbatim
|
@endverbatim
|
||||||
*/
|
*/
|
||||||
const char* Value() const {
|
const char* Value() const;
|
||||||
return _value.GetStr();
|
|
||||||
}
|
|
||||||
|
|
||||||
/** Set the Value of an XML node.
|
/** Set the Value of an XML node.
|
||||||
@sa Value()
|
@sa Value()
|
||||||
|
@ -1014,13 +1012,11 @@ class TINYXML2_LIB XMLAttribute
|
||||||
friend class XMLElement;
|
friend class XMLElement;
|
||||||
public:
|
public:
|
||||||
/// The name of the attribute.
|
/// The name of the attribute.
|
||||||
const char* Name() const {
|
const char* Name() const;
|
||||||
return _name.GetStr();
|
|
||||||
}
|
|
||||||
/// The value of the attribute.
|
/// The value of the attribute.
|
||||||
const char* Value() const {
|
const char* Value() const;
|
||||||
return _value.GetStr();
|
|
||||||
}
|
|
||||||
/// The next attribute in the list.
|
/// The next attribute in the list.
|
||||||
const XMLAttribute* Next() const {
|
const XMLAttribute* Next() const {
|
||||||
return _next;
|
return _next;
|
||||||
|
|
Loading…
Reference in New Issue