#include <XorHandler.h>
Public Member Functions | |
| XorHandler () | |
| Constructor. | |
| void | add (std::vector< Arg * > &ors) |
| Add a list of Arg*'s that will be orred together. | |
| int | check (const Arg *a) |
| Checks whether the specified Arg is in one of the xor lists and if it does match one, returns the size of the xor list that the Arg matched. | |
| std::string | shortUsage () |
| Returns the XOR specific short usage. | |
| void | printLongUsage (std::ostream &os) |
| Prints the XOR specific long usage. | |
| bool | contains (const Arg *a) |
| Simply checks whether the Arg is contained in one of the arg lists. | |
Protected Attributes | |
| std::vector< std::vector< Arg * > > | _orList |
| The list of of lists of Arg's to be or'd together. | |
This is used by CmdLine and you shouldn't ever use it.
| TCLAP::XorHandler::XorHandler | ( | ) | [inline] |
Constructor.
Does nothing.
| void TCLAP::XorHandler::add | ( | std::vector< Arg * > & | ors | ) | [inline] |
Add a list of Arg*'s that will be orred together.
| ors | - list of Arg* that will be xor'd. |
| int TCLAP::XorHandler::check | ( | const Arg * | a | ) | [inline] |
| bool TCLAP::XorHandler::contains | ( | const Arg * | a | ) | [inline] |
| void TCLAP::XorHandler::printLongUsage | ( | std::ostream & | os | ) | [inline] |
Prints the XOR specific long usage.
| os | - Stream to print to. |
| std::string TCLAP::XorHandler::shortUsage | ( | ) | [inline] |
Returns the XOR specific short usage.
std::vector< std::vector<Arg*> > TCLAP::XorHandler::_orList [protected] |
The list of of lists of Arg's to be or'd together.
1.4.7