Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Namespaces | Macros
Readable_Writable_Command_Processor.cpp File Reference
#include "joedb/ui/Readable_Writable_Command_Processor.h"
#include "joedb/ui/type_io.h"
#include "joedb/Readable.h"
#include "joedb/Writable.h"
#include "joedb/error/Exception.h"
#include "joedb/TYPE_MACRO.h"
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 = Record_Id(1); record_id <= last_record_id; ++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