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 terralib/se/serialization/xml/Utils.h
22 
23  \brief Utility methods for the Symbology serialization.
24 */
25 
26 #ifndef __TERRALIB_SE_SERIALIZATION_XML_INTERNAL_UTILS_H
27 #define __TERRALIB_SE_SERIALIZATION_XML_INTERNAL_UTILS_H
28 
29 // STL
30 #include <string>
31 
32 namespace te
33 {
34  namespace fe { class PropertyName; }
35 
36  namespace xl { class SimpleLink; }
37 
38  namespace xml
39  {
40  class AbstractWriter;
41  class Reader;
42  }
43 
44  namespace se
45  {
46  class ParameterValue;
47  class SelectedChannel;
48  class Symbolizer;
49 
50  namespace serialize
51  {
52  void WriteStringPtrHelper(const std::string& elementName, const std::string* s, te::xml::AbstractWriter& writer);
53 
54  void WriteParameterValuePtrHelper(const std::string& elementName, const te::se::ParameterValue* p, te::xml::AbstractWriter& writer);
55 
57 
59 
60  void WriteSymbolizerHelper(const te::se::Symbolizer* symbolizer, te::xml::AbstractWriter& writer);
61 
62  void ReadSymbolizerHelper(te::se::Symbolizer* symbolizer, te::xml::Reader& reader);
63 
64  void WriteSelectedChannelHelper(const std::string& elementName, const te::se::SelectedChannel* sc, te::xml::AbstractWriter& writer);
65 
67 
69  } // end namespace serialize
70  } // end namespace se
71 } // end namespace te
72 
73 #endif // __TERRALIB_SE_SERIALIZATION_XML_INTERNAL_UTILS_H
74 
A selected channel to be display.
This class models a XML reader object.
Definition: Reader.h:55
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:80
This class models a XML writer object.
The "ParameterValueType" uses WFS-Filter expressions to give values for SE graphic parameters...
void WriteStringPtrHelper(const std::string &elementName, const std::string *s, te::xml::AbstractWriter &writer)
te::fe::PropertyName * ReadGeometryPropertyHelper(te::xml::Reader &reader)
void WriteBaseSymbolizerHelper(const te::xl::SimpleLink *link, te::xml::AbstractWriter &writer)
void WriteSymbolizerHelper(const te::se::Symbolizer *symbolizer, te::xml::AbstractWriter &writer)
This class is used to encode the name of any property of an object.
Definition: PropertyName.h:54
URI C++ Library.
void WriteOnlineResourceHelper(const te::xl::SimpleLink *link, te::xml::AbstractWriter &writer)
void WriteGeometryPropertyHelper(const te::fe::PropertyName *p, te::xml::AbstractWriter &writer)
void WriteParameterValuePtrHelper(const std::string &elementName, const te::se::ParameterValue *p, te::xml::AbstractWriter &writer)
void ReadSymbolizerHelper(te::se::Symbolizer *symbolizer, te::xml::Reader &reader)
A class that models a XML writer object built on top of Xerces-C++.
void WriteSelectedChannelHelper(const std::string &elementName, const te::se::SelectedChannel *sc, te::xml::AbstractWriter &writer)