Fire Core  8.0.0.alpha
GIS framework per tutti gli usi
 Tutto Classi Namespace Funzioni Variabili Ridefinizioni di tipo (typedef) Tipi enumerati (enum) Valori del tipo enumerato Friend
JsonReader.hpp
1 // Copyright 2015 GEOSYSTEMS SRL
2 // All Rights Reserved.
3 
4 #ifndef FIRE_GEAR_IO_JSONREADER_HPP_INCLUDED
5 #define FIRE_GEAR_IO_JSONREADER_HPP_INCLUDED
6 
7 #include <json/json.h>
8 
9 #include <exception>
10 #include <vector>
11 #include <istream>
12 #include <string>
13 
14 #include "fire/export.hpp"
15 
16 #include "fire/gear/io/Reader.hpp"
17 #include "fire/Group.hpp"
18 
19 namespace fire {
20 namespace gear {
21 namespace geom {
22 class Geometry;
23 } // namespace geom
24 } // namespace gear
25 } // namespace fire
26 
31 namespace fire {
36 namespace gear {
41 namespace io {
46 class FIRE_ENGINE_DLL JsonReader : public fire::gear::io::Reader {
47  private:
57  fire::gear::geom::Geometry* createGeometryFromJsonValue(const Json::Value value);
58 
59  public:
64  virtual ~JsonReader();
74  void read(std::istream& inputStream, std::vector< fire::gear::geom::Geometry* >& geometries);
84  void read(const std::string& filePath, std::vector< fire::gear::geom::Geometry* >& geometries);
94  void read(std::istream& inputStream, fire::gear::Group& group);
103  void read(const std::string& filePath, fire::gear::Group& group);
113  fire::gear::geom::Geometry* read(const std::string& string);
114 };
115 } // namespace io
116 } // namespace gear
117 } // namespace fire
118 
119 #endif
Definition: Group.hpp:48
classe che specializza l' interfaccia del reader delle geometrie per il formato GeoJson ...
Definition: JsonReader.hpp:46
Definition: Geometry.hpp:69
classe di dichiarazione dell' interfaccia del reader delle geometrie
Definition: Reader.hpp:40