All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Utils.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2011 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/serialization/se/Utils.h
22 
23  \brief Utility methods for Symbology serialization.
24 */
25 
26 #ifndef __TERRALIB_SERIALIZATION_SE_INTERNAL_UTILS_H
27 #define __TERRALIB_SERIALIZATION_SE_INTERNAL_UTILS_H
28 
29 // STL
30 #include <string>
31 
32 namespace te
33 {
34  namespace fe { class PropertyName; }
35 
36  namespace se
37  {
38  class ParameterValue;
39  class SelectedChannel;
40  class Symbolizer;
41  }
42 
43  namespace xl { class SimpleLink; }
44 
45  namespace xml
46  {
47  class Reader;
48  class Writer;
49  }
50 
51  namespace serialize
52  {
53  void WriteStringPtrHelper(const std::string& elementName, const std::string* s, te::xml::Writer& writer);
54 
55  void WriteParameterValuePtrHelper(const std::string& elementName, const te::se::ParameterValue* p, te::xml::Writer& writer);
56 
58 
60 
61  void WriteSymbolizerHelper(const te::se::Symbolizer* symbolizer, te::xml::Writer& writer);
62 
63  void ReadSymbolizerHelper(te::se::Symbolizer* symbolizer, te::xml::Reader& reader);
64 
65  void WriteSelectedChannelHelper(const std::string& elementName, const te::se::SelectedChannel* sc, te::xml::Writer& writer);
66 
68 
70 
71  } // end namespace serialize
72 } // end namespace te
73 
74 #endif // __TERRALIB_SERIALIZATION_SE_INTERNAL_UTILS_H
75 
This class is used to encode the name of any property of an object.
Definition: PropertyName.h:54
void WriteSymbolizerHelper(const te::se::Symbolizer *symbolizer, te::xml::Writer &writer)
Definition: Utils.cpp:76
A Symbolizer describes how a feature is to appear on a map.
Definition: Symbolizer.h:80
This class models a XML reader object.
Definition: Reader.h:55
void WriteParameterValuePtrHelper(const std::string &elementName, const te::se::ParameterValue *p, te::xml::Writer &writer)
Definition: Utils.cpp:46
Simple link.
Definition: SimpleLink.h:48
void WriteSelectedChannelHelper(const std::string &elementName, const te::se::SelectedChannel *sc, te::xml::Writer &writer)
Definition: Utils.cpp:122
A selected channel to be display.
void WriteOnlineResourceHelper(const te::xl::SimpleLink *link, te::xml::Writer &writer)
Definition: Utils.cpp:66
te::fe::PropertyName * ReadGeometryPropertyHelper(te::xml::Reader &reader)
Definition: Utils.cpp:142
void ReadSymbolizerHelper(te::se::Symbolizer *symbolizer, te::xml::Reader &reader)
Definition: Utils.cpp:87
void WriteGeometryPropertyHelper(const te::fe::PropertyName *p, te::xml::Writer &writer)
Definition: Utils.cpp:132
void WriteStringPtrHelper(const std::string &elementName, const std::string *s, te::xml::Writer &writer)
Definition: Utils.cpp:41
void WriteBaseSymbolizerHelper(const te::xl::SimpleLink *link, te::xml::Writer &writer)
Definition: Utils.cpp:56
The &quot;ParameterValueType&quot; uses WFS-Filter expressions to give values for SE graphic parameters...
This class models a XML writer object.
Definition: Writer.h:52