MiniballSort
Loading...
Searching...
No Matches
CommandLineInterface Class Reference

#include <CommandLineInterface.hh>

Public Member Functions

 CommandLineInterface ()
 
 ~CommandLineInterface ()
 
bool CheckFlags (unsigned int, char *[], const bool &Debug=false)
 
void Add (const char *)
 
void Add (const char *, const char *, bool *)
 
void Add (const char *, const char *, char **)
 
void Add (const char *, const char *, string *)
 
void Add (const char *, const char *, int *)
 
void Add (const char *, const char *, float *)
 
void Add (const char *, const char *, size_t *)
 
void Add (const char *, const char *, long long *)
 
void Add (const char *, const char *, double *, double factor=1.)
 
void Add (const char *, const char *, vector< char * > *)
 
void Add (const char *, const char *, vector< string > *)
 
void Add (const char *, const char *, vector< int > *)
 
void Add (const char *, const char *, vector< long long > *)
 
void Add (const char *, const char *, vector< double > *, double factor=1.)
 

Private Attributes

unsigned int fMaximumFlagLength
 
vector< string > fFlags
 
vector< void * > fValues
 
unsigned int fMaximumTypeLength
 
vector< string > fTypes
 
unsigned int fMaximumCommentLength
 
vector< string > fComments
 
vector< double > fFactors
 

Friends

ostream & operator<< (ostream &os, const CommandLineInterface &obj)
 

Detailed Description

Definition at line 13 of file CommandLineInterface.hh.

Constructor & Destructor Documentation

◆ CommandLineInterface()

CommandLineInterface::CommandLineInterface ( )

Definition at line 5 of file CommandLineInterface.cc.

◆ ~CommandLineInterface()

CommandLineInterface::~CommandLineInterface ( )
inline

Definition at line 17 of file CommandLineInterface.hh.

Member Function Documentation

◆ Add() [1/14]

void CommandLineInterface::Add ( const char * comment)

Definition at line 335 of file CommandLineInterface.cc.

Referenced by main().

◆ Add() [2/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
bool * value )

Definition at line 346 of file CommandLineInterface.cc.

◆ Add() [3/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
char ** value )

Definition at line 361 of file CommandLineInterface.cc.

◆ Add() [4/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
double * value,
double factor = 1. )

Definition at line 451 of file CommandLineInterface.cc.

◆ Add() [5/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
float * value )

Definition at line 406 of file CommandLineInterface.cc.

◆ Add() [6/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
int * value )

Definition at line 391 of file CommandLineInterface.cc.

◆ Add() [7/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
long long * value )

Definition at line 436 of file CommandLineInterface.cc.

◆ Add() [8/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
size_t * value )

Definition at line 421 of file CommandLineInterface.cc.

◆ Add() [9/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
string * value )

Definition at line 376 of file CommandLineInterface.cc.

◆ Add() [10/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
vector< char * > * value )

Definition at line 466 of file CommandLineInterface.cc.

◆ Add() [11/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
vector< double > * value,
double factor = 1. )

Definition at line 526 of file CommandLineInterface.cc.

◆ Add() [12/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
vector< int > * value )

Definition at line 496 of file CommandLineInterface.cc.

◆ Add() [13/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
vector< long long > * value )

Definition at line 511 of file CommandLineInterface.cc.

◆ Add() [14/14]

void CommandLineInterface::Add ( const char * flag,
const char * comment,
vector< string > * value )

Definition at line 481 of file CommandLineInterface.cc.

◆ CheckFlags()

bool CommandLineInterface::CheckFlags ( unsigned int argc,
char * argv[],
const bool & Debug = false )

Definition at line 17 of file CommandLineInterface.cc.

Friends And Related Symbol Documentation

◆ operator<<

ostream & operator<< ( ostream & os,
const CommandLineInterface & obj )
friend

Definition at line 257 of file CommandLineInterface.cc.

Member Data Documentation

◆ fComments

vector<string> CommandLineInterface::fComments
private

◆ fFactors

vector<double> CommandLineInterface::fFactors
private

Definition at line 48 of file CommandLineInterface.hh.

Referenced by Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), and CheckFlags().

◆ fFlags

vector<string> CommandLineInterface::fFlags
private

◆ fMaximumCommentLength

unsigned int CommandLineInterface::fMaximumCommentLength
private

Definition at line 46 of file CommandLineInterface.hh.

Referenced by Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), Add(), and CommandLineInterface().

◆ fMaximumFlagLength

unsigned int CommandLineInterface::fMaximumFlagLength
private

◆ fMaximumTypeLength

unsigned int CommandLineInterface::fMaximumTypeLength
private

◆ fTypes

vector<string> CommandLineInterface::fTypes
private

◆ fValues

vector<void*> CommandLineInterface::fValues
private

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