Loading...
Searching...
No Matches
Utils.h
Go to the documentation of this file.
1/* Copyright (C) 2008 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 \file src/terralib/maptools/serialization/xml/Utils.h
22
23 \brief Auxiliary functions to read layer information from a XML document.
24*/
25
26#ifndef __TERRALIB_MAPTOOLS_SERIALIZATION_XML_INTERNAL_UTILS_H
27#define __TERRALIB_MAPTOOLS_SERIALIZATION_XML_INTERNAL_UTILS_H
28
29// TerraLib
30#include "../../Enums.h"
31#include "../../Config.h"
32
33// STL
34#include <string>
35#include <memory>
36
37namespace te
38{
39 namespace xml
40 {
41 class AbstractWriter;
42 class Reader;
43 }
44
45 namespace map
46 {
47 class AbstractLayer;
48 class Chart;
49 class Grouping;
50 class RasterContrast;
51
52 namespace serialize
53 {
54 TEMAPEXPORT te::map::Visibility GetVisibility(const std::string& visible);
55
56 TEMAPEXPORT std::string GetVisibility(const te::map::Visibility& visible);
57
59
61
63
65
67
69
71
73
75
76 TEMAPEXPORT std::unique_ptr<te::map::Chart> ReadLayerChart(te::xml::Reader& reader);
77
79
81
83
85
87
88 TEMAPEXPORT void WriteSRIDValue(const int& srid, te::xml::AbstractWriter& writer);
89
90 } //end namespace serialize
91 } // end namespace map
92} // end namespace te
93
94#endif // __TERRALIB_MAPTOOLS_SERIALIZATION_XML_INTERNAL_UTILS_H
A class that models a XML writer object built on top of Xerces-C++.
A wdiget used to customize a chart's style parameters.
This is the base class for layers.
Definition: AbstractLayer.h:78
This class represents the informations needed to build map charts.
Definition: Chart.h:52
This class contains the parameters needed for grouping the values of a Property.
Definition: Grouping.h:58
This class contains the parameters needed to apply dynamic contrast over a raster.
This class models a XML writer object.
This class models a XML reader object.
Definition: Reader.h:56
TEMAPEXPORT std::string ReadLayerTitle(te::xml::Reader &reader)
TEMAPEXPORT std::string ReadDataSourceId(te::xml::Reader &reader)
TEMAPEXPORT te::map::RasterContrast * ReadLayerRasterContrast(te::xml::Reader &reader)
TEMAPEXPORT void WriteSRIDValue(const int &srid, te::xml::AbstractWriter &writer)
TEMAPEXPORT te::map::Visibility GetVisibility(const std::string &visible)
TEMAPEXPORT std::string ReadLayerVisibility(te::xml::Reader &reader)
TEMAPEXPORT std::unique_ptr< te::map::Chart > ReadLayerChart(te::xml::Reader &reader)
TEMAPEXPORT int ReadSRIDValue(te::xml::Reader &reader)
TEMAPEXPORT void WriteLayerGrouping(te::map::Grouping *g, te::xml::AbstractWriter &writer)
TEMAPEXPORT std::string ReadLayerEncoding(te::xml::Reader &reader)
TEMAPEXPORT void WriteLayerRasterContrast(te::map::RasterContrast *rc, te::xml::AbstractWriter &writer)
TEMAPEXPORT std::string ReadDataSetName(te::xml::Reader &reader)
TEMAPEXPORT void WriteAbstractLayer(const te::map::AbstractLayer *layer, te::xml::AbstractWriter &writer)
TEMAPEXPORT void WriteLayerChart(te::map::Chart *chart, te::xml::AbstractWriter &writer)
TEMAPEXPORT te::map::GroupingType GetGroupingType(const std::string &type)
TEMAPEXPORT te::map::Grouping * ReadLayerGrouping(te::xml::Reader &reader)
Visibility
Each layer can have three states of visibility.
Definition: Enums.h:140
GroupingType
The grouping type associated to the layer.
Definition: Enums.h:152
TerraLib.
#define TEMAPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:60