| 30 | } |
| 31 | |
| 32 | void PropertyUtility::executeAction(PropertyPtr _property, std::string_view _value, bool _merge) |
| 33 | { |
| 34 | if (_property->getValue() == _value) |
| 35 | return; |
| 36 | |
| 37 | const std::string& actionName = _property->getType()->getAction(); |
| 38 | |
| 39 | ActionChangeDataProperty* action = |
| 40 | components::FactoryManager::GetInstance().CreateItem<ActionChangeDataProperty>(actionName); |
| 41 | if (action != nullptr) |
| 42 | { |
| 43 | action->setProperty(_property); |
| 44 | action->setValue(_value); |
| 45 | action->setMerge(_merge); |
| 46 | |
| 47 | ActionManager::getInstance().doAction(action); |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | void PropertyUtility::storeUniqueNameProperty( |
| 52 | std::string_view _propertyName, |