In file EO++.h:

class Flag : public Arg

A flag is a type of param that gets enabled if appears in the command line or disabled if it doesn't

Inheritance:


Public Methods

void disable( void )
Disables on the flag
void enable( void )
Enables on the flag
Flag(string _shortName="-h", string _longName="--help", string _description="Shows this help")
Construct an Flag
Flag(const Flag& _flag)
Copy constructor
const bool isEnabled( void )
Return true if the flag is enabled or false if it is not
virtual Arg::argType type( void )
Returns the type of the argument
virtual ~Flag()
Virtual destructor is needed

Inherited from Arg:

Public Classes

enum argType

Public Methods

const string& description( void )
const string& longName( void )
const string& shortName( void )

Public

enum argType

Documentation

A flag is a type of param that gets enabled if appears in the command line or disabled if it doesn't
Flag(string _shortName="-h", string _longName="--help", string _description="Shows this help")
Construct an Flag. Includes default values for vector
Parameters:
_shortName - Short name of the argument
_longName - Long name of the argument
_description - What the flag is useful for

Flag(const Flag& _flag)
Copy constructor
Parameters:
_flag - The source flag.

virtual ~Flag()
Virtual destructor is needed

virtual Arg::argType type( void )
Returns the type of the argument

void enable( void )
Enables on the flag

void disable( void )
Disables on the flag

const bool isEnabled( void )
Return true if the flag is enabled or false if it is not


This class has no child classes.

alphabetic index hierarchy of classes


BinOp