]> git.mxchange.org Git - simgear.git/blobdiff - simgear/props/props.hxx
SGPropertyNode::fireCreatedRecursive: don't fire for node itself by default
[simgear.git] / simgear / props / props.hxx
index f2692710de76cf13d9043d68c8132d8a9944b9d1..eaf5fe1479f7937c517a0dd7c04ae10769b2c9f3 100644 (file)
@@ -1597,12 +1597,14 @@ public:
 
   /**
    * Trigger a child-added and value-changed event for every child (Unlimited
-   * depth) and the node itself.
+   * depth).
+   *
+   * @param fire_self   Whether to trigger the events also for the node itself.
    *
    * It can be used to simulating the creation of a property tree, eg. for
    * (re)initializing a subsystem which is controlled through the property tree.
    */
-  void fireCreatedRecursive();
+  void fireCreatedRecursive(bool fire_self = false);
 
   /**
    * Fire a child-removed event to all listeners.