Skip to content
Snippets Groups Projects
Commit 9bd4c963 authored by Martin Christoph Hierholzer's avatar Martin Christoph Hierholzer
Browse files

added function to obtain the qualified name of the variable, including the...

added function to obtain the qualified name of the variable, including the hierarchy path. not yet used.
parent 16c382d9
No related branches found
No related tags found
No related merge requests found
......@@ -34,9 +34,15 @@ namespace ChimeraTK {
/** Virtual destructor to make the type polymorphic */
virtual ~EntityOwner();
/** Get the name of the module instance */
const std::string& getName() const { return _name; }
/** Get the fully qualified name of the module instance, i.e. the name containing all module names further up in
* the hierarchy. */
std::string getQualifiedName() const {
return ( _owner != nullptr ? _owner->getQualifiedName() : "" ) + "/" + _name;
}
/** Get the decription of the module instance */
const std::string& getDescription() const { return _description; }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment