Public Member Functions | List of all members
openfluid::utils::CommandLineParser Class Reference

#include <utils/CommandLineParser.hpp>

Public Member Functions

 CommandLineParser ()
 
 CommandLineParser (const std::string &ProgramName, const std::string &HelpText)
 
const std::vector< std::string > & extraArgs () const
 
std::string getHelpText () const
 
std::string getProgramName () const
 
std::string getParsingMessage () const
 
std::string getActiveCommand () const
 
const CommandLineCommandcommand (const std::string &Name) const
 
void addCommand (const CommandLineCommand &Command)
 
void addOption (const CommandLineOption &Option)
 
bool parse (std::list< std::string > ArgValues)
 
bool parse (int ArgC, char **ArgV)
 
void reset ()
 
bool isHelpAsked ()
 
void printHelp (std::ostream &OutStm)
 
void printState (std::ostream &OutStm)
 

Constructor & Destructor Documentation

openfluid::utils::CommandLineParser::CommandLineParser ( )
inline
openfluid::utils::CommandLineParser::CommandLineParser ( const std::string &  ProgramName,
const std::string &  HelpText 
)
inline

Member Function Documentation

void openfluid::utils::CommandLineParser::addCommand ( const CommandLineCommand Command)
inline
void openfluid::utils::CommandLineParser::addOption ( const CommandLineOption Option)
inline
const CommandLineCommand& openfluid::utils::CommandLineParser::command ( const std::string &  Name) const
inline
const std::vector<std::string>& openfluid::utils::CommandLineParser::extraArgs ( ) const
inline
std::string openfluid::utils::CommandLineParser::getActiveCommand ( ) const
inline
std::string openfluid::utils::CommandLineParser::getHelpText ( ) const
inline
std::string openfluid::utils::CommandLineParser::getParsingMessage ( ) const
inline
std::string openfluid::utils::CommandLineParser::getProgramName ( ) const
inline
bool openfluid::utils::CommandLineParser::isHelpAsked ( )
inline
bool openfluid::utils::CommandLineParser::parse ( std::list< std::string >  ArgValues)
inline
bool openfluid::utils::CommandLineParser::parse ( int  ArgC,
char **  ArgV 
)
inline
void openfluid::utils::CommandLineParser::printHelp ( std::ostream &  OutStm)
inline
void openfluid::utils::CommandLineParser::printState ( std::ostream &  OutStm)
inline
void openfluid::utils::CommandLineParser::reset ( )
inline

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