Joedb 9.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
TYPE_MACRO.h
Go to the documentation of this file.
1#ifndef TYPE_MACRO
2#define TYPE_MACRO(storage_type, return_type, type_id, read_method, write_method)
3#endif
4
5#ifndef TYPE_MACRO_NO_STRING
6TYPE_MACRO(std::string, const std::string&, string, safe_read_string, write_string)
7#endif
8#ifndef TYPE_MACRO_NO_INT
9TYPE_MACRO(int32_t, int32_t, int32, file.read<int32_t>, write<int32_t>)
10TYPE_MACRO(int64_t, int64_t, int64, file.read<int64_t>, write<int64_t>)
11#endif
12#ifndef TYPE_MACRO_NO_REFERENCE
13TYPE_MACRO(joedb::Record_Id, joedb::Record_Id, reference, file.read_reference, write_reference)
14#endif
15#ifndef TYPE_MACRO_NO_BOOL
16#ifndef TYPE_MACRO_NO_INT
17TYPE_MACRO(char, bool, boolean, file.read<char>, write<char>)
18#endif
19#endif
20#ifndef TYPE_MACRO_NO_FLOAT
21TYPE_MACRO(float, float, float32, file.read<float>, write<float>)
22TYPE_MACRO(double, double, float64, file.read<double>, write<double>)
23#endif
24#ifndef TYPE_MACRO_NO_INT
25TYPE_MACRO(int8_t, int8_t, int8, file.read<int8_t>, write<int8_t>)
26TYPE_MACRO(int16_t, int16_t, int16, file.read<int16_t>, write<int16_t>)
27#endif
28#ifndef TYPE_MACRO_NO_BLOB
29TYPE_MACRO(joedb::Blob, joedb::Blob, blob, file.read_blob, write_blob)
30#endif
31
32// Warning: only add at the bottom to keep compatibility with previous versions
33// Don't forget to add case in SQL_Dump_Writable
34
35#undef TYPE_MACRO
36#undef TYPE_MACRO_NO_STRING
37#undef TYPE_MACRO_NO_REFERENCE
38#undef TYPE_MACRO_NO_INT
39#undef TYPE_MACRO_NO_FLOAT
40#undef TYPE_MACRO_NO_BLOB
41#undef TYPE_MACRO_NO_BOOL
#define TYPE_MACRO(storage_type, return_type, type_id, read_method, write_method)
Definition TYPE_MACRO.h:2