version 2.0.0_prealpha

PIFile::put() and get()
This commit is contained in:
2020-08-11 20:09:34 +03:00
parent 3ba6a7b0e8
commit 57a9ccb854
8 changed files with 87 additions and 5 deletions

View File

@@ -38,6 +38,16 @@ void PIPropertyStorage::addProperty(const PIPropertyStorage::Property & p) {
}
void PIPropertyStorage::addProperty(PIPropertyStorage::Property && p) {
for (uint i = 0; i < props.size(); ++i)
if (props[i].name == p.name) {
props[i] = std::move(p);
return;
}
props << std::move(p);
}
void PIPropertyStorage::removeProperty(const PIString & _name) {
for (uint i = 0; i < props.size(); ++i)
if (props[i].name == _name) {