Bridges-C++  3.4.5-dev1-6-g935685a
Bridges(C++ API)
WorldMap.h
Go to the documentation of this file.
1 #ifndef WORLD_MAP_H
2 
3 #define WORLD_MAP_H
4 
5 #include <math.h>
6 #include <cmath>
7 
8 #include <algorithm>
9 
10 #include <string>
11 #include <vector>
12 
13 
14 #include "DataStructure.h"
15 #include "Map.h"
16 #include <JSONutil.h>
17 
18 
19 #include <rapidjson/document.h>
20 #include <rapidjson/stringbuffer.h>
21 #include <rapidjson/writer.h>
22 
23 
24 namespace bridges {
25  namespace datastructure {
26 
27  using namespace bridges::datastructure;
28 
33  class WorldMap : public Map, public DataStructure {
34  private:
35  virtual const string getDataStructureRepresentation ()
36  const override {
38  return JSONencode("mapdummy") + COLON + JSONencode(true) + CLOSE_CURLY;
39  }
40  public:
41  const string getProjection() const override {
42  return "equirectangular";
43  }
44  const bool getOverlay() const override {
45  return true;
46  }
47 
48  virtual const string getMapRepresentation () const override {
49  return "\"all\"";
50  }
51  public:
53  }
54 
55  virtual const string getDStype() const override {
56  return "world_map";
57  }
58  };
59  }
60 }
61 #endif
This is the superclass of all data structure types in BRIDGES.
Definition: DataStructure.h:74
Abstract class for Map API.
Definition: Map.h:16
enable visulization of the World Map
Definition: WorldMap.h:33
const bool getOverlay() const override
Definition: WorldMap.h:44
const string getProjection() const override
Definition: WorldMap.h:41
virtual const string getMapRepresentation() const override
Definition: WorldMap.h:48
WorldMap()
Definition: WorldMap.h:52
virtual const string getDStype() const override
Definition: WorldMap.h:55
std::string JSONencode(const T &d)
Definition: JSONutil.h:38
Definition: Array.h:9
Support for drawing Bar charts.
Definition: alltypes.h:4
const string COLON
Definition: DataStructure.h:52
const string CLOSE_CURLY
Definition: DataStructure.h:54