ticpp::Base Class Reference

Wrapper around TiXmlBase. More...

#include <ticpp.h>

Inheritance diagram for ticpp::Base:

ticpp::Attribute ticpp::Node ticpp::NodeImp< T > ticpp::NodeImp< TiXmlComment > ticpp::NodeImp< TiXmlDeclaration > ticpp::NodeImp< TiXmlDocument > ticpp::NodeImp< TiXmlElement > ticpp::NodeImp< TiXmlText > ticpp::Comment ticpp::Declaration ticpp::Document ticpp::Element ticpp::Text List of all members.

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.

Detailed Description

Wrapper around TiXmlBase.


Member Function Documentation

int ticpp::Base::Column (  )  [inline]

Return the position, in the original source file, of this node or attribute.

Wrapper around TiXmlBase::Row()

template<class T>
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.

Parameters:
temp The string to be converted
out [OUT] The container for the returned value
Exceptions:
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()

template<class T>
std::string ticpp::Base::ToString ( const T &  value  )  [inline]

Converts any class with a proper overload of the << opertor to a std::string.

Parameters:
value The value to be converted
Exceptions:
Exception When value cannot be converted to a std::string


Member Data Documentation

std::vector< Base* > ticpp::Base::m_spawnedWrappers [protected]

Remember all wrappers that we've created with 'new' - ( e.g.

NodeFactory, FirstChildElement, etc. )


The documentation for this class was generated from the following file:
Generated on Thu Sep 7 14:23:33 2006 for TinyXml by  doxygen 1.4.7