All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Include.cpp
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.cpp
22 
23  \brief It models a XML Schema include.
24  */
25 
26 // TerraLib
27 #include "Include.h"
28 
29 te::xsd::Include::Include(const std::string& schemaLocation, Annotation* ann, std::string* id)
30  : Identifiable(id),
31  Annotated(ann),
32  m_schemaLocation(schemaLocation)
33 {
34 }
35 
37  : Identifiable(rhs),
38  Annotated(rhs),
39  m_schemaLocation(rhs.m_schemaLocation)
40 {
41 }
42 
44 {
45 }
46 
48 {
49  return *this;
50 }
51 
52 const std::string& te::xsd::Include::getSchemaLocation() const
53 {
54  return m_schemaLocation;
55 }
56 
57 void te::xsd::Include::setSchemaLocation(const std::string& schemaLocation)
58 {
59  m_schemaLocation = schemaLocation;
60 }
A base class for XSD classes that may allow annotation.
Definition: Annotated.h:49
Include(const std::string &schemaLocation, Annotation *ann=0, std::string *id=0)
Constructor.
Definition: Include.cpp:29
It models a XML Schema include.
Definition: Include.h:46
~Include()
Destructor.
Definition: Include.cpp:43
A base class for XSD classes that must provide a unique ID property.
Definition: Identifiable.h:46
void setSchemaLocation(const std::string &schemaLocation)
It sets the location of the referenced schema.
Definition: Include.cpp:57
Include & operator=(const Include &rhs)
Assignment operator.
Definition: Include.cpp:47
It models a XML Schema include.
const std::string & getSchemaLocation() const
It returns the location of the referenced schema.
Definition: Include.cpp:52
A class that models a XSD annotation element.
Definition: Annotation.h:55