XMLParser.h
Go to the documentation of this file.
1 /* Copyright (C) 2017 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 
21 #ifndef __TERRALIB_WS_OGC_WMS_111_XMLPARSER_WMS_H
22 #define __TERRALIB_WS_OGC_WMS_111_XMLPARSER_WMS_H
23 
24 
25 #include "../Config.h"
26 #include "../XMLParser.h"
27 
28 #include "../DataTypes.h"
29 
30 namespace te
31 {
32  namespace ws
33  {
34  namespace ogc
35  {
36  namespace wms
37  {
38  namespace version_1_1_1
39  {
40 
41  /*!
42  \class XMLParser
43 
44  \brief A class responsible to parse WMS 1.1.1 XML files to WMS TerraLib data types.
45  */
47  {
48 
49  public:
50 
51  XMLParser();
52 
53  virtual ~XMLParser();
54 
55  /*!
56  \brief Method responsible to parse a WMS 1.1.1 XML GetCapabilities file and
57  create an WMSCapabilities instance with document metadata.
58 
59  \param xmlPath path of the file that will be parsed.
60 
61  \return Return the WMS Server Capabilities
62  */
63  virtual WMSCapabilities parseCapabilities(const std::string& xmlPath);
64 
65  virtual Layer parseLayers(const std::unique_ptr<te::xml::Reader>& reader);
66 
67  virtual GeographicBoundingBox parseGeographicBoundingBox(const std::unique_ptr<te::xml::Reader>& reader);
68 
69  virtual Dimension parseDimension(const std::unique_ptr<te::xml::Reader>& reader);
70 
71  virtual BoundingBox parseBoundingBox(const std::unique_ptr<te::xml::Reader>& reader);
72 
73  };
74 
75  }
76  }
77  }
78  }
79 }
80 
81 #endif //__TERRALIB_WS_OGC_WMS_111_XMLPARSER_WMS_H
#define TEOGCWMSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:111
The Capability WMS 1.3.0 struct.
Definition: DataTypes.h:275
A class responsible to parse WMS XML files to WMS TerraLib data types.
Definition: XMLParser.h:42
URI C++ Library.
The Dimension WMS 1.3.0 struct.
Definition: DataTypes.h:115
The Layer WMS 1.3.0 struct.
Definition: DataTypes.h:212
A class responsible to parse WMS 1.1.1 XML files to WMS TerraLib data types.
Definition: XMLParser.h:46
The GeographicBoundingBox WMS 1.3.0 struct.
Definition: DataTypes.h:70
The BoundingBox WMS 1.3.0 struct.
Definition: DataTypes.h:90