# 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()
{
}
+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),
fire();
}
}
+
+void fireBindingList(const SGBindingList& aBindings)
+{
+ BOOST_FOREACH(SGBinding_ptr b, aBindings) {
+ b->fire();
+ }
+}