summaryrefslogtreecommitdiff
path: root/include/llmr/style/class_description.hpp
blob: a63dc8d0413f00459c189806d92204880cc703d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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