Realm
A distributed, event-based tasking library
Loading...
Searching...
No Matches
Realm::IntegerUnitsCommandLineOption< T > Class Template Reference

#include <cmdline.h>

Inheritance diagram for Realm::IntegerUnitsCommandLineOption< T >:
Collaboration diagram for Realm::IntegerUnitsCommandLineOption< T >:

Public Member Functions

 IntegerUnitsCommandLineOption (const std::string &_optname, char _default_unit, bool _binary, bool _keep, T &_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

char default_unit
 
bool binary
 
T & target
 
- Protected Attributes inherited from Realm::CommandLineOption
std::string optname
 
bool keep
 

Constructor & Destructor Documentation

◆ IntegerUnitsCommandLineOption()

template<typename T >
Realm::IntegerUnitsCommandLineOption< T >::IntegerUnitsCommandLineOption ( const std::string &  _optname,
char  _default_unit,
bool  _binary,
bool  _keep,
T &  _target 
)

Member Function Documentation

◆ parse_argument() [1/2]

template<typename T >
virtual int Realm::IntegerUnitsCommandLineOption< T >::parse_argument ( int &  pos,
int  argc,
const char *  argv[] 
)
virtual

◆ parse_argument() [2/2]

template<typename T >
virtual int Realm::IntegerUnitsCommandLineOption< T >::parse_argument ( std::vector< std::string > &  cmdline,
std::vector< std::string >::iterator &  pos 
)
virtual

Member Data Documentation

◆ binary

template<typename T >
bool Realm::IntegerUnitsCommandLineOption< T >::binary
protected

◆ default_unit

template<typename T >
char Realm::IntegerUnitsCommandLineOption< T >::default_unit
protected

◆ target

template<typename T >
T& Realm::IntegerUnitsCommandLineOption< T >::target
protected

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