summaryrefslogtreecommitdiff
path: root/include/llmr/style/class_description.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'include/llmr/style/class_description.hpp')
-rw-r--r--include/llmr/style/class_description.hpp32
1 files changed, 32 insertions, 0 deletions
diff --git a/include/llmr/style/class_description.hpp b/include/llmr/style/class_description.hpp
new file mode 100644
index 0000000000..a63dc8d041
--- /dev/null
+++ b/include/llmr/style/class_description.hpp
@@ -0,0 +1,32 @@
+#ifndef LLMR_STYLE_CLASS_DESCRIPTION
+#define LLMR_STYLE_CLASS_DESCRIPTION
+
+#include <string>
+#include <vector>
+#include <map>
+#include "properties.hpp"
+
+namespace llmr {
+
+
+class WidthDescription {
+public:
+ std::string scaling;
+ std::vector<float> value;
+};
+
+
+class LayerStyleDescription {
+public:
+ Color color = {{ 0, 0, 0, 0 }};
+ bool antialias = false;
+ WidthDescription width;
+};
+
+typedef std::map<std::string, LayerStyleDescription> ClassDescription;
+
+std::ostream& operator<<(std::ostream&, const ClassDescription& layer);
+
+}
+
+#endif