strconv.hxx File Reference

#include "pqxx/compiler-public.hxx"
#include <sstream>
#include <stdexcept>

Include dependency graph for strconv.hxx:

Go to the source code of this file.

Namespaces

namespace  pqxx
namespace  pqxx::internal

Classes

struct  pqxx::string_traits< T >
 Traits class for use in string conversions. More...
struct  pqxx::pqxx::string_traits< const char * >
 String traits for C-style string ("pointer to const char"). More...
struct  pqxx::pqxx::string_traits< char * >
 String traits for non-const C-style string ("pointer to char"). More...
struct  pqxx::pqxx::string_traits< char[N]>
 String traits for C-style string constant ("array of char"). More...
struct  pqxx::pqxx::string_traits< std::string >
struct  pqxx::pqxx::string_traits< const std::string >
struct  pqxx::pqxx::string_traits< std::stringstream >

Defines

#define PQXX_DECLARE_STRING_TRAITS_SPECIALIZATION(T)

Functions

void pqxx::internal::throw_null_conversion (const std::string &type)
 Throw exception for attempt to convert null to given type.
template<typename T>
void pqxx::from_string (const char Str[], T &Obj)
 Attempt to convert postgres-generated string to given built-in type.
template<typename T>
void pqxx::from_string (const char Str[], T &Obj, size_t)
 Conversion with known string length (for strings that may contain nuls).
template<>
void pqxx::from_string< std::string > (const char Str[], std::string &Obj, size_t len)
template<typename T>
void pqxx::from_string (const std::string &Str, T &Obj)
template<typename T>
void pqxx::from_string (const std::stringstream &Str, T &Obj)
template<>
void pqxx::from_string (const std::string &Str, std::string &Obj)
int pqxx::internal::digit_to_number (char c) throw ()
 Compute numeric value of given textual digit (assuming that it is a digit).
char pqxx::internal::number_to_digit (int i) throw ()
template<typename T>
std::string pqxx::to_string (const T &Obj)
 Convert built-in type to a readable string that PostgreSQL will understand.
std::string pqxx::to_string (const char Obj[])


Generated on Mon Feb 15 18:22:45 2010 for libpqxx by  doxygen 1.5.5