Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Namespaces | Macros
Interpreter_Dump_Writable.cpp File Reference
#include "joedb/ui/Interpreter_Dump_Writable.h"
#include "joedb/ui/type_io.h"
#include "joedb/ui/get_time_string.h"
#include <iostream>
#include "joedb/TYPE_MACRO.h"
Include dependency graph for Interpreter_Dump_Writable.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, R, W)
 

Macro Definition Documentation

◆ TYPE_MACRO [1/2]

#define TYPE_MACRO (   type,
  return_type,
  type_id,
  R,
 
)
Value:
void Interpreter_Writable::update_##type_id\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
return_type value\
)\
{\
write_update("update ", table_id, record_id, field_id);\
write_##type_id(out, value);\
out << '\n';\
}\
void Interpreter_Writable::update_vector_##type_id\
(\
Table_Id table_id,\
Record_Id record_id,\
Field_Id field_id,\
size_t size,\
const type *value\
)\
{\
write_update("update_vector ", table_id, record_id, field_id);\
out << size;\
for (size_t i = 0; i < size; i++)\
{\
out << ' ';\
write_##type_id(out, value[i]);\
}\
out << '\n';\
}

Definition at line 181 of file Interpreter_Dump_Writable.cpp.

◆ TYPE_MACRO [2/2]

#define TYPE_MACRO (   type,
  return_type,
  type_id,
  read,
  write 
)
Value:
case Type::Type_Id::type_id:\
out << #type_id;\
break;

Definition at line 181 of file Interpreter_Dump_Writable.cpp.

◆ TYPE_MACRO_NO_REFERENCE

#define TYPE_MACRO_NO_REFERENCE