#pragma once #include "storage/model/properties/all.hpp" #include "storage/model/properties/property.hpp" template void accept(const Property &property, Handler &h) { switch (property.flags) { case Flags::True: return h.handle(static_cast(property)); case Flags::False: return h.handle(static_cast(property)); case Flags::String: return h.handle(static_cast(property)); case Flags::Int32: return h.handle(static_cast(property)); case Flags::Int64: return h.handle(static_cast(property)); case Flags::Float: return h.handle(static_cast(property)); case Flags::Double: return h.handle(static_cast(property)); default: return; } }