Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Generator.h
Go to the documentation of this file.
1#ifndef joedb_generator_Generator_declared
2#define joedb_generator_Generator_declared
3
6
7namespace joedb::generator
8{
9 /// @ingroup compiler
11 {
12 protected:
15
16 bool db_has_values() const;
17
19 void write_type(Type type, bool return_type, bool setter_type);
20 void write_tuple_type(const Compiler_Options::Index &index, bool reference);
22
23 static const char *get_type_string(Type type);
24 static const char *get_cpp_type_string(Type type);
25 static const char *get_storage_type_string(Type type);
26
27 std::string get_file_string
28 (
29 const char *dir_name,
30 const char *file_name
31 );
32
33 public:
35 (
36 const char *dir_name,
37 const char *file_name,
39 );
40
41 virtual void generate() = 0;
42
43 virtual ~Generator();
44 };
45}
46
47#endif
void write_index_type(const Compiler_Options::Index &index)
static const char * get_storage_type_string(Type type)
static const char * get_type_string(Type type)
std::string get_file_string(const char *dir_name, const char *file_name)
virtual void generate()=0
void write_type(Type type, bool return_type, bool setter_type)
Definition Generator.cpp:41
static const char * get_cpp_type_string(Type type)
const Compiler_Options & options
Definition Generator.h:13
void write_tuple_type(const Compiler_Options::Index &index, bool reference)
Definition Generator.cpp:70
One code generator for each of the file generated by joedbc.
Definition Client_h.cpp:5