MIRA
Classes | Namespaces | Functions
FromString.h File Reference

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

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

Go to the source code of this file.

Classes

class  FromHex< T >
 Can be used with fromString to convert hex strings into numbers. More...
 
class  FromOct< T >
 Can be used with fromString to convert oct strings into numbers. More...
 

Namespaces

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

Functions

template<typename T >
fromString (const std::string &str)
 Converts a string to any data type that supports the stream >> operator. More...
 
template<>
char fromString< char > (const std::string &str)
 Specialization for char. More...
 
template<>
signed char fromString< signed char > (const std::string &str)
 Specialization for signed char. More...
 
template<>
unsigned char fromString< unsigned char > (const std::string &str)
 Specialization for unsigned char. More...
 
template<>
std::string fromString< std::string > (const std::string &str)
 Specialization for string. More...
 
template<>
float fromString< float > (const std::string &str)
 Specialization for float. More...
 
template<>
double fromString< double > (const std::string &str)
 Specialization for double. More...
 
template<>
long double fromString< long double > (const std::string &str)
 Specialization for long double. More...
 
template<>
bool fromString< bool > (const std::string &str)
 Specialization for bool. More...
 

Detailed Description

Contains fromString functions for converting strings to data types.

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