|
varpar.cpp v1.0.0-build
Parse variables in an env style for C++ from a .varpar file
|
#include <VP_Parse.hpp>
Public Member Functions | |
| Parser (const std::string &_id, const std::string &_file, const std::string &_extension=".varpar") | |
| Create the object, set errors if there are and set some configuration from the parameters. | |
| ~Parser () | |
| Deconstructor. | |
| ParserStatus | checkStatus () const |
| Get the constructed starts. | |
| std::string | getID () const |
| Get the current object ID. | |
| std::string | getVal (const std::string &_key) const |
| Get value of _key. | |
| ParserReturn | parse () |
| Public API wrapper for Parser::__parse() function. | |
Protected Member Functions | |
| virtual ParserReturn | __parse () |
| Private member of the parse function. | |
Private Attributes | |
| std::string | extension |
| std::string | fpath |
| std::string | id |
| ParserReturn | parseRet |
| ParserStatus | status |
Definition at line 35 of file VP_Parse.hpp.
| vp::Parser::Parser | ( | const std::string & | _id, |
| const std::string & | _file, | ||
| const std::string & | _extension = ".varpar" ) |
Create the object, set errors if there are and set some configuration from the parameters.
| _id | Set the ID of the object |
| _file | Set the path of the file |
| _extension | Set the file extension |
Definition at line 16 of file VP_Parse.cpp.
References __VP_ERROR_THROW_DEFAULT_MSG, extension, fpath, id, and status.
| vp::Parser::~Parser | ( | ) |
Deconstructor.
|
protectedvirtual |
Private member of the parse function.
Definition at line 55 of file VP_Parse.cpp.
References fpath.
Referenced by parse().
| ParserStatus vp::Parser::checkStatus | ( | ) | const |
Get the constructed starts.
Definition at line 114 of file VP_Parse.cpp.
References status.
| std::string vp::Parser::getID | ( | ) | const |
Get the current object ID.
Definition at line 117 of file VP_Parse.cpp.
References id.
| std::string vp::Parser::getVal | ( | const std::string & | _key | ) | const |
Get value of _key.
| _key | Key value to find |
Definition at line 106 of file VP_Parse.cpp.
References parseRet.
| ParserReturn vp::Parser::parse | ( | ) |
Public API wrapper for Parser::__parse() function.
Definition at line 48 of file VP_Parse.cpp.
|
private |
Definition at line 44 of file VP_Parse.hpp.
Referenced by Parser().
|
private |
Definition at line 39 of file VP_Parse.hpp.
|
private |
Definition at line 38 of file VP_Parse.hpp.
|
private |
Definition at line 42 of file VP_Parse.hpp.
|
private |
Definition at line 41 of file VP_Parse.hpp.
Referenced by Parser(), and checkStatus().