SIRF  3.5.0
Public Member Functions | Protected Attributes | List of all members
sirf::ParserKey2Arg< Z, A, B > Class Template Reference

Class for parser keys with 2 arguments. More...

#include "ParserKey.h"

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

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.
 
_arg1
 First argument.
 
_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.
 

Detailed Description

template<class Z, class A, class B>
class sirf::ParserKey2Arg< Z, A, B >

Class for parser keys with 2 arguments.

Author
Richard Brown
SyneRBI

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