11 #include <vlutil/vlString.h>
12 #include <vlutil/vlFilename.h>
24 std::shared_ptr<const DtSysdefContext>
parent;
33 std::shared_ptr<const DtSysdefContext>
context;
60 auto child = std::make_shared<DtSysdefContext>();
62 child->descriptorName = descriptorName;
std::vector< DtVariable > & myUnusedBindings
Definition: entityValidation.h:76
Collects entity validation issues produced during sysdef loading.
Definition: entityValidation.h:37
DtSysdefContext * pushContext(const DtString &listName, const DtString &descriptorName)
Push a new child context for a descriptor being loaded. Returns a non-owning pointer to the new node ...
Definition: entityValidation.h:58
DtString variableName
Definition: entityValidation.h:32
DtEntityValidationCollector(std::vector< DtVariable > &unusedBindings, std::vector< DtVariable > &hiddenVariables)
Definition: entityValidation.h:40
std::shared_ptr< const DtSysdefContext > parent
null at root
Definition: entityValidation.h:24
Represents either an unused variable binding or a hidden variable discovered during sysdef loading...
Definition: entityValidation.h:30
One node in the sysdef nesting chain. The root node represents the .entity file (listName and descrip...
Definition: entityValidation.h:19
std::vector< DtVariable > & unusedBindings()
Definition: entityValidation.h:46
std::vector< DtVariable > & hiddenVariables()
Definition: entityValidation.h:47
std::shared_ptr< DtSysdefContext > myCurrentContext
Definition: entityValidation.h:78
std::vector< DtVariable > & myHiddenVariables
Definition: entityValidation.h:77
std::shared_ptr< const DtSysdefContext > context
the context in which this variable was found
Definition: entityValidation.h:33
DtFilename file
full path: entity file at root, loaded sysdef elsewhere
Definition: entityValidation.h:21
const std::shared_ptr< DtSysdefContext > & currentContext() const
The current context node (shared with any DtVariables emitted during this level). ...
Definition: entityValidation.h:50
DtString listName
name of the systems list, e.g. "systems"; empty at root
Definition: entityValidation.h:22
void popContext()
Pop back to the parent context.
Definition: entityValidation.h:69
void setRootContext(std::shared_ptr< DtSysdefContext > ctx)
Replace the root context (called once by vrfObjectParameters with the entity file).
Definition: entityValidation.h:53
DtString descriptorName
name of the descriptor entry, e.g. "coax-mg"; empty at root
Definition: entityValidation.h:23