Add convenience method for tiedPropertyLists

This commit is contained in:
ThorstenB 2012-09-16 17:56:38 +02:00
parent e8c2483432
commit 27131b43cb

View File

@ -130,6 +130,12 @@ public:
pop_back(); 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: private:
SGPropertyNode_ptr _root; SGPropertyNode_ptr _root;
}; };