|
SIRF
3.4.0
|
Base for parser keys. More...
#include "ParserKey.h"
Public Member Functions | |
| ParserKeyBase () | |
| Constructor. | |
| virtual | ~ParserKeyBase () |
| Destructor. | |
| void | set_object (std::shared_ptr< Z > object) |
| Set object. | |
| virtual void | get_arguments (const std::string &line)=0 |
| Get arguments. | |
| virtual void | call_function () const =0 |
| Call function. | |
| virtual void | print_num_arguments_expected () const =0 |
| Print number of arguments expected. | |
Protected Member Functions | |
| 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. | |
Protected Attributes | |
| std::shared_ptr< Z > | _object |
| Object to call the function on. | |
Base for parser keys.
1.8.13