29 #define SRECORD_ARGLEX_END_MARKER {0,0}
146 static
bool compare(const
char *formal, const
char *actual);
166 std::list<std::
string> arguments;
178 std::
string value_string_;
192 typedef std::vector<const
table_ty *> table_ptr_vec_t;
200 table_ptr_vec_t tables;
207 std::list<std::
string> pushback;
291 void help(
const char * = 0)
const;
329 mutable const char *usage_tail_;
335 const char *usage_tail_get()
const;
349 void read_arguments_file(
const char *filename);
352 typedef std::list<std::string> deprecated_options_t;
359 deprecated_options_t deprecated_options;
369 void check_deprecated(
const std::string &actual_use)
const;
The arglex class is used to implement a lexical analizer for command line arguments.
const char * token_name(int tok) const
The token_name method is used to turn a token type number into an equivalent string.
void fatal_error(const char *fmt,...) FORMAT_PRINTF(2
The fatal_error method may be used to print a fatal error message, and then exit via the usage() meth...
const char * token_name() const
The token_name method is used to obtain the name of the current token.
void version() const
The version method is used to print a version message.
long value_number() const
The value_number method is used to get the numeric value of the current token.
int token_cur() const
The token_cur method is used to get the type of the current token.
void usage() const
The usage method is used to print a usage summary.
static std::string abbreviate(const char *text)
The abbreviate class method is used to take an option's long name, and turn it into the minimum possi...
int token_next(void)
The token_next method is used to advance to the next command line option and determine what type of t...
virtual ~arglex()
The destructor.
void bad_argument() const
The bad_argument method is used to print an error message when the current token is inappropriate,...
void usage_tail_set(const char *)
The usage_tail_set method is used to set the end of the command line to be printed as part of the usa...
void static bool compare(const char *formal, const char *actual)
The compare class method is used to compare a command line string with a formal spec of the option,...
void help(const char *=0) const
The help method is used to print a help message.
virtual void default_command_line_processing(void)
The default_command_line_processing method is used to process command line arguments not handled by t...
void deprecated_option(const std::string &formal_name)
The deprecated_option method is used to nominate option patterns that are deprected.
const std::string & value_string() const
The value_string method is used to get the string value of the current token.
void table_set(const table_ty *)
The table_set method is used to append more command line token tables to the list of tables to be sca...
int token_first(void)
The token_first method is used to fetch the fisrt command like token (rather than use the token_next ...
void license() const
The license method is used to print the license conditions of the program.
void test_ambiguous(void) const
The test_ambiguous method is for debugging.
The table_ty struct is used to repesent a row of a commandline option table, used to match option nam...
const char * name
The name of the commen line option.
int token
The corresponding token.
The value_ty struct is used to represent the value of a command line argument.
long alv_number
The integer vale of the token.
const char * alv_string
The literal string value of the token.