68 const std::string*&)
const override final {
79 virtual std::string
stringize(
bool pretty=
false)
const override {
98 ex <<
"\" cannot be a child of any other node. Someone attempted "
99 "to add it as a child of " << parent->
getLocation();
Basic Node framework in sparta device tree composite pattern.
TreeNode which represents some "global" namespace of the device tree, containing only RootTreeNodes,...
virtual bool canGenerateNotification_(const std::type_info &, const std::string *, const std::string *&) const override final
Implements TreeNode::canGenerateNotification. Node subclasses which will post notifications must impl...
virtual void setParent_(TreeNode *parent, bool) override
Disallow assining a parent to this node.
virtual void createResource_() override
Create any resources from this finalized device tree.
static constexpr char GLOBAL_NODE_NAME[]
Reserved name for this GlobalTreeNode.
virtual bool isAttached() const override final
Is this node part of a device tree with a proper RootTreeNode at the root.
GlobalTreeNode()
Constructor.
virtual ~GlobalTreeNode()
Destructor.
virtual std::string stringize(bool pretty=false) const override
Render description of this TreeNode as a string.
virtual TreeNode * getParent() override final
Gets immediate parent of this node if one exists.
Used to construct and throw a standard C++ exception. Inherits from std::exception.
Node in a composite tree representing a sparta Tree item.
static const group_idx_type GROUP_IDX_NONE
GroupIndex indicating that a node has no group index because it belongs to no group.
std::string getLocation() const override final
static constexpr char GROUP_NAME_BUILTIN[]
Reserved name for built-in nodes.
const std::string & getName() const override
Gets the name of this node.
Macros for handling exponential backoff.