]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGBinding.hxx
Some Linux platforms need <cstdio> for snprintf.
[simgear.git] / simgear / structure / SGBinding.hxx
index 23e921c461d75989e9579b121c121b789d4dd6db..15757faeeeb357c214c0dd3c5d0a06abe74d5a46 100644 (file)
@@ -58,6 +58,14 @@ public:
    */
   virtual ~SGBinding ();
 
+  
+  /**
+   * clear internal state of the binding back to empty. This is useful
+   * if you don't want the 'remove on delete' behaviour of the 
+   * destructor.
+   */
+  void clear();
+
 
   /**
    * Get the command name.
@@ -154,4 +162,9 @@ void fireBindingListWithOffset(const SGBindingList& aBindings, double offset, do
  */
 SGBindingList readBindingList(const simgear::PropertyList& aNodes, SGPropertyNode* aRoot);
 
+/**
+ * call clear() on every binding in a list
+ */
+void clearBindingList(const SGBindingList& aBindings);
+
 #endif