|
lintel 0.2.0
|
#include <chrono>#include <exception>#include <memory>#include <type_traits>#include "lintel/core/configuration/DatabaseConnectionEntry.h"#include "lintel/core/persistence/postgresql/Serialization.h"#include "lintel/core/persistence/sqlite3/Serialization.h"#include "lintel/core/utils/DateTimeFormat.h"Go to the source code of this file.
Classes | |
| class | lintel::sqlite::Serialization< T, Enable > |
Namespaces | |
| namespace | lintel |
| namespace | lintel::sqlite |
Macros | |
| #define | IMPLEMENT_SERIALIZE(type, convertToString, convertToValue) |
Functions | |
| lintel::sqlite::IMPLEMENT_SERIALIZE (std::string, [](const std::string &string) -> std::string { return string;}, [](const std::string &string) -> std::string { return string;}) template<> class Serialization< bool > | |
| lintel::sqlite::IMPLEMENT_SERIALIZE (std::chrono::sys_time< std::chrono::microseconds >, [](const std::chrono::sys_time< std::chrono::microseconds > &time) -> std::string { return datetime::formatSystemTime(time);}, [](const std::string &timeString) -> std::chrono::sys_time< std::chrono::microseconds > { return datetime::parseSystemTime(timeString);}) template< typename T > class Serialization< T | |
| #define IMPLEMENT_SERIALIZE | ( | type, | |
| convertToString, | |||
| convertToValue | |||
| ) |
Macro that generates a full specialization of Serialization for a given type with the provided serialization and deserialization lambdas or functions.
| type | the type to specialize for |
| convertToString | expression/lambda to convert the type to std::string |
| convertToValue | expression/lambda to convert std::string to the type |