5#include <Infinity/Types/Core/Value.hpp>
6#include <Infinity/Types/Core/PropertyValue.inl>
28 return *it->second.
as<T>();
30 throw std::runtime_error(
"Property key not found");
std::unordered_map< std::string, PropertyValue > properties
Property storage for arbitrary metadata.
Definition Data.hpp:81
void setProperty(const std::string &key, T &&value)
Sets a typed property value.
Definition Data.inl:11
const PropertyValue & getProperty(const std::string &key) const
Gets a property value without type checking.
Definition PropertyValue.hpp:14
T * as()
Definition PropertyValue.inl:26