Notation used in Ruby API documentation
Module: QtCore
Description: Binding of QCommandLineParser
Sub-classes: OptionsAfterPositionalArgumentsMode, QFlags_OptionsAfterPositionalArgumentsMode, SingleDashWordOptionMode, QFlags_SingleDashWordOptionMode
new QCommandLineParser | new | Constructor QCommandLineParser::QCommandLineParser() |
[const] | QCommandLineParser ptr | _const_cast | Returns a non-const reference to self. | |
void | _create | Ensures the C++ object is created | ||
void | _destroy | Explicitly destroys the object | ||
[const] | bool | _destroyed? | Returns a value indicating whether the object was already destroyed | |
[const] | bool | _is_const_object? | Returns a value indicating whether the reference is a const reference | |
void | _manage | Marks the object as managed by the script side. | ||
void | _unmanage | Marks the object as no longer owned by the script side. | ||
QCommandLineOption | addHelpOption | Method QCommandLineOption QCommandLineParser::addHelpOption() | ||
bool | addOption | (const QCommandLineOption commandLineOption) | Method bool QCommandLineParser::addOption(const QCommandLineOption &commandLineOption) | |
bool | addOptions | (QCommandLineOption[] options) | Method bool QCommandLineParser::addOptions(const QList<QCommandLineOption> &options) | |
void | addPositionalArgument | (string name, string description, string syntax = QString()) | Method void QCommandLineParser::addPositionalArgument(const QString &name, const QString &description, const QString &syntax) | |
QCommandLineOption | addVersionOption | Method QCommandLineOption QCommandLineParser::addVersionOption() | ||
[const] | string | applicationDescription | Method QString QCommandLineParser::applicationDescription() | |
void | applicationDescription= | (string description) | Method void QCommandLineParser::setApplicationDescription(const QString &description) | |
void | clearPositionalArguments | Method void QCommandLineParser::clearPositionalArguments() | ||
[const] | string | errorText | Method QString QCommandLineParser::errorText() | |
[const] | string | helpText | Method QString QCommandLineParser::helpText() | |
[const] | bool | isSet? | (string name) | Method bool QCommandLineParser::isSet(const QString &name) |
[const] | bool | isSet? | (const QCommandLineOption option) | Method bool QCommandLineParser::isSet(const QCommandLineOption &option) |
[const] | string[] | optionNames | Method QStringList QCommandLineParser::optionNames() | |
bool | parse | (string[] arguments) | Method bool QCommandLineParser::parse(const QStringList &arguments) | |
[const] | string[] | positionalArguments | Method QStringList QCommandLineParser::positionalArguments() | |
void | process | (string[] arguments) | Method void QCommandLineParser::process(const QStringList &arguments) | |
void | process | (const QCoreApplication app) | Method void QCommandLineParser::process(const QCoreApplication &app) | |
void | setApplicationDescription | (string description) | Method void QCommandLineParser::setApplicationDescription(const QString &description) | |
void | setOptionsAfterPositionalArgumentsMode | (const QCommandLineParser_OptionsAfterPositionalArgumentsMode mode) | Method void QCommandLineParser::setOptionsAfterPositionalArgumentsMode(QCommandLineParser::OptionsAfterPositionalArgumentsMode mode) | |
void | setSingleDashWordOptionMode | (const QCommandLineParser_SingleDashWordOptionMode parsingMode) | Method void QCommandLineParser::setSingleDashWordOptionMode(QCommandLineParser::SingleDashWordOptionMode parsingMode) | |
void | showHelp | (int exitCode = 0) | Method void QCommandLineParser::showHelp(int exitCode) | |
void | showVersion | Method void QCommandLineParser::showVersion() | ||
[const] | string[] | unknownOptionNames | Method QStringList QCommandLineParser::unknownOptionNames() | |
[const] | string | value | (string name) | Method QString QCommandLineParser::value(const QString &name) |
[const] | string | value | (const QCommandLineOption option) | Method QString QCommandLineParser::value(const QCommandLineOption &option) |
[const] | string[] | values | (string name) | Method QStringList QCommandLineParser::values(const QString &name) |
[const] | string[] | values | (const QCommandLineOption option) | Method QStringList QCommandLineParser::values(const QCommandLineOption &option) |
[static,const] | QCommandLineParser_SingleDashWordOptionMode | ParseAsCompactedShortOptions | Enum constant QCommandLineParser::ParseAsCompactedShortOptions | |
[static,const] | QCommandLineParser_SingleDashWordOptionMode | ParseAsLongOptions | Enum constant QCommandLineParser::ParseAsLongOptions | |
[static,const] | QCommandLineParser_OptionsAfterPositionalArgumentsMode | ParseAsOptions | Enum constant QCommandLineParser::ParseAsOptions | |
[static,const] | QCommandLineParser_OptionsAfterPositionalArgumentsMode | ParseAsPositionalArguments | Enum constant QCommandLineParser::ParseAsPositionalArguments | |
string | tr | (string sourceText, string disambiguation = nullptr, int n = -1) | Static method QString QCommandLineParser::tr(const char *sourceText, const char *disambiguation, int n) | |
string | trUtf8 | (string sourceText, string disambiguation = nullptr, int n = -1) | Static method QString QCommandLineParser::trUtf8(const char *sourceText, const char *disambiguation, int n) |
void | create | Use of this method is deprecated. Use _create instead | ||
void | destroy | Use of this method is deprecated. Use _destroy instead | ||
[const] | bool | destroyed? | Use of this method is deprecated. Use _destroyed? instead | |
[const] | bool | is_const_object? | Use of this method is deprecated. Use _is_const_object? instead |
ParseAsCompactedShortOptions | Signature: [static,const] QCommandLineParser_SingleDashWordOptionMode ParseAsCompactedShortOptions Description: Enum constant QCommandLineParser::ParseAsCompactedShortOptions Python specific notes: |
ParseAsLongOptions | Signature: [static,const] QCommandLineParser_SingleDashWordOptionMode ParseAsLongOptions Description: Enum constant QCommandLineParser::ParseAsLongOptions Python specific notes: |
ParseAsOptions | Signature: [static,const] QCommandLineParser_OptionsAfterPositionalArgumentsMode ParseAsOptions Description: Enum constant QCommandLineParser::ParseAsOptions Python specific notes: |
ParseAsPositionalArguments | Signature: [static,const] QCommandLineParser_OptionsAfterPositionalArgumentsMode ParseAsPositionalArguments Description: Enum constant QCommandLineParser::ParseAsPositionalArguments Python specific notes: |
_const_cast | Signature: [const] QCommandLineParser ptr _const_cast Description: Returns a non-const reference to self. Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects. This method has been introduced in version 0.29.6. |
_create | Signature: void _create Description: Ensures the C++ object is created Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
_destroy | Signature: void _destroy Description: Explicitly destroys the object Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
_destroyed? | Signature: [const] bool _destroyed? Description: Returns a value indicating whether the object was already destroyed This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
_is_const_object? | Signature: [const] bool _is_const_object? Description: Returns a value indicating whether the reference is a const reference This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
_manage | Signature: void _manage Description: Marks the object as managed by the script side. After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required. Usually it's not required to call this method. It has been introduced in version 0.24. |
_unmanage | Signature: void _unmanage Description: Marks the object as no longer owned by the script side. Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur. Usually it's not required to call this method. It has been introduced in version 0.24. |
addHelpOption | Signature: QCommandLineOption addHelpOption Description: Method QCommandLineOption QCommandLineParser::addHelpOption() |
addOption | Signature: bool addOption (const QCommandLineOption commandLineOption) Description: Method bool QCommandLineParser::addOption(const QCommandLineOption &commandLineOption) |
addOptions | Signature: bool addOptions (QCommandLineOption[] options) Description: Method bool QCommandLineParser::addOptions(const QList<QCommandLineOption> &options) |
addPositionalArgument | Signature: void addPositionalArgument (string name, string description, string syntax = QString()) Description: Method void QCommandLineParser::addPositionalArgument(const QString &name, const QString &description, const QString &syntax) |
addVersionOption | Signature: QCommandLineOption addVersionOption Description: Method QCommandLineOption QCommandLineParser::addVersionOption() |
applicationDescription | Signature: [const] string applicationDescription Description: Method QString QCommandLineParser::applicationDescription() Python specific notes: |
applicationDescription= | Signature: void applicationDescription= (string description) Description: Method void QCommandLineParser::setApplicationDescription(const QString &description) Python specific notes: |
clearPositionalArguments | Signature: void clearPositionalArguments Description: Method void QCommandLineParser::clearPositionalArguments() |
create | Signature: void create Description: Ensures the C++ object is created Use of this method is deprecated. Use _create instead Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created. |
destroy | Signature: void destroy Description: Explicitly destroys the object Use of this method is deprecated. Use _destroy instead Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing. |
destroyed? | Signature: [const] bool destroyed? Description: Returns a value indicating whether the object was already destroyed Use of this method is deprecated. Use _destroyed? instead This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself. |
errorText | Signature: [const] string errorText Description: Method QString QCommandLineParser::errorText() |
helpText | Signature: [const] string helpText Description: Method QString QCommandLineParser::helpText() |
isSet? | (1) Signature: [const] bool isSet? (string name) Description: Method bool QCommandLineParser::isSet(const QString &name) |
(2) Signature: [const] bool isSet? (const QCommandLineOption option) Description: Method bool QCommandLineParser::isSet(const QCommandLineOption &option) | |
is_const_object? | Signature: [const] bool is_const_object? Description: Returns a value indicating whether the reference is a const reference Use of this method is deprecated. Use _is_const_object? instead This method returns true, if self is a const reference. In that case, only const methods may be called on self. |
new | Signature: [static] new QCommandLineParser new Description: Constructor QCommandLineParser::QCommandLineParser() This method creates an object of class QCommandLineParser. Python specific notes: |
optionNames | Signature: [const] string[] optionNames Description: Method QStringList QCommandLineParser::optionNames() |
parse | Signature: bool parse (string[] arguments) Description: Method bool QCommandLineParser::parse(const QStringList &arguments) |
positionalArguments | Signature: [const] string[] positionalArguments Description: Method QStringList QCommandLineParser::positionalArguments() |
process | (1) Signature: void process (string[] arguments) Description: Method void QCommandLineParser::process(const QStringList &arguments) |
(2) Signature: void process (const QCoreApplication app) Description: Method void QCommandLineParser::process(const QCoreApplication &app) | |
setApplicationDescription | Signature: void setApplicationDescription (string description) Description: Method void QCommandLineParser::setApplicationDescription(const QString &description) Python specific notes: |
setOptionsAfterPositionalArgumentsMode | Signature: void setOptionsAfterPositionalArgumentsMode (const QCommandLineParser_OptionsAfterPositionalArgumentsMode mode) Description: Method void QCommandLineParser::setOptionsAfterPositionalArgumentsMode(QCommandLineParser::OptionsAfterPositionalArgumentsMode mode) |
setSingleDashWordOptionMode | Signature: void setSingleDashWordOptionMode (const QCommandLineParser_SingleDashWordOptionMode parsingMode) Description: Method void QCommandLineParser::setSingleDashWordOptionMode(QCommandLineParser::SingleDashWordOptionMode parsingMode) |
showHelp | Signature: void showHelp (int exitCode = 0) Description: Method void QCommandLineParser::showHelp(int exitCode) |
showVersion | Signature: void showVersion Description: Method void QCommandLineParser::showVersion() |
tr | Signature: [static] string tr (string sourceText, string disambiguation = nullptr, int n = -1) Description: Static method QString QCommandLineParser::tr(const char *sourceText, const char *disambiguation, int n) This method is static and can be called without an instance. |
trUtf8 | Signature: [static] string trUtf8 (string sourceText, string disambiguation = nullptr, int n = -1) Description: Static method QString QCommandLineParser::trUtf8(const char *sourceText, const char *disambiguation, int n) This method is static and can be called without an instance. |
unknownOptionNames | Signature: [const] string[] unknownOptionNames Description: Method QStringList QCommandLineParser::unknownOptionNames() |
value | (1) Signature: [const] string value (string name) Description: Method QString QCommandLineParser::value(const QString &name) |
(2) Signature: [const] string value (const QCommandLineOption option) Description: Method QString QCommandLineParser::value(const QCommandLineOption &option) | |
values | (1) Signature: [const] string[] values (string name) Description: Method QStringList QCommandLineParser::values(const QString &name) |
(2) Signature: [const] string[] values (const QCommandLineOption option) Description: Method QStringList QCommandLineParser::values(const QCommandLineOption &option) |