Joedb 10.5.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Readable_Writable_Command_Processor.cpp File Reference
Include dependency graph for Readable_Writable_Command_Processor.cpp:

Go to the source code of this file.

Namespaces

namespace  joedb

Macros

#define TYPE_MACRO(type, return_type, type_id, read, write)
#define TYPE_MACRO_NO_REFERENCE
#define TYPE_MACRO(type, return_type, type_id, read_method, write_method)

Macro Definition Documentation

◆ TYPE_MACRO [1/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
read,
write )
Value:
if (type_name == #type_id)\
return Type::type_id();

◆ TYPE_MACRO [2/2]

#define TYPE_MACRO ( type,
return_type,
type_id,
read_method,
write_method )
Value:
case Type::Type_Id::type_id:\
{\
const type value = joedb::read_##type_id(parameters);\
for (Record_Id record_id{0}; record_id < size; ++record_id)\
if (readable.is_used(table_id, record_id))\
writable.update_##type_id(table_id, record_id, field_id, value);\
}\
break;

◆ TYPE_MACRO_NO_REFERENCE

#define TYPE_MACRO_NO_REFERENCE