convert.h File Reference
#include <sstream>
#include <stdexcept>
#include <locale>
#include <cxxtools/convert.h>

Go to the source code of this file.

Classes

class  tnt::ConversionError

Namespaces

namespace  tnt
 in tntnet (mainthread): Jobqueue queue; void mainloop() { while (1) { Jobqueue::JobPtr j = new Tcpjob(); j->accept(poller.get()); queue.put(j); } }

Functions

template<typename T >
std::string tnt::toString (const T &value)
template<typename T >
std::string tnt::toString (const T &value, const std::locale &loc)
template<>
std::string tnt::toString (const std::string &value)
template<>
std::string tnt::toString (const std::string &value, const std::locale &)
std::string tnt::toString (const char *value)
std::string tnt::toString (const char *value, const std::locale &)
std::string tnt::toString (char value)
std::string tnt::toString (char value, const std::locale &)
std::string tnt::toString (bool value)
std::string tnt::toString (bool value, const std::locale &)
template<typename T >
tnt::stringTo (const char *argname, const char *typeto, const std::string &value)
template<typename T >
tnt::stringTo (const char *argname, const char *typeto, const std::string &value, const std::locale &loc)
template<typename T >
tnt::stringToWithDefault (const std::string &value, const T &def)
template<typename T >
tnt::stringToWithDefault (const std::string &value, const T &def, const std::locale &loc)
template<>
std::string tnt::stringTo< std::string > (const char *, const char *, const std::string &value)
template<>
std::string tnt::stringTo< std::string > (const char *, const char *, const std::string &value, const std::locale &)
template<>
char tnt::stringTo< char > (const char *argname, const char *typeto, const std::string &value)
template<>
char tnt::stringTo< char > (const char *argname, const char *typeto, const std::string &value, const std::locale &)
template<>
bool tnt::stringTo< bool > (const char *, const char *, const std::string &value)
template<>
bool tnt::stringTo< bool > (const char *, const char *, const std::string &value, const std::locale &)
template<>
std::string tnt::stringToWithDefault< std::string > (const std::string &value, const std::string &)
template<>
std::string tnt::stringToWithDefault< std::string > (const std::string &value, const std::string &, const std::locale &)
template<>
char tnt::stringToWithDefault< char > (const std::string &value, const char &def)
template<>
char tnt::stringToWithDefault< char > (const std::string &value, const char &def, const std::locale &)
template<>
bool tnt::stringToWithDefault< bool > (const std::string &value, const bool &def)
template<>
bool tnt::stringToWithDefault< bool > (const std::string &value, const bool &def, const std::locale &)
template<typename iteratorType , typename vectorType >
void tnt::convertRange (const char *argname, const char *typeto, iteratorType b, iteratorType e, vectorType &v, const std::locale &l)