eXperiment robotics framework

tpn Namespace Reference


Classes

class  Binding
class  MemberBinding
class  TinyXmlBinding

Enumerations

enum  MemberType { Attribute, Element }

Functions

template<typename T>
void noop_ptr (T *)
template<typename T>
std::vector< boost::shared_ptr
< Binding< T > > > 
operator, (boost::shared_ptr< Binding< T > > lhs, boost::shared_ptr< Binding< T > > rhs)
template<typename T>
std::vector< boost::shared_ptr
< Binding< T > > > 
operator, (std::vector< boost::shared_ptr< Binding< T > > > lhs, boost::shared_ptr< Binding< T > > rhs)
template<typename T>
boost::shared_ptr< Binding< T > > GetBinding ()
template<typename T>
void GetBinding (Binding< T > &binding)
void GetBinding (Binding< Quaternion > &binding)
const TiXmlTextFirstChildText (const TiXmlNode &node)
template<typename T>
std::string ToString (T t)
template<>
std::string ToString< bool > (bool b)
template<>
std::string ToString< char > (char c)
template<>
std::string ToString< unsigned char > (unsigned char c)
template<typename T>
FromString (std::string str)
template<>
bool FromString< bool > (std::string str)
template<>
char FromString< char > (std::string str)
template<>
unsigned char FromString< unsigned char > (std::string str)
template<typename T>
void ToXml (TiXmlElement *element, T &t)
template<typename T>
void FromXml (const TiXmlElement *element, T &t)
template<typename T, typename M>
boost::shared_ptr< Binding< T > > TinyXmlBind (const std::string &name, M T::*offset, MemberType type=Element)
template<typename T, typename M>
boost::shared_ptr< Binding< T > > TinyXmlBind (const std::string &name, boost::function< M(T *)> getter, boost::function< void(T *, const M &)> setter, MemberType type=Element)
template<typename T>
void ToXmlElement (TiXmlElement *element, const std::string &name, T t)
template<typename T>
void ToXmlElement (TiXmlElement *element, const std::string &name, std::vector< T > vector)
template<typename T>
void ToXmlElement (TiXmlElement *element, const std::string &name, std::list< T > list)
template<typename T>
void ToXmlElement (TiXmlElement *element, const std::string &name, std::deque< T > deque)
 CREATE_GENERIC_TOXMLELEMENT (char)
 CREATE_GENERIC_TOXMLELEMENT (unsigned char)
 CREATE_GENERIC_TOXMLELEMENT (short)
 CREATE_GENERIC_TOXMLELEMENT (int)
 CREATE_GENERIC_TOXMLELEMENT (long)
 CREATE_GENERIC_TOXMLELEMENT (float)
 CREATE_GENERIC_TOXMLELEMENT (double)
 CREATE_GENERIC_TOXMLELEMENT (bool)
 CREATE_GENERIC_TOXMLELEMENT (std::string)
template<typename T>
void ToXmlAttribute (TiXmlElement *element, const std::string &name, T t)
 CREATE_GENERIC_TOXMLATTRIBUTE (char)
 CREATE_GENERIC_TOXMLATTRIBUTE (unsigned char)
 CREATE_GENERIC_TOXMLATTRIBUTE (short)
 CREATE_GENERIC_TOXMLATTRIBUTE (int)
 CREATE_GENERIC_TOXMLATTRIBUTE (long)
 CREATE_GENERIC_TOXMLATTRIBUTE (float)
 CREATE_GENERIC_TOXMLATTRIBUTE (double)
 CREATE_GENERIC_TOXMLATTRIBUTE (bool)
 CREATE_GENERIC_TOXMLATTRIBUTE (std::string)
template<typename T>
void FromXmlElement (const TiXmlElement *element, const std::string &name, T &t)
template<typename T>
void FromXmlElement (const TiXmlElement *element, const std::string &name, std::vector< T > &vector)
template<typename T>
void FromXmlElement (const TiXmlElement *element, const std::string &name, std::list< T > &list)
template<typename T>
void FromXmlElement (const TiXmlElement *element, const std::string &name, std::deque< T > &deque)
 CREATE_GENERIC_FROMXMLELEMENT (char)
 CREATE_GENERIC_FROMXMLELEMENT (unsigned char)
 CREATE_GENERIC_FROMXMLELEMENT (short)
 CREATE_GENERIC_FROMXMLELEMENT (int)
 CREATE_GENERIC_FROMXMLELEMENT (long)
 CREATE_GENERIC_FROMXMLELEMENT (float)
 CREATE_GENERIC_FROMXMLELEMENT (double)
 CREATE_GENERIC_FROMXMLELEMENT (bool)
 CREATE_GENERIC_FROMXMLELEMENT (std::string)
template<typename T>
void FromXmlAttribute (const TiXmlElement *element, const std::string &name, T &t)
 CREATE_GENERIC_FROMXMLATTRIBUTE (char)
 CREATE_GENERIC_FROMXMLATTRIBUTE (unsigned char)
 CREATE_GENERIC_FROMXMLATTRIBUTE (short)
 CREATE_GENERIC_FROMXMLATTRIBUTE (int)
 CREATE_GENERIC_FROMXMLATTRIBUTE (long)
 CREATE_GENERIC_FROMXMLATTRIBUTE (float)
 CREATE_GENERIC_FROMXMLATTRIBUTE (double)
 CREATE_GENERIC_FROMXMLATTRIBUTE (bool)
 CREATE_GENERIC_FROMXMLATTRIBUTE (std::string)


Enumeration Type Documentation

Enumerator:
Attribute 
Element 

Definition at line 58 of file TinyXmlBinding.hpp.


Function Documentation

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( std::string   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( bool   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( double   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( float   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( long   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( int   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( short   ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( unsigned  char  ) 

tpn::CREATE_GENERIC_FROMXMLATTRIBUTE ( char   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( std::string   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( bool   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( double   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( float   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( long   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( int   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( short   ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( unsigned  char  ) 

tpn::CREATE_GENERIC_FROMXMLELEMENT ( char   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( std::string   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( bool   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( double   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( float   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( long   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( int   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( short   ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( unsigned  char  ) 

tpn::CREATE_GENERIC_TOXMLATTRIBUTE ( char   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( std::string   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( bool   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( double   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( float   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( long   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( int   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( short   ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( unsigned  char  ) 

tpn::CREATE_GENERIC_TOXMLELEMENT ( char   ) 

const TiXmlText* tpn::FirstChildText ( const TiXmlNode node  )  [inline]

template<typename T>
T tpn::FromString ( std::string  str  )  [inline]

Definition at line 65 of file TinyXmlBinding.hpp.

template<>
bool tpn::FromString< bool > ( std::string  str  )  [inline]

template<>
char tpn::FromString< char > ( std::string  str  )  [inline]

template<>
unsigned char tpn::FromString< unsigned char > ( std::string  str  )  [inline]

template<typename T>
void tpn::FromXml ( const TiXmlElement element,
T &  t 
) [inline]

Definition at line 81 of file TinyXmlBinding.hpp.

Referenced by FromXmlElement(), and operator>>().

template<typename T>
void tpn::FromXmlAttribute ( const TiXmlElement element,
const std::string &  name,
T &  t 
) [inline]

Definition at line 337 of file TinyXmlBinding.hpp.

Referenced by tpn::TinyXmlBinding< T, M >::BindingFromXml().

template<typename T>
void tpn::FromXmlElement ( const TiXmlElement element,
const std::string &  name,
std::deque< T > &  deque 
) [inline]

Definition at line 305 of file TinyXmlBinding.hpp.

References FromXmlElement().

template<typename T>
void tpn::FromXmlElement ( const TiXmlElement element,
const std::string &  name,
std::list< T > &  list 
) [inline]

Definition at line 297 of file TinyXmlBinding.hpp.

References FromXmlElement().

template<typename T>
void tpn::FromXmlElement ( const TiXmlElement element,
const std::string &  name,
std::vector< T > &  vector 
) [inline]

Definition at line 289 of file TinyXmlBinding.hpp.

References FromXmlElement().

template<typename T>
void tpn::FromXmlElement ( const TiXmlElement element,
const std::string &  name,
T &  t 
) [inline]

Definition at line 283 of file TinyXmlBinding.hpp.

References FromXml().

Referenced by tpn::TinyXmlBinding< T, M >::BindingFromXml(), and FromXmlElement().

void tpn::GetBinding ( Binding< Quaternion > &  binding  ) 

template<typename T>
void tpn::GetBinding ( Binding< T > &  binding  )  [inline]

Definition at line 111 of file Binding.hpp.

template<typename T>
boost::shared_ptr<Binding<T> > tpn::GetBinding (  )  [inline]

Definition at line 103 of file Binding.hpp.

template<typename T>
void tpn::noop_ptr ( T *   )  [inline]

Definition at line 42 of file Binding.hpp.

template<typename T>
std::vector<boost::shared_ptr<Binding<T> > > tpn::operator, ( std::vector< boost::shared_ptr< Binding< T > > >  lhs,
boost::shared_ptr< Binding< T > >  rhs 
) [inline]

Definition at line 96 of file Binding.hpp.

template<typename T>
std::vector<boost::shared_ptr<Binding<T> > > tpn::operator, ( boost::shared_ptr< Binding< T > >  lhs,
boost::shared_ptr< Binding< T > >  rhs 
) [inline]

Definition at line 87 of file Binding.hpp.

template<typename T, typename M>
boost::shared_ptr<Binding<T> > tpn::TinyXmlBind ( const std::string &  name,
boost::function< M(T *)>  getter,
boost::function< void(T *, const M &)>  setter,
MemberType  type = Element 
) [inline]

Definition at line 191 of file TinyXmlBinding.hpp.

template<typename T, typename M>
boost::shared_ptr<Binding<T> > tpn::TinyXmlBind ( const std::string &  name,
M T::*  offset,
MemberType  type = Element 
) [inline]

Definition at line 185 of file TinyXmlBinding.hpp.

template<typename T>
std::string tpn::ToString ( t  )  [inline]

Definition at line 60 of file TinyXmlBinding.hpp.

template<>
std::string tpn::ToString< bool > ( bool  b  )  [inline]

template<>
std::string tpn::ToString< char > ( char  c  )  [inline]

template<>
std::string tpn::ToString< unsigned char > ( unsigned char  c  )  [inline]

template<typename T>
void tpn::ToXml ( TiXmlElement element,
T &  t 
) [inline]

Definition at line 71 of file TinyXmlBinding.hpp.

Referenced by operator<<(), and ToXmlElement().

template<typename T>
void tpn::ToXmlAttribute ( TiXmlElement element,
const std::string &  name,
t 
) [inline]

Definition at line 258 of file TinyXmlBinding.hpp.

Referenced by tpn::TinyXmlBinding< T, M >::BindingToXml().

template<typename T>
void tpn::ToXmlElement ( TiXmlElement element,
const std::string &  name,
std::deque< T >  deque 
) [inline]

Definition at line 225 of file TinyXmlBinding.hpp.

References ToXmlElement().

template<typename T>
void tpn::ToXmlElement ( TiXmlElement element,
const std::string &  name,
std::list< T >  list 
) [inline]

Definition at line 216 of file TinyXmlBinding.hpp.

References ToXmlElement().

template<typename T>
void tpn::ToXmlElement ( TiXmlElement element,
const std::string &  name,
std::vector< T >  vector 
) [inline]

Definition at line 207 of file TinyXmlBinding.hpp.

References ToXmlElement().

template<typename T>
void tpn::ToXmlElement ( TiXmlElement element,
const std::string &  name,
t 
) [inline]


The miarn project - written by Joao Xavier