BASIS  r3148
basis::CmdLine::XorHandler Class Reference

Handles lists of Arg's that are to be XOR'd on the command-line. More...

#include <CmdLine.h>

List of all members.

Public Member Functions

int check (const Arg *a)
 Checks whether the specified Arg is in one of the xor lists.
 XorHandler ()
 Constructor.

Detailed Description

Handles lists of Arg's that are to be XOR'd on the command-line.

This subclass of the TCLAP::XorHandler overloads the check() method such that XOR'd arguments where none of the arguments is required are handled correctly. The TCLA::XorHandler and TCLAP::CmdLine implementations imply that all XOR'd arguments are required, i.e., that one of the mutual exclusive arguments need to be specified. The sbia::basis::XorHandler and sbia::basis::CmdLine implementations, on the other side, do not require that any of the XOR'd arguments be given on the command-line if none of the XOR'd arguments is required.

Definition at line 51 of file CmdLine.h.


Constructor & Destructor Documentation

basis::CmdLine::XorHandler::XorHandler ( ) [inline]

Constructor.

Definition at line 58 of file CmdLine.h.


Member Function Documentation

int basis::CmdLine::XorHandler::check ( const Arg a) [inline]

Checks whether the specified Arg is in one of the xor lists.

If the argument does match one, this function returns the size of the xor list that the Arg matched if the Arg is required. If the Arg matches, then it also sets the rest of the Arg's in the list.

Parameters:
aThe Arg to be checked.

Definition at line 69 of file CmdLine.h.


The documentation for this class was generated from the following file: