LTI-Lib latest version v1.9 - last update 24 Nov 2005
Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

lti::className Class Reference

Provides methods for getting the class names of lti::objects. More...

#include <ltiClassName.h>

Inheritance diagram for lti::className:

Inheritance graph
[legend]
Collaboration diagram for lti::className:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 className ()
 ~className ()
const char * get (const object *o) const
const char * get (const object &o) const
void get (const object &o, std::string &result) const
void get (const object *o, std::string &result) const
std::string decode (const std::string &name) const

Protected Member Functions

void decode (char *dest, int &dpos, const char *src, int &spos) const

Detailed Description

Provides methods for getting the class names of lti::objects.


Constructor & Destructor Documentation

lti::className::className  ) 
 

default constructor

lti::className::~className  ) 
 

destructor


Member Function Documentation

void lti::className::decode char *  dest,
int &  dpos,
const char *  src,
int &  spos
const [protected]
 

implementation of the native-to-readable decoding of class names.

std::string lti::className::decode const std::string &  name  )  const
 

decodes a typename returned by typeid().

You can use this to get decoded names for objects that are not derived from lti::object

See also:
get(object*)

void lti::className::get const object o,
std::string &  result
const [inline]
 

returns the name of this type (obtained by using the std::typeinfo functions).

The returned string considers the template arguments and is usually fully qualified.

See also:
get(object*) The name is returned in the result parameter. This is a much safer method than the method returning a pointer.

void lti::className::get const object o,
std::string &  result
const [inline]
 

returns the name of this type (obtained by using the std::typeinfo functions).

The returned string considers the template arguments and is usually fully qualified.

See also:
get(object*) The name is returned in the result parameter. This is a much safer method than the method returning a pointer.

const char* lti::className::get const object o  )  const [inline]
 

See also:
get(object*)

const char* lti::className::get const object o  )  const
 

returns the name of this type (obtained by using the std::typeinfo functions).

The returned string considers the template arguments and is usually fully qualified. The implementation should ensure that the returned name has the following format: <namespace>::<classname>::<innerclassname>::... Example:

 lti::boundingBox<double>::parameters
 
WARNING: The function returns a pointer to an internal class member. So, the pointer is only valid for the lifetime of this object or until the next time get is called, whatever occurs first.


The documentation for this class was generated from the following file:
Generated on Thu Nov 24 16:30:00 2005 for LTI-Lib by Doxygen 1.4.4