![]() |
aGrUM
0.16.0
|
Wrapper around TiXmlBase. More...
#include <ticpp.h>
Public Member Functions | |
template<class T > | |
std::string | ToString (const T &value) const |
Converts any class with a proper overload of the << opertor to a std::string. More... | |
std::string | ToString (const std::string &value) const |
template<class T > | |
void | FromString (const std::string &temp, T *out) const |
Converts a std::string to any class with a proper overload of the >> opertor. More... | |
void | FromString (const std::string &temp, std::string *out) const |
Specialization for std::string. More... | |
int | Row () const |
Return the position, in the original source file, of this node or attribute. More... | |
int | Column () const |
Return the position, in the original source file, of this node or attribute. More... | |
bool | operator== (const Base &rhs) const |
Compare internal TiXml pointers to determine is both are wrappers around the same node. More... | |
bool | operator!= (const Base &rhs) const |
Compare internal TiXml pointers to determine is both are wrappers around the same node. More... | |
std::string | BuildDetailedErrorString () const |
Builds detailed error string using TiXmlDocument::Error() and others. More... | |
virtual | ~Base () |
Destructor. More... | |
Protected Attributes | |
TiCppRCImp * | m_impRC |
Holds status of internal TiXmlPointer - use this to determine if object has been deleted already. More... | |
Protected Member Functions | |
void | SetImpRC (TiXmlBase *nodeBase) |
void | ValidatePointer () const |
virtual TiXmlBase * | GetBasePointer () const =0 |
|
inlinevirtual |
|
inline |
Builds detailed error string using TiXmlDocument::Error() and others.
Definition at line 238 of file ticpp.h.
References TiXmlDocument::Error(), TiXmlDocument::ErrorCol(), TiXmlDocument::ErrorDesc(), TiXmlDocument::ErrorRow(), TiXmlNode::GetDocument(), and TiXmlNode::Value().
|
inline |
Return the position, in the original source file, of this node or attribute.
Wrapper around TiXmlBase::Row()
Definition at line 215 of file ticpp.h.
|
inline |
Converts a std::string to any class with a proper overload of the >> opertor.
temp | The string to be converted |
out | [OUT] The container for the returned value |
Exception | When temp cannot be converted to the target type |
Definition at line 189 of file ticpp.h.
References TICPPTHROW.
|
inline |
|
protectedpure virtual |
Implemented in ticpp::Node, and ticpp::Attribute.
Referenced by operator!=(), and operator==().
Compare internal TiXml pointers to determine is both are wrappers around the same node.
Definition at line 231 of file ticpp.h.
References GetBasePointer().
Compare internal TiXml pointers to determine is both are wrappers around the same node.
Definition at line 222 of file ticpp.h.
References GetBasePointer().
|
inline |
Return the position, in the original source file, of this node or attribute.
Wrapper around TiXmlBase::Row()
Definition at line 209 of file ticpp.h.
|
inlineprotected |
Definition at line 279 of file ticpp.h.
Referenced by ticpp::Attribute::SetTiXmlPointer().
|
inline |
Converts any class with a proper overload of the << opertor to a std::string.
value | The value to be converted |
Exception | When value cannot be converted to a std::string |
Definition at line 169 of file ticpp.h.
References TICPPTHROW.
|
inline |
|
inlineprotected |
Definition at line 281 of file ticpp.h.
References TiCppRCImp::IsNull(), and TICPPTHROW.
Referenced by ticpp::Element::FirstAttribute(), ticpp::Element::GetAttributeImp(), ticpp::Element::GetTextImp(), ticpp::Element::HasAttribute(), ticpp::Element::LastAttribute(), ticpp::Attribute::Name(), ticpp::Attribute::Next(), ticpp::Attribute::Previous(), ticpp::Attribute::Print(), ticpp::Element::RemoveAttribute(), and ticpp::Attribute::Value().
|
mutableprotected |
Holds status of internal TiXmlPointer - use this to determine if object has been deleted already.
Definition at line 267 of file ticpp.h.
Referenced by ticpp::Attribute::Attribute(), ticpp::Node::Clone(), ticpp::Comment::Comment(), ticpp::Declaration::Declaration(), ticpp::Document::Document(), ticpp::Element::Element(), ticpp::Node::InsertAfterChild(), ticpp::Node::InsertBeforeChild(), ticpp::Node::LinkEndChild(), ticpp::Node::ReplaceChild(), ticpp::StylesheetReference::StylesheetReference(), ticpp::Text::Text(), and ticpp::Attribute::~Attribute().