#include <ticpp.h>
Inheritance diagram for ticpp::Base:
Public Member Functions | |
template<class T> | |
std::string | ToString (const T &value) |
Converts any class with a proper overload of the << opertor to a std::string. | |
template<class T> | |
void | FromString (const std::string &temp, T *out) |
Converts a std::string to any class with a proper overload of the >> opertor. | |
void | FromString (const std::string &temp, std::string *out) |
Specialization for std::string. | |
int | Row () |
Return the position, in the original source file, of this node or attribute. | |
int | Column () |
Return the position, in the original source file, of this node or attribute. | |
virtual | ~Base () |
Destructor. | |
Protected Attributes | |
TiCppRCImp * | m_impRC |
Holds status of internal TiXmlPointer - use this to determine if object has been deleted already. | |
std::vector< Base * > | m_spawnedWrappers |
Remember all wrappers that we've created with 'new' - ( e.g. |
int ticpp::Base::Column | ( | ) | [inline] |
Return the position, in the original source file, of this node or attribute.
Wrapper around TiXmlBase::Row()
void ticpp::Base::FromString | ( | const std::string & | temp, | |
T * | out | |||
) | [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 |
int ticpp::Base::Row | ( | ) | [inline] |
Return the position, in the original source file, of this node or attribute.
Wrapper around TiXmlBase::Row()
std::string ticpp::Base::ToString | ( | const T & | value | ) | [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 |
std::vector< Base* > ticpp::Base::m_spawnedWrappers [protected] |
Remember all wrappers that we've created with 'new' - ( e.g.
NodeFactory, FirstChildElement, etc. )