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

#include <cmdline.h>

Inheritance diagram for Realm::CommandLineOption:

Public Member Functions

 CommandLineOption (const std::string &_optname, bool _keep)
 
virtual ~CommandLineOption (void)
 
virtual bool match (const std::string &s)
 
virtual bool keep_arg (void) const
 
virtual int parse_argument (std::vector< std::string > &cmdline, std::vector< std::string >::iterator &pos)=0
 
virtual int parse_argument (int &pos, int argc, const char *argv[])=0
 

Protected Attributes

std::string optname
 
bool keep
 

Constructor & Destructor Documentation

◆ CommandLineOption()

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

◆ ~CommandLineOption()

virtual Realm::CommandLineOption::~CommandLineOption ( void  )
virtual

Member Function Documentation

◆ keep_arg()

virtual bool Realm::CommandLineOption::keep_arg ( void  ) const
virtual

◆ match()

virtual bool Realm::CommandLineOption::match ( const std::string &  s)
virtual

◆ parse_argument() [1/2]

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

◆ parse_argument() [2/2]

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

Member Data Documentation

◆ keep

bool Realm::CommandLineOption::keep
protected

◆ optname

std::string Realm::CommandLineOption::optname
protected

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