Joedb 9.1.4
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Namespaces | Macros
Data_Manipulation_Command_Processor.cpp File Reference
#include "joedb/ui/Data_Manipulation_Command_Processor.h"
#include "joedb/ui/type_io.h"
#include "joedb/Readable.h"
#include "joedb/Writable.h"
#include "joedb/error/Exception.h"
#include <vector>
#include "joedb/TYPE_MACRO.h"
Include dependency graph for Data_Manipulation_Command_Processor.cpp:

Go to the source code of this file.

Namespaces

namespace  joedb
 

Macros

#define TYPE_MACRO(type, return_type, type_id, read_method, write_method)
 
#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:
case Type::Type_Id::type_id:\
{\
std::vector<type> v(size);\
for (size_t i = 0; i < size; i++)\
v[i] = joedb::read_##type_id(parameters);\
writable.update_vector_##type_id(table_id, record_id, field_id, size, &v[0]);\
}\
break;

◆ 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(in);\
writable.update_##type_id(table_id, record_id, field_id, value);\
}\
break;