Skip to content
Snippets Groups Projects
Commit f610be4a authored by Rainer Kartmann's avatar Rainer Kartmann
Browse files

Add withDataAs<AronDtoT>()

parent b21f4f09
No related branches found
No related tags found
No related merge requests found
......@@ -159,6 +159,16 @@ namespace armarx::armem::base
return AronDtoT::FromAron(_data);
}
template <class AronDtoT>
EntityInstanceBase<AronDtoT, MetadataT>
withDataAs() const
{
EntityInstanceBase<AronDtoT, MetadataT> instance{_id};
instance.data() = dataAs<AronDtoT>();
instance.metadata() = _metadata;
return instance;
}
// Misc
static std::string
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment