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/xsd/Utils.h
22 
23  \brief Utility methods for Schema serialization.
24 */
25 
26 #ifndef __TERRALIB_SERIALIZATION_XSD_INTERNAL_UTILS_H
27 #define __TERRALIB_SERIALIZATION_XSD_INTERNAL_UTILS_H
28 
29 // TerraLib
30 #include "../../xsd/Facet.h"
31 
32 // STL
33 #include <string>
34 
35 namespace te
36 {
37  namespace xml
38  {
39  class Reader;
40  }
41 
42  namespace xsd
43  {
44  class Annotated;
45  class Identifiable;
46  class Occurs;
47  class QName;
48  }
49 
50  namespace serialize
51  {
52  void ReadIdentifiable(te::xsd::Identifiable* identifiable, te::xml::Reader& reader);
53 
54  void ReadAnnotated(te::xsd::Annotated* annotated, te::xml::Reader& reader);
55 
56  void ReadOccurs(te::xsd::Occurs* occurs, te::xml::Reader& reader);
57 
58  te::xsd::QName* CreateQName(const std::string& name);
59 
60  te::xsd::FacetType GetFacetType(const std::string& name);
61 
62  } // end namespace serialize
63 } // end namespace te
64 
65 #endif // __TERRALIB_SERIALIZATION_XSD_INTERNAL_UTILS_H
A base class for XSD classes that have occurs attributes.
Definition: Occurs.h:43
This class models a XML reader object.
Definition: Reader.h:55
void ReadAnnotated(te::xsd::Annotated *annotated, te::xml::Reader &reader)
Definition: Utils.cpp:50
FacetType
It enumerates the available facet types.
Definition: Enums.h:91
void ReadIdentifiable(te::xsd::Identifiable *identifiable, te::xml::Reader &reader)
Definition: Utils.cpp:41
A base class for XSD classes that must provide a unique ID property.
Definition: Identifiable.h:46
te::xsd::QName * CreateQName(const std::string &name)
Definition: Utils.cpp:77
A class to be used to represent XML qualified names.
Definition: QName.h:49
void ReadOccurs(te::xsd::Occurs *occurs, te::xml::Reader &reader)
Definition: Utils.cpp:62
te::xsd::FacetType GetFacetType(const std::string &name)
Definition: Utils.cpp:86
A base class for XSD classes that may allow annotation.
Definition: Annotated.h:49