alaCarte Maps
Renderer for OpenStreetMap tiles
colorTable.hpp
Go to the documentation of this file.
1 
21 #pragma once
22 #ifndef COLORTABLE_HPP
23 #define COLORTABLE_HPP
24 
25 #include <boost/unordered_map.hpp>
26 
27 #include "settings.hpp"
28 
33 {
34 public:
35  ColorTable();
36 
37  void resolve(const string& name, Color* target) const;
38 
39  const boost::unordered_map<string, Color>& getTable() const;
40 
41 
42  static const ColorTable& Inst();
43 private:
45  boost::unordered_map<string, Color> table;
46 };
47 
48 
49 #endif
void resolve(const string &name, Color *target) const
Operator to access the color table.
Definition: colorTable.cpp:221
Definition: color.hpp:40
const boost::unordered_map< string, Color > & getTable() const
Returns the hole table.
Definition: colorTable.cpp:237
ColorTable()
This file is part of alaCarte.
Definition: colorTable.cpp:32
static const ColorTable & Inst()
Returns a instance of a color table.
Definition: colorTable.cpp:209
boost::unordered_map< string, Color > table
Value of the table.
Definition: colorTable.hpp:45
Simple table for name to color mappings.
Definition: colorTable.hpp:32