VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes
DtCmdLine::XorHandler Class Reference

This class handles lists of Arg's that are to be XOR'd on the command line. More...

+ Collaboration diagram for DtCmdLine::XorHandler:

Public Member Functions

 XorHandler ()
 Constructor. More...
 
void add (std::vector< Arg * > &ors)
 Add a list of Arg*'s that will be orred together. More...
 
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. More...
 
std::string shortUsage ()
 Returns the XOR specific short usage. More...
 
void printLongUsage (std::ostream &os)
 Prints the XOR specific long usage. More...
 
bool contains (const Arg *a)
 Simply checks whether the Arg is contained in one of the arg lists. More...
 
std::vector< std::vector< Arg * > > & getXorList ()
 

Protected Attributes

std::vector< std::vector< Arg * > > _orList
 The list of of lists of Arg's to be or'd together. More...
 

Detailed Description

This class handles lists of Arg's that are to be XOR'd on the command line.

This is used by CmdLine and you shouldn't ever use it.

Constructor & Destructor Documentation

DtCmdLine::XorHandler::XorHandler ( )
inline

Constructor.

Does nothing.

Member Function Documentation

void DtCmdLine::XorHandler::add ( std::vector< Arg * > &  ors)
inline

Add a list of Arg*'s that will be orred together.

Parameters
ors- list of Arg* that will be xor'd.

Referenced by DtCmdLine::CmdLine::xorAdd().

int DtCmdLine::XorHandler::check ( const Arg a)
inline

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.

If the Arg matches, then it also sets the rest of the Arg's in the list. You shouldn't use this.

Parameters
a- The Arg to be checked.

References DtCmdLine::Arg::isRequired().

bool DtCmdLine::XorHandler::contains ( const Arg a)
inline

Simply checks whether the Arg is contained in one of the arg lists.

Parameters
a- The Arg to be checked.

Referenced by DtCmdLine::StdOutput::_longUsage(), DtCmdLine::StdOutput::_shortUsage(), and DtCmdLine::DocBookOutput::usage().

std::vector< std::vector< Arg * > > & DtCmdLine::XorHandler::getXorList ( )
inline
void DtCmdLine::XorHandler::printLongUsage ( std::ostream &  os)

Prints the XOR specific long usage.

Parameters
os- Stream to print to.
std::string DtCmdLine::XorHandler::shortUsage ( )

Returns the XOR specific short usage.

Member Data Documentation

std::vector< std::vector<Arg*> > DtCmdLine::XorHandler::_orList
protected

The list of of lists of Arg's to be or'd together.


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

Document ID: Generated on Mon Apr 25 03:39:01 EDT 2022 from SVN revision 242502
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)