| 275 | } |
| 276 | |
| 277 | void AttributesBinderHelper::bindComposite(std::string_view attribute, |
| 278 | std::vector<CompositeAttributePart>&& compositeParts, |
| 279 | AttributeHandlerDelegateWithCallable::Applier applier, |
| 280 | AttributeHandlerDelegateWithCallable::Resetter resetter) { |
| 281 | auto compositeName = StringCache::getGlobal().makeString(attribute); |
| 282 | auto compositeAttribute = Valdi::makeShared<CompositeAttribute>( |
| 283 | _attributeIds.getIdForName(compositeName), compositeName, std::move(compositeParts)); |
| 284 | auto delegate = makeShared<AttributeHandlerDelegateWithCallable>(applier, resetter); |
| 285 | |
| 286 | Valdi::bindCompositeAttribute(_attributeIds, _attributes, compositeAttribute, delegate, false); |
| 287 | } |
| 288 | |
| 289 | } // namespace Valdi |
no test coverage detected