Serializer.h
Go to the documentation of this file.
1 /* Copyright (C) 2011-2012 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/qt/plugins/mobile/core/form/Serializer.h
22 
23 \brief This file defines the serializer for form classes.
24 */
25 
26 #ifndef __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SERIALIZER_H
27 #define __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SERIALIZER_H
28 
29 // TerraLib
30 #include "../../Config.h"
31 
32 // STL
33 #include <string>
34 
35 namespace te
36 {
37  //Forward declaration
38  namespace se { class Style; }
39 
40  namespace qt
41  {
42  namespace plugins
43  {
44  namespace terramobile
45  {
46  class Section;
47 
48  std::string Write(te::qt::plugins::terramobile::Section* section);
49 
51 
52  std::string WriteStyle(const te::se::Style* style, std::string path = "style.xml");
53 
54  std::auto_ptr<te::se::Style> ReadStyle(std::string xml);
55 
56  } // end namespace thirdParty
57  } // end namespace plugins
58  } // end namespace qt
59 } // end namespace te
60 
61 
62 #endif // __TE_QT_PLUGINS_TERRAMOBILE_INTERNAL_SERIALIZER_H
std::auto_ptr< te::se::Style > ReadStyle(std::string xml)
std::string WriteStyle(const te::se::Style *style, std::string path="style.xml")
This class defines the Section object.
Definition: Section.h:53
The Style defines the styling that is to be applied to a geographic dataset (vector geometries or cov...
Definition: Style.h:65
URI C++ Library.
std::string Write(te::qt::plugins::terramobile::Section *section)
te::qt::plugins::terramobile::Section * Read(std::string ss)