Clingo
|
Interface to build applications on top of clingo. More...
#include <app.hh>
Public Member Functions | |
App ()=default | |
The default constructor. | |
App (App &&other)=delete | |
Disable copying and moving. | |
virtual | ~App ()=default |
The default destructor. | |
auto | program_name () noexcept -> std::string_view |
Get the name of the application. | |
auto | program_version () noexcept -> std::string_view |
Get the version of the application. | |
void | main (Control const &control, std::span< std::string_view const > files) |
Run the main control flow. | |
void | print_model (ConstModel model, ModelPrinter const &printer) |
Customize model printing. | |
void | register_options (Options options) |
Optionally register additional application options. | |
void | validate_options () |
Validate previously parsed options. | |
Interface to build applications on top of clingo.
|
inline |
Run the main control flow.
Does nothing by default.
control | the control object |
files | the files to parse |
|
inline |
Customize model printing.
Calls the default model printer by default.
model | the current model |
printer | the default model printer |
|
inlinenoexcept |
Get the name of the application.
Returns "clingo" by default.
|
inlinenoexcept |
Get the version of the application.
Returns the clingo version by default.
Optionally register additional application options.
options | the options object |
|
inline |
Validate previously parsed options.
Should throw std::invalid_value if conflicting options are found.