charon-core  0.3.1
TypeDetector Namespace Reference

String representation generation. More...

Functions

charon_core_DLL_PUBLIC
charon_DEPRECATED void 
destroy ()
 deprecated, for compatibility, does nothing. More...
 
charon_core_DLL_PUBLIC std::string type (const std::string &typeInfo)
 Get type representation. More...
 

Detailed Description

This class gives a string representation for simple types as int, uint, double, float etc.

Function Documentation

void TypeDetector::destroy ( )

Has been used in tests sometimes. Please remove calls to this function.

Definition at line 43 of file TypeDetector.cpp.

std::string TypeDetector::type ( const std::string &  typeInfo)

Known types will result the proper representation, unknown types will cause the original string to be returned.

Parameters
typeInforesult of typeid(bla).name()
Returns
string representation

Definition at line 24 of file TypeDetector.cpp.