mirror of
https://github.com/mappu/miqt.git
synced 2024-12-22 17:08:38 +00:00
63 lines
4.2 KiB
C++
63 lines
4.2 KiB
C++
#ifndef GEN_QCOMMANDLINEPARSER_H
|
|
#define GEN_QCOMMANDLINEPARSER_H
|
|
|
|
#include <stdbool.h>
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
class QCommandLineOption;
|
|
class QCommandLineParser;
|
|
class QCoreApplication;
|
|
#else
|
|
typedef struct QCommandLineOption QCommandLineOption;
|
|
typedef struct QCommandLineParser QCommandLineParser;
|
|
typedef struct QCoreApplication QCoreApplication;
|
|
#endif
|
|
|
|
QCommandLineParser* QCommandLineParser_new();
|
|
void QCommandLineParser_Tr(const char* sourceText, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_TrUtf8(const char* sourceText, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_SetSingleDashWordOptionMode(QCommandLineParser* self, uintptr_t parsingMode);
|
|
void QCommandLineParser_SetOptionsAfterPositionalArgumentsMode(QCommandLineParser* self, uintptr_t mode);
|
|
bool QCommandLineParser_AddOption(QCommandLineParser* self, QCommandLineOption* commandLineOption);
|
|
bool QCommandLineParser_AddOptions(QCommandLineParser* self, QCommandLineOption** options, size_t options_len);
|
|
QCommandLineOption* QCommandLineParser_AddVersionOption(QCommandLineParser* self);
|
|
QCommandLineOption* QCommandLineParser_AddHelpOption(QCommandLineParser* self);
|
|
void QCommandLineParser_SetApplicationDescription(QCommandLineParser* self, const char* description, size_t description_Strlen);
|
|
void QCommandLineParser_ApplicationDescription(const QCommandLineParser* self, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_AddPositionalArgument(QCommandLineParser* self, const char* name, size_t name_Strlen, const char* description, size_t description_Strlen);
|
|
void QCommandLineParser_ClearPositionalArguments(QCommandLineParser* self);
|
|
void QCommandLineParser_Process(QCommandLineParser* self, char** arguments, uint64_t* arguments_Lengths, size_t arguments_len);
|
|
void QCommandLineParser_ProcessWithApp(QCommandLineParser* self, QCoreApplication* app);
|
|
bool QCommandLineParser_Parse(QCommandLineParser* self, char** arguments, uint64_t* arguments_Lengths, size_t arguments_len);
|
|
void QCommandLineParser_ErrorText(const QCommandLineParser* self, char** _out, int* _out_Strlen);
|
|
bool QCommandLineParser_IsSet(const QCommandLineParser* self, const char* name, size_t name_Strlen);
|
|
void QCommandLineParser_Value(const QCommandLineParser* self, const char* name, size_t name_Strlen, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_Values(const QCommandLineParser* self, const char* name, size_t name_Strlen, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
bool QCommandLineParser_IsSetWithOption(const QCommandLineParser* self, QCommandLineOption* option);
|
|
void QCommandLineParser_ValueWithOption(const QCommandLineParser* self, QCommandLineOption* option, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_ValuesWithOption(const QCommandLineParser* self, QCommandLineOption* option, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QCommandLineParser_PositionalArguments(const QCommandLineParser* self, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QCommandLineParser_OptionNames(const QCommandLineParser* self, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QCommandLineParser_UnknownOptionNames(const QCommandLineParser* self, char*** _out, int** _out_Lengths, size_t* _out_len);
|
|
void QCommandLineParser_HelpText(const QCommandLineParser* self, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_Tr2(const char* sourceText, const char* disambiguation, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_Tr3(const char* sourceText, const char* disambiguation, int n, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_TrUtf82(const char* sourceText, const char* disambiguation, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_TrUtf83(const char* sourceText, const char* disambiguation, int n, char** _out, int* _out_Strlen);
|
|
void QCommandLineParser_AddPositionalArgument3(QCommandLineParser* self, const char* name, size_t name_Strlen, const char* description, size_t description_Strlen, const char* syntax, size_t syntax_Strlen);
|
|
void QCommandLineParser_Delete(QCommandLineParser* self);
|
|
|
|
#ifdef __cplusplus
|
|
} /* extern C */
|
|
#endif
|
|
|
|
#endif
|