Add convenience method for tiedPropertyLists

This commit is contained in:
ThorstenB
2012-09-16 17:58:44 +02:00
parent e8c2483432
commit 27131b43cb
+6
View 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;
};