MIRA
Classes | Namespaces | Functions
ToString.h File Reference

Contains toString functions for converting data types to strings. More...

#include <boost/algorithm/string/predicate.hpp>
#include <error/Exceptions.h>
#include <math/Math.h>
#include <utils/FromToStringConstants.h>
Include dependency graph for ToString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  ToHex< T >
 Can be used with toString to convert values to their string hex representation. More...
 
class  ToOct< T >
 Can be used with toString to convert values to their string oct representation. More...
 

Namespaces

 mira
 specialize cv::DataType for our ImgPixel and inherit from cv::DataType<Vec>
 

Functions

template<typename T >
std::string toString (const T &value, int precision=-1)
 Converts any data type to string (the data type must support the stream << operator). More...
 
template<>
std::string toString< char > (const char &value, int precision)
 Specialization for char. More...
 
template<>
std::string toString< signed char > (const signed char &value, int precision)
 Specialization for signed char. More...
 
template<>
std::string toString< unsigned char > (const unsigned char &value, int precision)
 Specialization for unsigned char. More...
 
template<>
std::string toString< std::string > (const std::string &value, int precision)
 Specialization for string. More...
 
template<>
std::string toString< float > (const float &value, int precision)
 Specialization for float. More...
 
template<>
std::string toString< double > (const double &value, int precision)
 Specialization for double. More...
 
template<>
std::string toString< long double > (const long double &value, int precision)
 Specialization for long double. More...
 
template<>
std::string toString< bool > (const bool &value, int precision)
 Specialization for bool. More...
 

Detailed Description

Contains toString functions for converting data types to strings.

Author
Erik Einhorn, Tim Langner
Date
2010/07/08