12 parent_options(parent_options)
21 if (&
options == &parent_options)
22 out <<
"#include \"rpc/Service.h\"";
24 out <<
"#include \"../Service.h\"";
26#include "joedb/rpc/Procedure.h"
27#include "Writable_Database.h"
36 class Procedure: public joedb::rpc::Procedure
39 rpc::Service &service;
41 virtual void execute(Writable_Database &message) const = 0;
43 void execute(joedb::Abstract_File &file) const override
45 Writable_Database db(file, joedb::Recovery::ignore_header);
51 Procedure(rpc::Service &service): service(service)
const std::vector< std::string > & get_name_space() const
const Compiler_Options & options
Procedure_h(const Compiler_Options &options, const Compiler_Options &parent_options)
void namespace_open(std::ostream &out, const std::vector< std::string > &n)
void namespace_close(std::ostream &out, const std::vector< std::string > &n)
void namespace_include_guard_open(std::ostream &out, const char *name, const std::vector< std::string > &n)
void namespace_include_guard_close(std::ostream &out)
One code generator for each of the file generated by joedbc.