]> git.mxchange.org Git - simgear.git/blobdiff - simgear/structure/SGBinding.cxx
Keep Linux happy.
[simgear.git] / simgear / structure / SGBinding.cxx
index 836d7abc1364201817df01803040deeb9437a566..db501d4073de354b7740d07497a67edb2c25a3b3 100644 (file)
 #  include <simgear_config.h>
 #endif
 
+#include <boost/foreach.hpp>
 #include <simgear/compiler.h>
 #include "SGBinding.hxx"
 
-#include <simgear/math/SGMath.hxx>
-
 #include <simgear/structure/exception.hxx>
 
 SGBinding::SGBinding()
@@ -25,6 +24,14 @@ SGBinding::SGBinding()
 {
 }
 
+SGBinding::SGBinding(const std::string& commandName)
+    : _command(0),
+    _arg(0),
+    _setting(0)
+{
+    _command_name = commandName;
+}
+
 SGBinding::SGBinding(const SGPropertyNode* node, SGPropertyNode* root)
   : _command(0),
     _arg(0),
@@ -100,3 +107,10 @@ SGBinding::fire (double setting) const
     fire();
   }
 }
+
+void fireBindingList(const SGBindingList& aBindings)
+{
+    BOOST_FOREACH(SGBinding_ptr b, aBindings) {
+        b->fire();
+    }
+}