MayaFlux 0.1.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ get_attribute()

template<typename T >
std::optional< T > MayaFlux::Kakshya::OrganizedRegion::get_attribute ( const std::string &  key) const
inline

Get processing metadata from this region.

Definition at line 101 of file OrganizedRegion.hpp.

102 {
103 auto it = attributes.find(key);
104 if (it != attributes.end()) {
105 try {
106 return safe_any_cast<T>(it->second);
107 } catch (const std::bad_any_cast&) {
108 return std::nullopt;
109 }
110 }
111 return std::nullopt;
112 }
std::unordered_map< std::string, std::any > attributes
Extensible metadata.