molecular
Public Member Functions | List of all members
molecular::util::CommandLineParser::Flag Class Reference

Option without parameter. More...

#include <CommandLineParser.h>

Inheritance diagram for molecular::util::CommandLineParser::Flag:
molecular::util::CommandLineParser::OptionBase molecular::util::CommandLineParser::Arg molecular::util::CommandLineParser::HelpFlag

Public Member Functions

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

Additional Inherited Members

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

Detailed Description

Option without parameter.

Example: "--enable-thing"

Constructor & Destructor Documentation

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

Member Function Documentation

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

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