CmdLine Namespace Reference


Classes

class  E_Exception
class  E_MaxMin
class  E_NoValue
class  E_OutOfRange
class  E_OutOfRange< std::string >
class  E_OutOfRange< char >
class  E_Duplicate
class  Option
class  OptionsType
class  OptionsINT
class  OptionsFLOAT
class  OptionsBOOL
class  OptionsCHAR
class  OptionsSTRING
class  Parser

Typedefs

typedef long double FLOAT
typedef long INT

Enumerations

enum  {
  NONE = 0, SILENT = 1, OUT_OF_RANGE = 2, NO_VALUE = 4,
  DUPLICATE = 8, FIRSTONLY = 16
}

Functions

std::ostream & operator<< (std::ostream &o, const E_Exception &e)


Typedef Documentation

typedef long double CmdLine::FLOAT

Default type for the float options

typedef long CmdLine::INT

Default type for the integer options


Enumeration Type Documentation

anonymous enum

Enumerator:
NONE  Alias to zero (0)
SILENT  if set, don't print warnings to stderr.
OUT_OF_RANGE  Throw an out of range exception if an option value is out of its defined range.
NO_VALUE  Throw an error when an option is found in command-line but its value is either incompatible or unspecified.
DUPLICATE  Throw an error when an option is declared twice (or more) times in command-line.
FIRSTONLY  Pick up the first declaration only (discards all duplicates).


Function Documentation

std::ostream& CmdLine::operator<< ( std::ostream &  o,
const E_Exception e 
) [inline]