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

#include <utils/CommandLineParser.hpp>

Public Member Functions

 CommandLineCommand ()
 
 CommandLineCommand (const std::string &Name, const std::string &HelpText)
 
std::string getHelpText () const
 
std::string getName () const
 
const std::map< std::string, CommandLineOption > & options ()
 
void addOption (const CommandLineOption &Option)
 
bool activateOption (const std::string &LongName, const std::string &Value="")
 
std::string getOptionNameFromShortName (const std::string &ShortName) const
 
bool isOptionExists (const std::string &LongName) const
 
bool isOptionRequiresValue (const std::string &LongName) const
 
bool isOptionActive (const std::string &LongName) const
 
std::string getOptionValue (const std::string &LongName) const
 
void reset ()
 

Constructor & Destructor Documentation

openfluid::utils::CommandLineCommand::CommandLineCommand ( )
inline
openfluid::utils::CommandLineCommand::CommandLineCommand ( const std::string &  Name,
const std::string &  HelpText 
)
inline

Member Function Documentation

bool openfluid::utils::CommandLineCommand::activateOption ( const std::string &  LongName,
const std::string &  Value = "" 
)
inline
void openfluid::utils::CommandLineCommand::addOption ( const CommandLineOption Option)
inline
std::string openfluid::utils::CommandLineCommand::getHelpText ( ) const
inline
std::string openfluid::utils::CommandLineCommand::getName ( ) const
inline
std::string openfluid::utils::CommandLineCommand::getOptionNameFromShortName ( const std::string &  ShortName) const
inline
std::string openfluid::utils::CommandLineCommand::getOptionValue ( const std::string &  LongName) const
inline
bool openfluid::utils::CommandLineCommand::isOptionActive ( const std::string &  LongName) const
inline
bool openfluid::utils::CommandLineCommand::isOptionExists ( const std::string &  LongName) const
inline
bool openfluid::utils::CommandLineCommand::isOptionRequiresValue ( const std::string &  LongName) const
inline
const std::map<std::string,CommandLineOption>& openfluid::utils::CommandLineCommand::options ( )
inline
void openfluid::utils::CommandLineCommand::reset ( )
inline

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