convert.hpp File Reference
Provides generic conversion functions. More...
#include "tools/varchar.hpp"
#include "tools/enable_if.hpp"
#include <tr1/type_traits>
#include <cstdlib>
#include <typeinfo>
#include <cstring>
Namespaces | |
oos | |
The Open Object Store namespace. | |
Functions | |
template<class T , class U > | |
void | oos::convert (const T &from, U &to) |
template<class T , class U , class S > | |
void | oos::convert (const T &from, U &to, S size) |
template<class T , class U , class S , class P > | |
void | oos::convert (const T &from, U &to, S size, P precision) |
Detailed Description
Provides generic conversion functions.
This file provides generic conversion function. All builtin types, std::string and oos::varchar_base types are supported. The conversion succeeds as long as the size of the types fits or it is a string.