16#define COMMAND_OPTION_TYPE 1
17#define COMMAND_FLAG_TYPE 2
18#define FILE_OPTION_TYPE 3
19#define FILE_FLAG_TYPE 4
22#define DEFAULT_MAXOPTS 10
23#define MAX_LONG_PREFIX_LENGTH 2
25#define DEFAULT_MAXUSAGE 3
26#define DEFAULT_MAXHELP 10
28#define TRUE_FLAG "true"
38 AnyOption(
int maxoptions ,
int maxcharoptions);
99 void setOption(
const char *opt_string ,
char opt_char );
100 void setFlag(
const char *opt_string );
102 void setFlag(
const char *opt_string ,
char opt_char );
115 void setFileOption(
const char *opt_string ,
char opt_char );
118 void setFileFlag(
const char *opt_string ,
char opt_char );
140 char *
getValue(
const char *_option );
141 bool getFlag(
const char *_option );
223 void init(
int maxopt,
int maxcharopt );
233 bool setValue(
const char *option ,
char *value );
235 bool setValue(
char optchar ,
char *value);
238 void addOption(
const char* option ,
int type );
239 void addOption(
char optchar ,
int type );
255 char *
readFile(
const char* fname );
258 char *
chomp(
char *str );
#define MAX_LONG_PREFIX_LENGTH
bool getFlag(const char *_option)
void processLine(char *theline, int length)
void addUsageError(const char *line)
void setFileFlag(const char *opt_string)
void setFileDelimiterChar(char _delimiter)
void useFiileName(const char *_filename)
bool setValue(const char *option, char *value)
void setOption(const char *opt_string)
void valuePairs(char *type, char *value)
char parsePOSIX(char *arg)
void setCommandPrefixChar(char _prefix)
void addOption(const char *option, int type)
void setCommandLongPrefix(char *_prefix)
bool consumeFile(char *buffer)
void processCommandArgs()
char * getArgv(int index)
void setCommandOption(const char *opt_string)
bool findFlag(char *value)
void setFileCommentChar(char _comment)
void setFileOption(const char *opt_string)
void autoUsagePrint(bool flag)
char long_opt_prefix[MAX_LONG_PREFIX_LENGTH+1]
void setFlag(const char *opt_string)
void addOptionError(const char *opt)
char * getValue(const char *_option)
void setCommandFlag(const char *opt_string)
bool doubleUsageStorage()
void addUsage(const char *line)
void justValue(char *value)
void useCommandArgs(int _argc, char **_argv)
bool setFlagOn(const char *option)