molecular
Public Member Functions | Protected Attributes | List of all members
molecular::util::CommandLineParser::OptionBase Class Referenceabstract

#include <CommandLineParser.h>

Inheritance diagram for molecular::util::CommandLineParser::OptionBase:
molecular::util::CommandLineParser::Arg molecular::util::CommandLineParser::Flag molecular::util::CommandLineParser::Option< T > molecular::util::CommandLineParser::HelpFlag

Public Member Functions

 OptionBase (CommandLineParser &parser, const std::string &longOpt, const std::string &help)
 
virtual void Parse (int &i, int argc, char **argv)=0
 
void PrintHelp () override
 
- Public Member Functions inherited from molecular::util::CommandLineParser::Arg
 Arg (const std::string &help)
 
virtual ~Arg ()=default
 
 operator bool ()
 

Protected Attributes

std::string mLongOpt
 
- Protected Attributes inherited from molecular::util::CommandLineParser::Arg
std::string mHelp
 
bool mPresent = false
 

Constructor & Destructor Documentation

molecular::util::CommandLineParser::OptionBase::OptionBase ( CommandLineParser parser,
const std::string &  longOpt,
const std::string &  help 
)

Member Function Documentation

virtual void molecular::util::CommandLineParser::OptionBase::Parse ( int &  i,
int  argc,
char **  argv 
)
pure virtual
void molecular::util::CommandLineParser::OptionBase::PrintHelp ( )
overridevirtual

Member Data Documentation

std::string molecular::util::CommandLineParser::OptionBase::mLongOpt
protected

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