#include <Parser.h>
|
virtual void | walk (const std::string &fullpath, const std::string &, hit::Node *n) override |
|
|
std::vector< std::string > | errors |
|
Definition at line 48 of file Parser.h.
◆ walk()
void DupParamWalker::walk |
( |
const std::string & |
fullpath, |
|
|
const std::string & |
, |
|
|
hit::Node * |
n |
|
) |
| |
|
overridevirtual |
Definition at line 171 of file Parser.C.
173 std::string prefix = n->type() == hit::NodeType::Field ?
"parameter" :
"section";
175 if (
_have.count(fullpath) > 0)
177 auto existing =
_have[fullpath];
181 hit::errormsg(existing, prefix,
" '", fullpath,
"' supplied multiple times"));
184 errors.push_back(hit::errormsg(n, prefix,
" '", fullpath,
"' supplied multiple times"));
std::set< std::string > _duplicates
std::map< std::string, hit::Node * > _have
std::vector< std::string > errors
◆ _duplicates
std::set<std::string> DupParamWalker::_duplicates |
|
private |
◆ _have
std::map<std::string, hit::Node *> DupParamWalker::_have |
|
private |
◆ errors
std::vector<std::string> DupParamWalker::errors |
The documentation for this class was generated from the following files: