SIRF
3.5.0
|
Class for parser keys with 2 arguments. More...
#include "ParserKey.h"
Public Member Functions | |
ParserKey2Arg () | |
Constructor. | |
virtual | ~ParserKey2Arg () |
Destructor. | |
void | set_function (void(Z::*function)(A, B)) |
Set function. | |
virtual void | get_arguments (const std::string &line) |
Get arguments. | |
virtual void | call_function () const |
Call the function. | |
virtual void | print_num_arguments_expected () const |
Print number of arguments expected. | |
Public Member Functions inherited from sirf::ParserKeyBase< Z > | |
ParserKeyBase () | |
Constructor. | |
virtual | ~ParserKeyBase () |
Destructor. | |
void | set_object (std::shared_ptr< Z > object) |
Set object. | |
Protected Attributes | |
void(Z::* | _function )(A, B) |
Function. | |
A | _arg1 |
First argument. | |
B | _arg2 |
Second argument. | |
Protected Attributes inherited from sirf::ParserKeyBase< Z > | |
std::shared_ptr< Z > | _object |
Object to call the function on. | |
Additional Inherited Members | |
Protected Member Functions inherited from sirf::ParserKeyBase< Z > | |
void | check_num_arguments (const std::string &line, const int num_args_expected) const |
Check that the number of arguments matches the expected amount. | |
std::string | get_arg_as_string (const std::string &line, const int arg_num) const |
Get the nth argument as a string. | |
void | get_argument (const std::string &line, const int arg_num, const char *&arg) const |
Get argument - const char *. | |
void | get_argument (const std::string &line, const int arg_num, bool &arg) const |
Get argument - bool. | |
void | get_argument (const std::string &line, const int arg_num, int &arg) const |
Get argument - int. | |
void | get_argument (const std::string &line, const int arg_num, unsigned int &arg) const |
Get argument - unsigned int. | |
void | get_argument (const std::string &line, const int arg_num, float &arg) const |
Get argument - float. | |
void | get_argument (const std::string &line, const int arg_num, double &arg) const |
Get argument - double. | |
void | get_argument (const std::string &line, const int arg_num, unsigned long &arg) const |
Get argument - unsigned long. | |
Class for parser keys with 2 arguments.