libpqxx  v4.0-1
C++ library for PostgreSQL
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
strconv.hxx File Reference
#include "pqxx/compiler-public.hxx"
#include <sstream>
#include <stdexcept>
Include dependency graph for strconv.hxx:

Classes

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

Namespaces

namespace  pqxx
 The home of all libpqxx classes, functions, templates, etc.
 
namespace  pqxx::internal
 Private namespace for libpqxx's internal use; do not access.
 

Macros

#define PQXX_DECLARE_STRING_TRAITS_SPECIALIZATION(T)
 

Functions

int pqxx::internal::digit_to_number (char c) throw ()
 Compute numeric value of given textual digit (assuming that it is a digit) More...
 
template<typename T >
void pqxx::from_string (const char Str[], T &Obj)
 Attempt to convert postgres-generated string to given built-in type. More...
 
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) More...
 
template<typename T >
void pqxx::from_string (const PGSTD::string &Str, T &Obj)
 
template<typename T >
void pqxx::from_string (const PGSTD::stringstream &Str, T &Obj)
 
template<>
void pqxx::from_string (const PGSTD::string &Str, PGSTD::string &Obj)
 
template<>
void pqxx::from_string< PGSTD::string > (const char Str[], PGSTD::string &Obj, size_t len)
 
char pqxx::internal::number_to_digit (int i) throw ()
 
void PQXX_LIBEXPORT PQXX_NORETURN pqxx::internal::throw_null_conversion (const PGSTD::string &type)
 Throw exception for attempt to convert null to given type. More...
 
template<typename T >
PGSTD::string pqxx::to_string (const T &Obj)
 Convert built-in type to a readable string that PostgreSQL will understand. More...