#include <parsecl.hpp>
Definition at line 20 of file parsecl.hpp.
Public Member Functions | |
CommandLine () | |
Constructor. | |
~CommandLine () | |
Destructor. | |
bool | parse (int argc, char **argv, std::ostream &err) |
Parses the command line arguments. | |
void | printUsage (std::ostream &out) const |
Prints the usage information to the supplied stream. | |
void | add (Option &opt) |
Adds a new option to the options. | |
Protected Attributes | |
const char * | name |
The name of the executable. | |
std::list< Option * > | options |
A list of the options available. |
|
Constructor.
Definition at line 323 of file parsecl.hpp. |
|
Destructor.
Definition at line 328 of file parsecl.hpp. |
|
Adds a new option to the options.
Definition at line 407 of file parsecl.hpp. References options. |
|
Parses the command line arguments.
Definition at line 338 of file parsecl.hpp. References Arak::Util::CommandLine::Option::_supplied, Arak::Util::CommandLine::Option::hasArg(), Arak::Util::CommandLine::Option::matches(), name, options, Arak::Util::CommandLine::Option::read(), Arak::Util::CommandLine::Option::required, and Arak::Util::CommandLine::Option::sflag. |
|
Prints the usage information to the supplied stream.
Definition at line 391 of file parsecl.hpp. References name, options, and Arak::Util::CommandLine::Option::printUsage(). |
|
The name of the executable.
Definition at line 310 of file parsecl.hpp. Referenced by CommandLine(), parse(), and printUsage(). |
|
A list of the options available. This class manages the memory used by these objects. Definition at line 316 of file parsecl.hpp. Referenced by add(), CommandLine(), parse(), and printUsage(). |