#include #include using namespace structive; struct Device : Property_Object { double temperature{25.0}; }; template <> struct structive::Type_Descriptor { static auto get() { return object( field < &Device::temperature > ( key < "temperature" >, unit < "C" >, presentation::label < "Temperature" >, presentation::description < "Current device temperature" > ) ); } }; int main() { Device device; auto info = presentation::describe < &Device::temperature > (device.schema()); std::cout << info.key << '=' << info.label << '\n'; }