Envision
A visual programming IDE for object-oriented languages
|
Public Types | |
enum class | Scope : int { Undefined , Local , Global , Input } |
Public Member Functions | |
ArgumentParser (std::initializer_list< PositionalArgument > positionalArgs, const QStringList &args, bool addScopeArguments=false) | |
ArgumentParser (std::initializer_list< QCommandLineOption > options, const QStringList &args, bool addScopeArguments=false) | |
ArgumentParser (std::initializer_list< QCommandLineOption > options, std::initializer_list< PositionalArgument > positionalArgs, const QStringList &args, bool addScopeArguments=false) | |
QString | argument (const QString &argName) const |
bool | isArgumentSet (const QString &argName) const |
int | numPositionalArguments () const |
QString | positionalArgument (int index) const |
QString | queryName () const |
Scope | scope (const Query *of) const |
Static Public Member Functions | |
static void | setArgTo (QStringList &args, const QStringList &argNames, const QString &type) |
Static Public Attributes | |
static const QStringList | GLOBAL_SCOPE_ARGUMENT_NAMES {"g", "global"} |
static const QStringList | INPUT_SCOPE_ARGUMENT_NAMES {"i", "input"} |
static const QStringList | LOCAL_SCOPE_ARGUMENT_NAMES {"l", "local"} |
Private Member Functions | |
void | initParser (const QStringList &args, bool addScopeArguments) |
Private Attributes | |
std::unique_ptr< QCommandLineParser > | argParser_ {} |
QStringList | positionalArgumentNames_ |
QString | queryName_ |
Scope | scope_ {} |
|
strong |
InformationScripting::ArgumentParser::ArgumentParser | ( | std::initializer_list< QCommandLineOption > | options, |
const QStringList & | args, | ||
bool | addScopeArguments = false |
||
) |
InformationScripting::ArgumentParser::ArgumentParser | ( | std::initializer_list< PositionalArgument > | positionalArgs, |
const QStringList & | args, | ||
bool | addScopeArguments = false |
||
) |
InformationScripting::ArgumentParser::ArgumentParser | ( | std::initializer_list< QCommandLineOption > | options, |
std::initializer_list< PositionalArgument > | positionalArgs, | ||
const QStringList & | args, | ||
bool | addScopeArguments = false |
||
) |
QString InformationScripting::ArgumentParser::argument | ( | const QString & | argName | ) | const |
|
private |
bool InformationScripting::ArgumentParser::isArgumentSet | ( | const QString & | argName | ) | const |
int InformationScripting::ArgumentParser::numPositionalArguments | ( | ) | const |
QString InformationScripting::ArgumentParser::positionalArgument | ( | int | index | ) | const |
|
inline |
ArgumentParser::Scope InformationScripting::ArgumentParser::scope | ( | const Query * | of | ) | const |
|
static |
|
private |
|
static |
|
static |
|
static |
|
private |
|
private |
|
private |