21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFString.h"
@class OFMapTable;
OF_ASSUME_NONNULL_BEGIN
/**
* @struct OFOptionsParserOption OFOptionsParser.h ObjFW/OFOptionsParser.h
*
* @brief An option which can be parsed by an @ref OFOptionsParser.
*/
typedef struct {
/** The short version (e.g. `-v`) of the option or `\0` for none. */
OFUnichar shortOption;
|
|
|
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#import "OFString.h"
@class OFMapTable;
OF_ASSUME_NONNULL_BEGIN
/**
* @struct OFOptionsParserOption OFOptionsParser.h ObjFW/ObjFW.h
*
* @brief An option which can be parsed by an @ref OFOptionsParser.
*/
typedef struct {
/** The short version (e.g. `-v`) of the option or `\0` for none. */
OFUnichar shortOption;
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
* An optional pointer to an `OFString *` that is set to the
* argument specified for the option or `nil` for no argument.
*/
OFString *__autoreleasing _Nullable *_Nullable argumentPtr;
} OFOptionsParserOption;
/**
* @class OFOptionsParser OFOptionsParser.h ObjFW/OFOptionsParser.h
*
* @brief A class for parsing the program options specified on the command line.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFOptionsParser: OFObject
{
OFOptionsParserOption *_options;
|
|
|
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
* An optional pointer to an `OFString *` that is set to the
* argument specified for the option or `nil` for no argument.
*/
OFString *__autoreleasing _Nullable *_Nullable argumentPtr;
} OFOptionsParserOption;
/**
* @class OFOptionsParser OFOptionsParser.h ObjFW/ObjFW.h
*
* @brief A class for parsing the program options specified on the command line.
*/
OF_SUBCLASSING_RESTRICTED
@interface OFOptionsParser: OFObject
{
OFOptionsParserOption *_options;
|