Conversions.h File Reference

Various conversion functions for common usage. More...

#include <wx/wx.h>
#include <iostream>
#include <sstream>
#include <iomanip>
#include <string>
#include <limits>

Go to the source code of this file.

Namespaces

namespace  Conversions

Typedefs

typedef char * Conversions::PtrToChar

Functions

template<typename T>
std::string Conversions::ToString (const T &value)
 Converts selected value into string.
template<>
std::string Conversions::ToString< bool > (const bool &value)
 Specialization for bool.
template<>
std::string Conversions::ToString< double > (const double &value)
 Specialization for double.
template<>
std::string Conversions::ToString< float > (const float &value)
 Specialization for float.
template<>
std::string Conversions::ToString< long double > (const long double &value)
 Specialization for long double.
template<>
std::string Conversions::ToString< std::string > (const std::string &value)
 Specialization for std::string.
template<>
std::string Conversions::ToString< PtrToChar > (const PtrToChar &value)
 Specialization for char *.
template<>
std::string Conversions::ToString< char > (const char &value)
 Specialization for char.
template<typename N>
bool Conversions::StringToNumber (const std::string &str, N &number, std::ios_base &(*format)(std::ios_base &)=std::dec)
 Converts selected string into number.
wxString Conversions::string2wxString (const std::string &str)
 Converts std::string into wxString.
std::string Conversions::wxString2string (const wxString &str)
 Converts wxString into std::string.


Detailed Description

Various conversion functions for common usage.

Author:
Libor Polcak, valuepolca03@stud.fit.vutbr.cz

Boris Prochazka, valueproch63@stud.fit.vutbr.cz

Martin Rapavy, valuerapav00@stud.fit.vutbr.cz

Petr Zemek, valuezemek02@stud.fit.vutbr.cz

Date:
29.3.2007

Generated on Sun Apr 29 11:46:10 2007 for IPP/ICP2007 by  doxygen 1.4.7