#import <copt.h>
Public Member Functions | |
| (id) | initOptNoArg:longName:optDesc: |
| Initialize COpt instance for no arg option. | |
| (id) | initOptHasStr:longName:optDesc:argDesc: |
| Initialize COpt instance which has string argument. | |
| (id) | initOptHasNum:longName:optDesc:argDesc: |
| Initialize COpt instance which has number argument. | |
| (void) | dealloc |
| Release resource for the object. | |
| (int) | optId |
| Get option id. | |
| (void) | setGivenFlag: |
| Set "is_given" flag in object. | |
| (BOOL) | isGiven |
| Return true when this option is found in command line. | |
| (NSString *) | longName |
| Get long name of the option. | |
| (char) | shortName |
| Get short name of the option. | |
| (COptArgType) | argType |
| Get type of argument which is required by this option. | |
| (void) | setStrArg: |
| Set string as an argument. | |
| (NSString *) | strArg |
| Get argument of string option. | |
| (void) | setIntArg: |
| Set integer as an argument. | |
| (int) | intArg |
| Get argument of integer option. | |
| (NSString *) | optDescription |
| Get descriotion string for option. | |
| (NSString *) | stringForOptionsForHelpMessage |
| Make help message used for left section. | |
| (void) | print: |
| Print the content of option data. | |
Protected Attributes | |
| uint_t | opt_id |
| BOOL | is_given |
| NSString * | long_name |
| char | short_name |
| COptArgType | arg_type |
| union { | |
| NSString * str_arg | |
| int int_arg | |
| } | arg_data |
| NSString * | opt_desc |
| NSString * | arg_desc |
|
|
Get type of argument which is required by this option.
|
|
|
Release resource for the object.
|
|
|
Initialize COpt instance which has number argument.
|
|
|
Initialize COpt instance which has string argument.
|
|
|
Initialize COpt instance for no arg option.
|
|
|
Get argument of integer option.
|
|
|
Return true when this option is found in command line.
|
|
|
Get long name of the option.
|
|
|
Get descriotion string for option.
|
|
|
Get option id.
|
|
|
Print the content of option data.
|
|
|
Set "is_given" flag in object.
|
|
|
Set integer as an argument.
|
|
|
Set string as an argument.
|
|
|
Get short name of the option.
|
|
|
Get argument of string option.
|
|
|
Make help message used for left section.
|
|
|
Content of argument |
|
|
Description for the argument (used by help option) |
|
|
Type of argument |
|
|
Integer to keep int arg option |
|
|
is_given Flag means the option is given or not. |
|
|
Long option name which started by '--' |
|
|
Description for the option (used by help option) |
|
|
Option ID |
|
|
Short option name which started by '-' |
|
|
String to keep str arg option |
1.3.6