Envision
A visual programming IDE for object-oriented languages
|
Classes | |
class | ArgumentValueCheck |
Public Types | |
enum | RuleType { RequireAll , RequireOneOf , AtMostOneOf } |
Public Member Functions | |
ArgumentRule (RuleType rule, std::vector< ArgumentValue > expectedArguments) | |
void | check (const ArgumentParser &parser) const |
Checks if this rule is satisfied, if not it throws an exception. More... | |
Private Types | |
using | RuleFunction = std::function< bool(const ArgumentParser &, const std::vector< ArgumentValue > &)> |
Static Private Member Functions | |
static bool | atMostOneOf (const ArgumentParser &parser, const std::vector< ArgumentValue > &values) |
static bool | requireAll (const ArgumentParser &parser, const std::vector< ArgumentValue > &values) |
static bool | requireOneOf (const ArgumentParser &parser, const std::vector< ArgumentValue > &values) |
Private Attributes | |
std::function< bool(const ArgumentParser &)> | check_ |
QString | violationMessage_ |
|
private |
InformationScripting::ArgumentRule::ArgumentRule | ( | RuleType | rule, |
std::vector< ArgumentValue > | expectedArguments | ||
) |
|
staticprivate |
void InformationScripting::ArgumentRule::check | ( | const ArgumentParser & | parser | ) | const |
Checks if this rule is satisfied, if not it throws an exception.
|
staticprivate |
|
staticprivate |
|
private |
|
private |