Whiteboard
An interface and tools for visualizing large and complex datasets
Public Member Functions | Private Attributes | List of all members
commandLineParser Class Reference

#include <CommandLineParser.h>

Public Member Functions

 commandLineParser (int argc, char **argv, const string &description="")
 
void SetDescription (const string &s)
 
template<typename T >
void registerArg (commandArg< T > &arg)
 
template<typename T >
void registerCompoundArg (commandArg< T > &arg)
 
bool parse ()
 
template<typename T >
string GetStringValueFor (commandArg< T > &keyArg)
 
template<typename T >
vector< string > GetCompoundStringValuesFor (commandArg< T > &keyArg)
 
double GetDoubleValueFor (commandArg< double > &keyArg)
 
int GetIntValueFor (commandArg< int > &keyArg)
 
bool GetBoolValueFor (commandArg< bool > &keyArg)
 
bool requestHelp ()
 
void showHelp ()
 

Private Attributes

int mArgc
 
char ** mArgv
 
stringstream mHelp
 
string mDesc
 
int mNumDefaults
 
int mNumArgs
 
multimap< string, string > mNameVal
 
set< string > mArgNames
 
set< string > mCArgNames
 

Constructor & Destructor Documentation

commandLineParser::commandLineParser ( int  argc,
char **  argv,
const string &  description = "" 
)
inline

Member Function Documentation

bool commandLineParser::GetBoolValueFor ( commandArg< bool > &  keyArg)
inline
template<typename T >
vector<string> commandLineParser::GetCompoundStringValuesFor ( commandArg< T > &  keyArg)
inline
double commandLineParser::GetDoubleValueFor ( commandArg< double > &  keyArg)
inline
int commandLineParser::GetIntValueFor ( commandArg< int > &  keyArg)
inline
template<typename T >
string commandLineParser::GetStringValueFor ( commandArg< T > &  keyArg)
inline
bool commandLineParser::parse ( )
inline
template<typename T >
void commandLineParser::registerArg ( commandArg< T > &  arg)
inline
template<typename T >
void commandLineParser::registerCompoundArg ( commandArg< T > &  arg)
inline
bool commandLineParser::requestHelp ( )
inline
void commandLineParser::SetDescription ( const string &  s)
inline
void commandLineParser::showHelp ( )
inline

Member Data Documentation

int commandLineParser::mArgc
private
set<string> commandLineParser::mArgNames
private
char** commandLineParser::mArgv
private
set<string> commandLineParser::mCArgNames
private
string commandLineParser::mDesc
private
stringstream commandLineParser::mHelp
private
multimap<string,string> commandLineParser::mNameVal
private
int commandLineParser::mNumArgs
private
int commandLineParser::mNumDefaults
private

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