From: ThorstenB Date: Sun, 16 Sep 2012 15:56:38 +0000 (+0200) Subject: Add convenience method for tiedPropertyLists X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=27131b43cb8e125b4e92163b641e748500ea36bc;p=simgear.git Add convenience method for tiedPropertyLists --- diff --git a/simgear/props/tiedpropertylist.hxx b/simgear/props/tiedpropertylist.hxx index 7fb354c4..dcefe222 100644 --- a/simgear/props/tiedpropertylist.hxx +++ b/simgear/props/tiedpropertylist.hxx @@ -130,6 +130,12 @@ public: pop_back(); } } + + void setAttribute (SGPropertyNode::Attribute attr, bool state) + { + for (std::vector::iterator it=begin() ; it < end(); it++ ) + (*it)->setAttribute(attr, state); + } private: SGPropertyNode_ptr _root; };