Include.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 Include.h
22 
23  \brief It models a XML Schema include.
24 */
25 
26 #ifndef __TERRALIB_XSD_INTERNAL_INCLUDE_H
27 #define __TERRALIB_XSD_INTERNAL_INCLUDE_H
28 
29 // TerraLib
30 #include "Annotated.h"
31 #include "Identifiable.h"
32 
33 namespace te
34 {
35  namespace xsd
36  {
37  /*!
38  \class Include
39 
40  \brief It models a XML Schema include.
41 
42  \sa Annotated, Identifiable
43 
44  \note Parent elements: schema.
45  */
46  class TEXSDEXPORT Include : public Identifiable, public Annotated
47  {
48  public:
49 
50  /*!
51  \brief Constructor.
52 
53  \param id It specifies a unique ID for the element. It can be a NULL value.
54  \param schemaLocation It specifies the URI to the schema to include in the target namespace of the containing schema.
55  */
56  Include(const std::string& schemaLocation, Annotation* ann = 0, std::string* id = 0);
57 
58  /*!
59  \brief Copy constructor.
60 
61  \param rhs Right-hand-side object.
62 
63  \todo Implement!
64  */
65  Include(const Include& rhs);
66 
67  /*! \brief Destructor. */
68  ~Include();
69 
70  /*!
71  \brief Assignment operator.
72 
73  \param rhs Right-hand-side object.
74 
75  \return A reference to this object.
76 
77  \todo Implement!
78  */
79  Include& operator=(const Include& rhs);
80 
81  /*!
82  \brief It returns the location of the referenced schema.
83 
84  \return The schema location.
85  */
86  const std::string& getSchemaLocation() const;
87 
88  /*!
89  \brief It sets the location of the referenced schema.
90 
91  \param schemaLocation The schema location.
92  */
93  void setSchemaLocation(const std::string& schemaLocation);
94 
95  private:
96 
97  std::string m_schemaLocation; //!< It specifies the URI to the schema to include in the target namespace of the containing schema. (Required)
98  };
99 
100  } // end namespace xsd
101 } // end namespace te
102 
103 #endif // __TERRALIB_XSD_INTERNAL_INCLUDE_H
A base class for XSD classes that may allow annotation.
Definition: Annotated.h:49
A base class for XSD classes that may allow annotation.
It models a XML Schema include.
Definition: Include.h:46
A base class for XSD classes that must provide a unique ID property.
Definition: Identifiable.h:46
URI C++ Library.
A base class for XSD classes that must provide a unique ID property.
#define TEXSDEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:57
std::string m_schemaLocation
It specifies the URI to the schema to include in the target namespace of the containing schema...
Definition: Include.h:97
A class that models a XSD annotation element.
Definition: Annotation.h:55