]> git.mxchange.org Git - simgear.git/commitdiff
Add convenience method for tiedPropertyLists
authorThorstenB <brehmt@gmail.com>
Sun, 16 Sep 2012 15:56:38 +0000 (17:56 +0200)
committerThorstenB <brehmt@gmail.com>
Sun, 16 Sep 2012 15:58:44 +0000 (17:58 +0200)
simgear/props/tiedpropertylist.hxx

index 7fb354c4da043bd7a7e4743c0abe32ec0d83008d..dcefe222ce1dee296ae70730624732fc25fb245c 100644 (file)
@@ -130,6 +130,12 @@ public:
             pop_back();
         }
     }
+
+    void setAttribute (SGPropertyNode::Attribute attr, bool state)
+    {
+        for (std::vector<SGPropertyNode_ptr>::iterator it=begin() ; it < end(); it++ )
+           (*it)->setAttribute(attr, state);
+    }
 private:
     SGPropertyNode_ptr _root;
 };