CONZEPT 16 C++ API
|
Procedures of a database. More...
#include "C16/Procedures.hpp"
Procedures of a database.
Public Member Functions | |
Procedure::Execution | execution (const std::string &procedure_name, const std::string &function_name) const |
Gets an execution of a function of a procedure. More... | |
Procedure::Execution | execution (const std::string &function_name) const |
Gets an execution of a function of a procedure. More... | |
template<typename ... Arguments> | |
Variant | execute (const std::string &function_name, Arguments &&... arguments) const |
Executes a function of a procedure. More... | |
virtual Procedure::Compilation::Error | compile (const std::string &name) const =0 |
Compiles a procedure and gets its error. More... | |
virtual Procedure::Compilation::Result | compile_result (const std::string &name, Procedure::Compilation::ErrorLanguage error_language=Procedure::Compilation::ErrorLanguage::ENGLISH_US) const =0 |
Compiles a procedure and gets its result. More... | |
![]() | |
virtual Database & | database () const =0 |
Gets the database of the texts. More... | |
virtual Result | create (const std::string &name, Locking locking=Locking::NONE)=0 |
Creates a text. More... | |
virtual Result | erase (const std::string &name)=0 |
Deletes a text. More... | |
virtual Result | rename (const std::string &name, const std::string &name_renamed)=0 |
Renames a text. More... | |
virtual Result | copy (const std::string &name, const std::string &name_copy)=0 |
Copies a text. More... | |
Procedure::Execution C16::Procedures::execution | ( | const std::string & | procedure_name, |
const std::string & | function_name | ||
) | const |
Gets an execution of a function of a procedure.
procedure_name | Name of the procedure |
function_name | Name of the function |
Referenced by execute().
Procedure::Execution C16::Procedures::execution | ( | const std::string & | function_name | ) | const |
Gets an execution of a function of a procedure.
function_name | Name of the function (including the name of the procedure) |
The name of the function is of the form <procedure_name>
[ :<name>
], where the parts in angle brackets (<
... >
) contain the following data:
<procedure_name>
– Name of the procedure.<name>
– Name of the function of the procedure.Fragments in square brackets ([ ... ]) may be ommitted.
|
inline |
Executes a function of a procedure.
function_name | Name of the function (including the name of the procedure) |
arguments | Arguments |
Procedure::Execution::Exception | Procedure execution exception occurred. |
The name of the function is of the form <procedure_name>
[ :<name>
], where the parts in angle brackets (<
... >
) contain the following data:
<procedure_name>
– Name of the procedure.<name>
– Name of the function of the procedure.Fragments in square brackets ([ ... ]) may be ommitted.
References C16::Procedure::Execution::arguments_add(), C16::Procedure::Execution::execute_error_throw(), and execution().
|
pure virtual |
Compiles a procedure and gets its error.
name | Name of the procedure (1 to Procedure::NAME_LENGTH_LIMIT characters) |
Exception::Invalidity | Name invalid. |
|
pure virtual |
Compiles a procedure and gets its result.
name | Name of the procedure (1 to Procedure::NAME_LENGTH_LIMIT characters) |
error_language | Language of the error text |
Exception::Invalidity | Name invalid. |