Joedb 10.2.1
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Public Member Functions | List of all members
tutorial::rpc::Service Class Reference

A collection of procedures that will be executed in the rpc server. More...

#include <tutorial/rpc/Service.h>

Public Member Functions

 Service (Client &client)
 
void insert_city (city::Writable_Database &city)
 Insert a city from a name string.
 
void delete_city (city::Writable_Database &city)
 Delete a city from a name string.
 
void get_population (population::Writable_Database &population)
 A procedure can return values by writing them to the message database.
 
void get_inhabitants (tutorial::Writable_Database &message)
 A message can have the same schema as the main database.
 

Detailed Description

joedbc uses a regular expression to find procedures in the file. The constructor is not called from compiled code, so it can have any signature. In particular, a Service does not necessarily have to access a database at all.

Definition at line 16 of file Service.h.

Constructor & Destructor Documentation

◆ Service()

tutorial::rpc::Service::Service ( Client client)
inline

Definition at line 22 of file Service.h.

Member Function Documentation

◆ delete_city()

void tutorial::rpc::Service::delete_city ( city::Writable_Database city)
inline

Definition at line 43 of file Service.h.

◆ get_inhabitants()

void tutorial::rpc::Service::get_inhabitants ( tutorial::Writable_Database message)
inline

Definition at line 81 of file Service.h.

◆ get_population()

void tutorial::rpc::Service::get_population ( population::Writable_Database population)
inline

Definition at line 59 of file Service.h.

◆ insert_city()

void tutorial::rpc::Service::insert_city ( city::Writable_Database city)
inline

Definition at line 27 of file Service.h.


The documentation for this class was generated from the following file: