#ifndef LLMR_STYLE_PROPERTY_FALLBACK #define LLMR_STYLE_PROPERTY_FALLBACK #include #include #include namespace llmr { class PropertyFallbackValue { public: static const PropertyValue &Get(PropertyKey key) { auto it = properties.find(key); if (it != properties.end()) { return it->second; } else { return defaultProperty; } } private: static const std::map properties; static const PropertyValue defaultProperty; }; } #endif