SimpleTypeConstructor.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 SimpleTypeConstructor.h
22 
23  \brief A base class for SimpleType elements. List, Union and Restriction4SimpleType is derived from this base class.
24 */
25 
26 #ifndef __TERRALIB_XSD_INTERNAL_SIMPLETYPECONSTRUCTOR_H
27 #define __TERRALIB_XSD_INTERNAL_SIMPLETYPECONSTRUCTOR_H
28 
29 // TerraLib
30 #include "Annotated.h"
31 #include "Identifiable.h"
32 
33 namespace te
34 {
35  namespace xsd
36  {
37  /*!
38  \class SimpleTypeConstructor
39 
40  \brief A base class for SympleType elements. List, Union and Restriction4SimpleType is derived from this base class.
41  */
43  {
44  public:
45 
46  /*!
47  \brief Constructor.
48 
49  \param ann An annotation.
50  \param id It specifies a unique ID for the element. It can be a NULL value.
51 
52  \note The SimpleTypeConstructor object will take the ownership of the annotation and id.
53  */
54  SimpleTypeConstructor(Annotation* ann = 0, std::string* id = 0);
55 
56  /*!
57  \brief Copy constructor.
58 
59  \param rhs Right-hand-side object.
60  */
62 
63  /*! \brief Virtual destructor. */
64  virtual ~SimpleTypeConstructor();
65 
66  /*!
67  \brief Assignment operator not allowed.
68 
69  \param rhs Right-hand-side object.
70 
71  \return A reference to this object.
72  */
73  SimpleTypeConstructor& operator=(const SimpleTypeConstructor& rhs);
74 
75  /*!
76  \brief It creates a clone of the object.
77 
78  \return A clone of the object. The caller will take the ownership of the returned pointer.
79  */
80  virtual SimpleTypeConstructor* clone() const = 0;
81  };
82 
83  } // end namespace xsd
84 } // end namespace te
85 
86 #endif // __TERRALIB_XSD_INTERNAL_SIMPLETYPECONSTRUCTOR_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.
A base class for SympleType elements. List, Union and Restriction4SimpleType is derived from this bas...
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
A class that models a XSD annotation element.
Definition: Annotation.h:55