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

#include <cmdline.h>

Inheritance diagram for Realm::StringCommandLineOption:
Collaboration diagram for Realm::StringCommandLineOption:

Public Member Functions

 StringCommandLineOption (const std::string &_optname, bool _keep, std::string &_target)
 
 StringCommandLineOption (const std::string &_optname, bool _keep, char *_target, size_t _maxlen)
 
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

std::string * target_str
 
char * target_array
 
size_t target_arrlen
 
- Protected Attributes inherited from Realm::CommandLineOption
std::string optname
 
bool keep
 

Constructor & Destructor Documentation

◆ StringCommandLineOption() [1/2]

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

◆ StringCommandLineOption() [2/2]

Realm::StringCommandLineOption::StringCommandLineOption ( const std::string &  _optname,
bool  _keep,
char *  _target,
size_t  _maxlen 
)

Member Function Documentation

◆ parse_argument() [1/2]

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

◆ parse_argument() [2/2]

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

Member Data Documentation

◆ target_array

char* Realm::StringCommandLineOption::target_array
protected

◆ target_arrlen

size_t Realm::StringCommandLineOption::target_arrlen
protected

◆ target_str

std::string* Realm::StringCommandLineOption::target_str
protected

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