$darkmode
#include <trigger.hpp>
Public Member Functions | |
| TriggerSchema (const std::string &name, const std::string &desc) | |
| TriggerSchema (const std::string &name, const std::string &desc, fable::schema::PropertyList<> props) | |
| TriggerSchema (const std::string &name, const std::string &desc, Schema &&s) | |
| TriggerSchema (const std::string &name, const std::string &desc, InlineSchema &&usage, fable::schema::PropertyList<> props) | |
| TriggerSchema (const std::string &name, const std::string &desc, InlineSchema &&usage, Schema &&init) | |
| TriggerSchema (const std::string &name, const std::string &desc, InlineSchema &&usage, const Schema &init) | |
| const std::string & | name () const |
| const std::string & | description () const |
| std::string | usage_inline () const |
| Json | usage () const |
| Json | json_schema () const |
TriggerSchema describes the schema of a trigger, acting as a usage generator and validator for trigger actions and events.
|
inline |
Construct a TriggerSchema that describes a trigger with no parameters and an implicit inline format.
For example, the definition:
TriggerSchema("stop", "stop the simulation")
will allow the following forms of initialization:
"stop" { "name": "stop" }
|
inline |
Construct a TriggerSchema that describes a trigger with parameters but no inline format.
|
inline |
Construct a TriggerSchema that describes a trigger with the given Schema but no inline format.
|
inline |
Construct a TriggerSchema that describes a trigger with parameters and a specified inline format.
|
inline |
Construct a TriggerSchema that describes a trigger with the given Schema and a specified inline format.
|
inline |
Construct a TriggerSchema that describes a trigger with the given Schema and a specified inline format.