From 27131b43cb8e125b4e92163b641e748500ea36bc Mon Sep 17 00:00:00 2001 From: ThorstenB Date: Sun, 16 Sep 2012 17:56:38 +0200 Subject: [PATCH] Add convenience method for tiedPropertyLists --- simgear/props/tiedpropertylist.hxx | 6 ++++++ 1 file changed, 6 insertions(+) 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; }; -- 2.39.5