summaryrefslogtreecommitdiff
path: root/include/llmr/style/class_dictionary.hpp
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-16 18:53:56 -0700
commit4ea281c750c5afcc68f2832bb42d98a1cbce6735 (patch)
tree60bc7d3ccba2c54859e2e023997cc027cc67aea7 /include/llmr/style/class_dictionary.hpp
parentc1a64dc5fa73b54cc5de77629781dfc74302a1e7 (diff)
downloadqtlocation-mapboxgl-4ea281c750c5afcc68f2832bb42d98a1cbce6735.tar.gz
rename llmr => mbgl
Diffstat (limited to 'include/llmr/style/class_dictionary.hpp')
-rw-r--r--include/llmr/style/class_dictionary.hpp32
1 files changed, 0 insertions, 32 deletions
diff --git a/include/llmr/style/class_dictionary.hpp b/include/llmr/style/class_dictionary.hpp
deleted file mode 100644
index 772eb9c70e..0000000000
--- a/include/llmr/style/class_dictionary.hpp
+++ /dev/null
@@ -1,32 +0,0 @@
-#ifndef LLMR_STYLE_CLASS_DICTIONARY
-#define LLMR_STYLE_CLASS_DICTIONARY
-
-#include <cstdint>
-#include <string>
-#include <unordered_map>
-
-namespace llmr {
-
-enum class ClassID : uint32_t {
- Fallback = 0, // These values are from the fallback properties
- Default = 1, // These values are from the default style for a layer
- Named = 2 // These values (and all subsequent IDs) are from a named style from the layer
-};
-
-class ClassDictionary {
-public:
- // Returns an ID for a class name. If the class name does not yet have an ID, one is
- // auto-generated and stored for future reference.
- static ClassID Lookup(const std::string &class_name);
-
- // Returns either Fallback, Default or Named, depending on the type of the class id.
- static ClassID Normalize(ClassID id);
-
-private:
- static std::unordered_map<std::string, ClassID> store;
- static uint32_t offset;
-};
-
-}
-
-#endif