5#if VP_DEFAULT_CPP_STD >= __cplusplus
28 std::map<std::string, std::string>
config;
60 Parser(
const std::string &_id,
const std::string &_file,
const std::string &_extension =
".varpar");
78 std::string
getVal(
const std::string &_key)
const;
90 std::string
getID()
const;
94# error "Use C++17 as the minimum standard"
ParserStatus checkStatus() const
Get the constructed starts.
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.
std::string getVal(const std::string &_key) const
Get value of _key.
virtual ParserReturn __parse()
Private member of the parse function.
ParserReturn parse()
Public API wrapper for Parser::__parse() function.
std::string getID() const
Get the current object ID.
struct vp::ParserStatus ParserStatus
Set the error and if the Parser class was constructed.
struct vp::ParserReturn ParserReturn
Returned parser information This includes the configuration, output and success of the Parser.
Returned parser information This includes the configuration, output and success of the Parser.
std::vector< std::string > output
std::map< std::string, std::string > config
Set the error and if the Parser class was constructed.