CLI for C++ Project Page | CLI for C++ Home Page |
#include <Options.h>
Public Types | |
typedef std::vector< Option > | Vector |
Public Member Functions | |
Options () | |
Options (const Options &) | |
Options & | operator= (const Options &) |
~Options () | |
void | addOption (const Option &option) |
Add the specified option to the container. | |
void | addOption (const char *const option, const bool hasArg, const char *const usage) |
Create and add option a new option to the container. | |
void | addOption (const char *const option, const char *const longOption, const bool hasArg, const char *const usage) |
bool | hasOption (const char *const which) const |
const Option & | getOption (const char *const which) const |
std::string | toString () const |
const Vector & | operator() () const |
Create an instance of this container to define the options for your program.
|
|
|
|
|
|
|
|
|
|
|
Create and add option a new option to the container. Use this method to create an option with a short option switch only.
|
|
Add the specified option to the container.
|
|
|
|
|
|
|
|
|
|
|
hosts this site. |
Send comments to: John Poplett |