Globals.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 terralib/postgis/Globals.h
22 
23  \brief An static class with global definitions.
24 */
25 
26 #ifndef __TERRALIB_POSTGIS_INTERNAL_GLOBALS_H
27 #define __TERRALIB_POSTGIS_INTERNAL_GLOBALS_H
28 
29 // TerraLib
30 #include "../common/Static.h"
31 #include "Config.h"
32 
33 // STL
34 #include <string>
35 
36 namespace te
37 {
38  // Forward declaration
39  namespace da
40  {
41  class DataSourceCapabilities;
42  class SQLDialect;
43  }
44 
45  namespace pgis
46  {
47  /*!
48  \class Globals
49 
50  \brief An static class with global definitions.
51  */
53  {
54  public:
55 
56 // PostgreSQL type names
57  static const std::string sm_unknownTypeName; //!< The string literal representation for the unknown type.
58  static const std::string sm_charTypeName; //!< The string literal representation for the 1-byte character type.
59  static const std::string sm_int2TypeName; //!< The string literal representation for the int2 type
60  static const std::string sm_intTypeName; //!< The string literal representation for the int type
61  static const std::string sm_int8TypeName; //!< The string literal representation for the int8 type
62  static const std::string sm_numericTypeName; //!< The string literal representation for the numeric type
63  static const std::string sm_dateTypeName; //!< The string literal representation for the date type
64  static const std::string sm_timeTypeName; //!< The string literal representation for the time type
65  static const std::string sm_timeTZTypeName; //!< The string literal representation for the time type
66  static const std::string sm_timeStampTypeName; //!< The string literal representation for the time stamp type
67  static const std::string sm_timeStampTZTypeName; //!< The string literal representation for the time stamp with time zone type
68  static const std::string sm_intervalTypeName; //!< The string literal representation for the interval
69  static const std::string sm_floatTypeName; //!< The string literal representation for the float type
70  static const std::string sm_doubleTypeName; //!< The string literal representation for the double type
71  static const std::string sm_booleanTypeName; //!< The string literal representation for the boolean type
72  static const std::string sm_fixedcharTypeName; //!< The string literal representation for the char type.
73  static const std::string sm_varcharTypeName; //!< The string literal representation for the varchar type
74  static const std::string sm_stringTypeName; //!< The string literal representation for the string type
75  static const std::string sm_byteArrayTypeName; //!< The string literal representation for the byte array type
76  static const std::string sm_pointTypeName; //!< The string literal representation for PostGIS point geometry type
77  static const std::string sm_pointMTypeName; //!< The string literal representation for PostGIS point geometry type
78  static const std::string sm_lineStringTypeName; //!< The string literal representation for PostGIS line string geometry type
79  static const std::string sm_lineStringMTypeName; //!< The string literal representation for PostGIS line string with m geometry type
80  static const std::string sm_polygonTypeName; //!< The string literal representation for PostGIS polygon geometry type
81  static const std::string sm_polygonMTypeName; //!< The string literal representation for PostGIS polygon with m geometry type
82  static const std::string sm_geometryCollectionTypeName; //!< The string literal representation for PostGIS geometry collection geometry type
83  static const std::string sm_geometryCollectionMTypeName; //!< The string literal representation for PostGIS geometry collection with m geometry type
84  static const std::string sm_multiPointTypeName; //!< The string literal representation for PostGIS multi-point geometry type
85  static const std::string sm_multiPointMTypeName; //!< The string literal representation for PostGIS multi-point with m geometry type
86  static const std::string sm_multiLineStringTypeName; //!< The string literal representation for PostGIS multi-linestring geometry type
87  static const std::string sm_multiLineStringMTypeName; //!< The string literal representation for PostGIS multi-linestring with m geometry type
88  static const std::string sm_multiPolygonTypeName; //!< The string literal representation for PostGIS multi-polygon geometry type
89  static const std::string sm_multiPolygonMTypeName; //!< The string literal representation for PostGIS multi-polygon with m geometry type
90  static const std::string sm_geometryTypeName; //!< The string literal representation for PostGIS base geometry type
91 
92  static const std::string sm_driverIdentifier; //!< The PostGIS driver identifier.
93 
94  static te::da::SQLDialect* sm_queryDialect; //!< The query dialect supported by PostGIS driver.
95  static te::da::DataSourceCapabilities* sm_capabilities; //!< The query dialect supported by PostGIS driver.
96  };
97 
98  } // end namespace pgis
99 } // end namespace te
100 
101 #endif // __TERRALIB_POSTGIS_INTERNAL_GLOBALS_H
102 
static const std::string sm_intTypeName
The string literal representation for the int type.
Definition: Globals.h:60
static const std::string sm_doubleTypeName
The string literal representation for the double type.
Definition: Globals.h:70
static const std::string sm_pointTypeName
The string literal representation for PostGIS point geometry type.
Definition: Globals.h:76
static const std::string sm_unknownTypeName
The string literal representation for the unknown type.
Definition: Globals.h:57
static const std::string sm_byteArrayTypeName
The string literal representation for the byte array type.
Definition: Globals.h:75
static const std::string sm_timeTZTypeName
The string literal representation for the time type.
Definition: Globals.h:65
static const std::string sm_driverIdentifier
The PostGIS driver identifier.
Definition: Globals.h:92
It represents the SQL query dialect accepted by a given data source.
Definition: SQLDialect.h:55
static const std::string sm_dateTypeName
The string literal representation for the date type.
Definition: Globals.h:63
static const std::string sm_timeTypeName
The string literal representation for the time type.
Definition: Globals.h:64
static const std::string sm_pointMTypeName
The string literal representation for PostGIS point geometry type.
Definition: Globals.h:77
A class that represents the known capabilities of a specific data source, i.e. this class informs all...
static const std::string sm_lineStringTypeName
The string literal representation for PostGIS line string geometry type.
Definition: Globals.h:78
An static class with global definitions.
Definition: Globals.h:52
#define TEPGISEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:195
static const std::string sm_fixedcharTypeName
The string literal representation for the char type.
Definition: Globals.h:72
static const std::string sm_lineStringMTypeName
The string literal representation for PostGIS line string with m geometry type.
Definition: Globals.h:79
static const std::string sm_stringTypeName
The string literal representation for the string type.
Definition: Globals.h:74
static const std::string sm_int2TypeName
The string literal representation for the int2 type.
Definition: Globals.h:59
static const std::string sm_geometryTypeName
The string literal representation for PostGIS base geometry type.
Definition: Globals.h:90
static te::da::DataSourceCapabilities * sm_capabilities
The query dialect supported by PostGIS driver.
Definition: Globals.h:95
static const std::string sm_geometryCollectionMTypeName
The string literal representation for PostGIS geometry collection with m geometry type...
Definition: Globals.h:83
static const std::string sm_floatTypeName
The string literal representation for the float type.
Definition: Globals.h:69
static const std::string sm_multiLineStringTypeName
The string literal representation for PostGIS multi-linestring geometry type.
Definition: Globals.h:86
Configuration flags for the PostGIS Driver Implementation of TerraLib.
URI C++ Library.
static const std::string sm_multiPointTypeName
The string literal representation for PostGIS multi-point geometry type.
Definition: Globals.h:84
static const std::string sm_multiLineStringMTypeName
The string literal representation for PostGIS multi-linestring with m geometry type.
Definition: Globals.h:87
static const std::string sm_numericTypeName
The string literal representation for the numeric type.
Definition: Globals.h:62
static const std::string sm_charTypeName
The string literal representation for the 1-byte character type.
Definition: Globals.h:58
static const std::string sm_timeStampTZTypeName
The string literal representation for the time stamp with time zone type.
Definition: Globals.h:67
static const std::string sm_geometryCollectionTypeName
The string literal representation for PostGIS geometry collection geometry type.
Definition: Globals.h:82
static const std::string sm_multiPolygonTypeName
The string literal representation for PostGIS multi-polygon geometry type.
Definition: Globals.h:88
static const std::string sm_multiPointMTypeName
The string literal representation for PostGIS multi-point with m geometry type.
Definition: Globals.h:85
static const std::string sm_polygonTypeName
The string literal representation for PostGIS polygon geometry type.
Definition: Globals.h:80
static const std::string sm_intervalTypeName
The string literal representation for the interval.
Definition: Globals.h:68
static te::da::SQLDialect * sm_queryDialect
The query dialect supported by PostGIS driver.
Definition: Globals.h:94
static const std::string sm_polygonMTypeName
The string literal representation for PostGIS polygon with m geometry type.
Definition: Globals.h:81
static const std::string sm_multiPolygonMTypeName
The string literal representation for PostGIS multi-polygon with m geometry type. ...
Definition: Globals.h:89
static const std::string sm_varcharTypeName
The string literal representation for the varchar type.
Definition: Globals.h:73
static const std::string sm_timeStampTypeName
The string literal representation for the time stamp type.
Definition: Globals.h:66
A base type for static classes.
Definition: Static.h:43
static const std::string sm_booleanTypeName
The string literal representation for the boolean type.
Definition: Globals.h:71
static const std::string sm_int8TypeName
The string literal representation for the int8 type.
Definition: Globals.h:61