App/Toponaming: Add StringHasher to Document

This commit is contained in:
Chris Hennes
2023-09-12 15:35:17 -05:00
parent beb39239f3
commit 2a386c9f6f
7 changed files with 123 additions and 1 deletions

View File

@@ -219,6 +219,23 @@ void PropertyContainer::handleChangedPropertyType(XMLReader &reader, const char
PropertyData PropertyContainer::propertyData;
void PropertyContainer::beforeSave() const
{
std::map<std::string,Property*> Map;
getPropertyMap(Map);
for(auto &entry : Map) {
auto prop = entry.second;
if(!prop->testStatus(Property::PropDynamic)
&& (prop->testStatus(Property::Transient) ||
getPropertyType(prop) & Prop_Transient))
{
// Nothing
} else {
prop->beforeSave();
}
}
}
void PropertyContainer::Save (Base::Writer &writer) const
{
std::map<std::string,Property*> Map;