X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fstructure%2FSGBinding.cxx;h=db501d4073de354b7740d07497a67edb2c25a3b3;hb=691be54ca2b4d76f2e32f165c2513727c32a4de7;hp=836d7abc1364201817df01803040deeb9437a566;hpb=02b3c37b9fa8cbf591aca8c817cf79593002fe34;p=simgear.git diff --git a/simgear/structure/SGBinding.cxx b/simgear/structure/SGBinding.cxx index 836d7abc..db501d40 100644 --- a/simgear/structure/SGBinding.cxx +++ b/simgear/structure/SGBinding.cxx @@ -11,11 +11,10 @@ # include #endif +#include #include #include "SGBinding.hxx" -#include - #include 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(); + } +}