VAPOR3 3.9.4
Proj4StringParser.h
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4#include <map>
5#include <vapor/MyBase.h>
6
7namespace VAPoR {
9 std::string _string;
10 std::map<std::string, std::string> _tokens;
11
12 static std::pair<std::string, std::string> Proj4ParameterToKeyValuePair(std::string proj);
13 static std::map<std::string, std::string> Proj4StringToParameterMap(std::string proj);
14
15public:
16 Proj4StringParser(const std::string &projString);
17
18 bool HasKey(const std::string &key) const;
19 std::string GetString(const std::string &key, const std::string &defaultValue = "") const;
20 double GetDouble(const std::string &key, const double defaultValue = 0.0) const;
21
22 static int Proj4EllipseStringToGeoTIFEnum(const std::string &proj);
23};
24} // namespace VAPoR
double GetDouble(const std::string &key, const double defaultValue=0.0) const
std::string GetString(const std::string &key, const std::string &defaultValue="") const
bool HasKey(const std::string &key) const
Proj4StringParser(const std::string &projString)
static int Proj4EllipseStringToGeoTIFEnum(const std::string &proj)
Wasp base class.
Definition: MyBase.h:67
#define RENDER_API
Definition: common.h:78