Simulacrum  1.2
Public Member Functions | List of all members
Simulacrum::parseArgs Class Reference

#include <parseArgs.h>

Collaboration diagram for Simulacrum::parseArgs:
Collaboration graph

Public Member Functions

 parseArgs ()
 
virtual ~parseArgs ()
 
void doParseArgs (int argc, char *argv[])
 
void addArg (const std::string &switchstr, const std::string &name, const std::string &defvalue, bool isswitch, bool defset, bool madatory, bool gobbler, const std::string &helpstr)
 
void addPositional (const std::string &name, const std::string &defvalue, bool madatory, bool gobbler, const std::string &helpstr)
 
parsedArggetArg (const std::string &, bool check=true)
 
parsedArggetPositional (unsigned, bool check=true)
 
unsigned positonals ()
 
unsigned switches ()
 
void setHelp (const std::string &)
 
void setName (const std::string &)
 
void setPreamble (const std::string &)
 
void writeHelp ()
 

Constructor & Destructor Documentation

◆ parseArgs()

parseArgs::parseArgs ( )

◆ ~parseArgs()

parseArgs::~parseArgs ( )
virtual

Member Function Documentation

◆ addArg()

void parseArgs::addArg ( const std::string &  switchstr,
const std::string &  name,
const std::string &  defvalue,
bool  isswitch,
bool  defset,
bool  madatory,
bool  gobbler,
const std::string &  helpstr 
)

◆ addPositional()

void parseArgs::addPositional ( const std::string &  name,
const std::string &  defvalue,
bool  madatory,
bool  gobbler,
const std::string &  helpstr 
)

◆ doParseArgs()

void parseArgs::doParseArgs ( int  argc,
char *  argv[] 
)

◆ getArg()

parsedArg & parseArgs::getArg ( const std::string &  name,
bool  check = true 
)

◆ getPositional()

parsedArg & parseArgs::getPositional ( unsigned  pos,
bool  check = true 
)

◆ positonals()

unsigned int parseArgs::positonals ( )

◆ setHelp()

void parseArgs::setHelp ( const std::string &  newhelp)

◆ setName()

void parseArgs::setName ( const std::string &  newname)

◆ setPreamble()

void parseArgs::setPreamble ( const std::string &  newpre)

◆ switches()

unsigned int parseArgs::switches ( )

◆ writeHelp()

void parseArgs::writeHelp ( )

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