Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::BooleanCommandLineOption Class Reference

#include <cmdline.h>

Inheritance diagram for Realm::BooleanCommandLineOption:
[legend]
Collaboration diagram for Realm::BooleanCommandLineOption:
[legend]

Public Member Functions

 BooleanCommandLineOption (const std::string &_optname, bool _keep, bool &_target)
virtual int parse_argument (std::vector< std::string > &cmdline, std::vector< std::string >::iterator &pos)
virtual int parse_argument (int &pos, int argc, const char *argv[])
Public Member Functions inherited from Realm::CommandLineOption
 CommandLineOption (const std::string &_optname, bool _keep)
virtual ~CommandLineOption (void)
virtual bool match (const std::string &s)
virtual bool keep_arg (void) const

Protected Attributes

bool & target
Protected Attributes inherited from Realm::CommandLineOption
std::string optname
bool keep

Constructor & Destructor Documentation

◆ BooleanCommandLineOption()

Realm::BooleanCommandLineOption::BooleanCommandLineOption ( const std::string & _optname,
bool _keep,
bool & _target )

Member Function Documentation

◆ parse_argument() [1/2]

virtual int Realm::BooleanCommandLineOption::parse_argument ( int & pos,
int argc,
const char * argv[] )
virtual

◆ parse_argument() [2/2]

virtual int Realm::BooleanCommandLineOption::parse_argument ( std::vector< std::string > & cmdline,
std::vector< std::string >::iterator & pos )
virtual

Member Data Documentation

◆ target

bool& Realm::BooleanCommandLineOption::target
protected

The documentation for this class was generated from the following file:
  • /home/runner/work/realm/realm/realm-src/src/realm/cmdline.h