git-svn-id: svn://db.shs.com.ru/pip@297 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5

This commit is contained in:
2016-12-15 08:06:43 +00:00
parent d0106d047e
commit 7a83933934
2 changed files with 19 additions and 0 deletions

View File

@@ -95,3 +95,20 @@ void PIPropertyStorage::setPropertyFlags(const PIString & name, int flags) {
return;
}
}
PIPropertyStorage::Property & PIPropertyStorage::operator[](const PIString & name) {
piForeach (Property & p, props)
if (p.name == name)
return p;
addProperty(name, "");
return props.back();
}
const PIPropertyStorage::Property PIPropertyStorage::operator[](const PIString & name) const {
piForeachC (Property & p, props)
if (p.name == name)
return p;
return Property();
}