libpqxx
|
Helper: string traits implementation for built-in types. More...
#include <strconv.hxx>
Public Member Functions | |
template<> | |
void | from_string (const char Str[], short &Obj) |
template<> | |
std::string | to_string (short Obj) |
template<> | |
void | from_string (const char Str[], unsigned short &Obj) |
template<> | |
std::string | to_string (unsigned short Obj) |
template<> | |
void | from_string (const char Str[], int &Obj) |
template<> | |
std::string | to_string (int Obj) |
template<> | |
void | from_string (const char Str[], unsigned int &Obj) |
template<> | |
std::string | to_string (unsigned int Obj) |
template<> | |
void | from_string (const char Str[], long &Obj) |
template<> | |
std::string | to_string (long Obj) |
template<> | |
void | from_string (const char Str[], unsigned long &Obj) |
template<> | |
std::string | to_string (unsigned long Obj) |
template<> | |
void | from_string (const char Str[], long long &Obj) |
template<> | |
std::string | to_string (long long Obj) |
template<> | |
void | from_string (const char Str[], unsigned long long &Obj) |
template<> | |
std::string | to_string (unsigned long long Obj) |
template<> | |
void | from_string (const char Str[], float &Obj) |
template<> | |
std::string | to_string (float Obj) |
template<> | |
void | from_string (const char Str[], double &Obj) |
template<> | |
std::string | to_string (double Obj) |
template<> | |
void | from_string (const char Str[], long double &Obj) |
template<> | |
std::string | to_string (long double Obj) |
template<> | |
void | from_string (const char Str[], bool &Obj) |
template<> | |
std::string | to_string (bool Obj) |
Static Public Member Functions | |
static constexpr const char * | name () noexcept |
static constexpr bool | has_null () noexcept |
static bool | is_null (TYPE) |
static TYPE | null () |
static void | from_string (const char Str[], TYPE &Obj) |
static std::string | to_string (TYPE Obj) |
Helper: string traits implementation for built-in types.
These types all look much alike, so they can share much of their traits classes (though templatised, of course).
The actual to_string
and from_string
are implemented in the library, but the rest is defined inline.
|
static |
Referenced by pqxx::internal::throw_null_conversion().
void pqxx::internal::builtin_traits< short >::from_string | ( | const char | Str[], |
short & | Obj | ||
) |
void pqxx::internal::builtin_traits< unsigned short >::from_string | ( | const char | Str[], |
unsigned short & | Obj | ||
) |
void pqxx::internal::builtin_traits< int >::from_string | ( | const char | Str[], |
int & | Obj | ||
) |
void pqxx::internal::builtin_traits< unsigned int >::from_string | ( | const char | Str[], |
unsigned int & | Obj | ||
) |
void pqxx::internal::builtin_traits< long >::from_string | ( | const char | Str[], |
long & | Obj | ||
) |
void pqxx::internal::builtin_traits< unsigned long >::from_string | ( | const char | Str[], |
unsigned long & | Obj | ||
) |
void pqxx::internal::builtin_traits< long long >::from_string | ( | const char | Str[], |
long long & | Obj | ||
) |
void pqxx::internal::builtin_traits< unsigned long long >::from_string | ( | const char | Str[], |
unsigned long long & | Obj | ||
) |
void pqxx::internal::builtin_traits< float >::from_string | ( | const char | Str[], |
float & | Obj | ||
) |
void pqxx::internal::builtin_traits< double >::from_string | ( | const char | Str[], |
double & | Obj | ||
) |
void pqxx::internal::builtin_traits< long double >::from_string | ( | const char | Str[], |
long double & | Obj | ||
) |
void pqxx::internal::builtin_traits< bool >::from_string | ( | const char | Str[], |
bool & | Obj | ||
) |
References pqxx::from_string().
|
staticnoexcept |
|
static |
|
staticnoexcept |
|
static |
References pqxx::from_string(), pqxx::internal::throw_null_conversion(), and pqxx::to_string().
|
static |
Referenced by pqxx::internal::throw_null_conversion().
std::string pqxx::internal::builtin_traits< short >::to_string | ( | short | Obj | ) |
std::string pqxx::internal::builtin_traits< unsigned short >::to_string | ( | unsigned short | Obj | ) |
std::string pqxx::internal::builtin_traits< int >::to_string | ( | int | Obj | ) |
std::string pqxx::internal::builtin_traits< unsigned int >::to_string | ( | unsigned int | Obj | ) |
std::string pqxx::internal::builtin_traits< long >::to_string | ( | long | Obj | ) |
std::string pqxx::internal::builtin_traits< unsigned long >::to_string | ( | unsigned long | Obj | ) |
std::string pqxx::internal::builtin_traits< long long >::to_string | ( | long long | Obj | ) |
std::string pqxx::internal::builtin_traits< unsigned long long >::to_string | ( | unsigned long long | Obj | ) |
std::string pqxx::internal::builtin_traits< float >::to_string | ( | float | Obj | ) |
std::string pqxx::internal::builtin_traits< double >::to_string | ( | double | Obj | ) |
std::string pqxx::internal::builtin_traits< long double >::to_string | ( | long double | Obj | ) |
std::string pqxx::internal::builtin_traits< bool >::to_string | ( | bool | Obj | ) |