All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SimpleBuiltInType.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 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 General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 // TerraLib
21 #include "SimpleBuiltInType.h"
22 
23 std::string te::xsd::SimpleBuiltInType::m_typeNames[] = {std::string("TODO")};
24 
26  : m_type(type)
27 {
28 }
29 
31  : m_type(rhs.m_type)
32 {
33 }
34 
36 {
37 }
38 
40 {
41  if(this != &rhs)
42  {
43  m_type = rhs.m_type;
44  }
45 
46  return *this;
47 }
48 
50 {
51  return m_type;
52 }
53 
54 const std::string& te::xsd::SimpleBuiltInType::getName() const
55 {
56  return m_typeNames[m_type];
57 }
58 
60 {
61  return new SimpleBuiltInType(*this);
62 }
BuiltInType m_type
The built-in type.
A class for representing built-in XML Schema types.
SimpleBuiltInType & operator=(const SimpleBuiltInType &rhs)
Assignment operator.
A class for representing built-in XML Schema types.
static std::string m_typeNames[1]
The list of names for available types.
BuiltInType
It enumerates the available built-in types.
Definition: Enums.h:81
SimpleBuiltInType(BuiltInType type)
Constructor.
const std::string & getName() const
It returns the built-in type name.
BuiltInType getType() const
It returns the built-in type code.
An abstract class for modeling the definition of a new XML Schema Type.
Definition: Type.h:65