30 #ifndef LVTK_DATA_ACCESS_HPP 31 #define LVTK_DATA_ACCESS_HPP 33 #include <lv2/lv2plug.in/ns/ext/data-access/data-access.h> 35 #include <lvtk/private/types.hpp> 46 template<
bool Required = true>
49 template<
class Derived>
50 struct I : Extension<Required>
63 handle_feature(LV2UI_Handle instance,
FeatureData data)
65 Derived* derived =
reinterpret_cast<Derived*
>(instance);
69 reinterpret_cast<LV2_Extension_Data_Feature*
>(data);
70 mixin->m_ok = (mixin->p_da != NULL);
81 std::clog <<
" [DataAccess] Validation " 82 << (this->m_ok ?
"succeeded" :
"failed")
106 return p_da->data_access(uri);
112 LV2_Extension_Data_Feature *p_da;
Definition: data_access.hpp:50
void * FeatureData
Definition: feature.hpp:47
const void * data_access(const char *uri)
Definition: data_access.hpp:103
Definition: feature.hpp:34
Definition: data_access.hpp:47
map< string, FeatureHandler > FeatureHandlerMap
Definition: feature.hpp:57