SIRF  3.5.0
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
sirf::ParserKeyBase< Z > Class Template Referenceabstract

Base for parser keys. More...

#include "ParserKey.h"

Inheritance diagram for sirf::ParserKeyBase< Z >:
sirf::ParserKey0Arg< Z > sirf::ParserKey1Arg< Z, A > sirf::ParserKey2Arg< Z, A, B >

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.
 

Detailed Description

template<class Z>
class sirf::ParserKeyBase< Z >

Base for parser keys.

Author
Richard Brown
SyneRBI

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