|
| Parser () |
| Constructor.
|
|
virtual | ~Parser () |
| Destructor.
|
|
void | set_object (std::shared_ptr< Z > object) |
| Set object.
|
|
void | set_filename (std::string filename) |
| Set filename.
|
|
void | add_key (const std::string &keyword, void(Z::*function)()) |
| Add key with 0 arguments.
|
|
template<class Y , class A > |
void | add_key (const std::string &keyword, void(Y::*function)(A)) |
| Add key with 1 argument - we need to template Y in case Z is the derived class and Y is a parent class.
|
|
template<class Y , class A , class B > |
void | add_key (const std::string &keyword, void(Y::*function)(A, B)) |
| Add key with 2 arguments - we need to template Y in case Z is the derived class and Y is a parent class.
|
|
void | parse () |
| Parse.
|
|
void | open_file (std::ifstream &file) |
| Open file.
|
|
void | get_line (std::ifstream &file, std::string &line) |
| Get line.
|
|
bool | is_end (std::string line) |
| Is the end of the file?
|
|
bool | contains_parameter (std::string &line) |
| Does the line contain a parameter?
|
|
std::string | get_keyword (std::string &line) |
| Get the keyword from a line.
|
|
std::shared_ptr< ParserKeyBase< Z > > | get_key_sptr (std::string &keyword) |
| Get a key from its keyword.
|
|
The documentation for this class was generated from the following file:
- /home/sirfuser/devel/buildVM/sources/SIRF/src/Registration/cReg/include/sirf/Reg/Parser.h