Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Procedure.h
Go to the documentation of this file.
1/////////////////////////////////////////////////////////////////////////////
2//
3// This code was automatically generated by the joedb compiler
4// https://www.joedb.org/
5//
6// Path to compiler: /home/rcoulom/repos/joedb/compcmake/gcc_debug/joedbc
7// Version: 10.2.1
8// joedbc compilation time: Sep 15 2025 20:22:33
9// Generation of this file: 2025-09-15 18:23:01 GMT
10//
11/////////////////////////////////////////////////////////////////////////////
12#ifndef tutorial_Procedure_declared
13#define tutorial_Procedure_declared
14
15#include "rpc/Service.h"
16#include "joedb/rpc/Procedure.h"
17#include "Writable_Database.h"
18
19namespace tutorial
20{
21 /// Class for all procedures based on this message schema
23 {
24 protected:
26
27 virtual void execute(Writable_Database &message) const = 0;
28
29 void execute(joedb::Abstract_File &file) const override
30 {
32 execute(db);
33 db.soft_checkpoint();
34 }
35
36 public:
40 };
41}
42
43#endif
Procedure to be executed by joedb::rpc::Server.
Definition Procedure.h:12
Class for all procedures based on this message schema.
Definition Procedure.h:23
Procedure(rpc::Service &service)
Definition Procedure.h:37
virtual void execute(Writable_Database &message) const =0
rpc::Service & service
Definition Procedure.h:25
void execute(joedb::Abstract_File &file) const override
Definition Procedure.h:29
A Database that contains a joedb::Writable_Journal and keeps them in sync.
A collection of procedures that will be executed in the rpc server.
Definition Service.h:17
@ ignore_header
use file size as checkpoint
Automatically generated by joedbc.
Definition Client.h:19