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/graph/Globals.h
22 
23  \brief An static class with global definitions for the TerraLib Graph Module.
24 */
25 
26 #ifndef __TERRALIB_GRAPH_INTERNAL_GLOBAL_H
27 #define __TERRALIB_GRAPH_INTERNAL_GLOBAL_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  namespace graph
39  {
40  /*!
41  \class Globals
42 
43  \brief An static class with global definitions for the TerraLib Graph Module.
44  */
46  {
47  public:
48 
49  static const std::string sm_moduleIdentifier; //!< The GRAPH module identifier.
50 
51 
52  static const std::string sm_factoryGraphTypeGraph; //!< Graph Factory Name.
53  static const std::string sm_factoryGraphTypeBidirectionalGraph; //!< Bidirectional Graph Factory Name.
54  static const std::string sm_factoryGraphTypeDirectedGraph; //!< Directed Graph Factory Name.
55  static const std::string sm_factoryGraphTypeUndirectedGraph; //!< Undirected Graph Factory Name.
56 
57  static const std::string sm_factoryCachePolicyTypeFIFO; //!< FIFO Cache Policy Factory Name.
58  static const std::string sm_factoryCachePolicyTypeLFU; //!< LFU Cache Policy Factory Name.
59 
60  static const std::string sm_factoryLoaderStrategyTypeBox; //!< Box Loader Strategy Factory Name.
61  static const std::string sm_factoryLoaderStrategyTypeSequence; //!< Sequence Loader Strategy Factory Name.
62 
63  static const std::string sm_graphFactoryDefaultObject; //!< This definition is used to set the default graph type.
64  static const std::string sm_cachePolicyFactoryDefaultObject; //!< This definition is used to set the default cache policy.
65  static const std::string sm_loaderStrategyFactoryDefaultObject; //!< This definition is used to set the default graph loader strategy.
66 
67  static const int sm_graphCacheDefaultMaxSize; //!< This definition is used to set the max graph cache size.
68  static const int sm_graphVecCacheDefaultMaxSize; //!< This definition is used to set the max graph cache vector size.
69  static const int sm_boxLoaderStrategyDefaultSize; //!< This definition is used to set the default box strategy loader box size.
70 
71  static const std::string sm_vertexStorageMode; //!< This definition is used to set the vertex storage mode.
72  static const std::string sm_edgeStorageMode; //!< This definition is used to set the edge storage mode.
73 
74  static const std::string sm_tableGraphName; //!< Database Model Table Graph Name
75  static const std::string sm_tableGraphAttrId; //!< Attribute Id
76  static const std::string sm_tableGraphAttrName; //!< Attribute Name
77  static const std::string sm_tableGraphAttrType; //!< Attribute Type
78  static const std::string sm_tableGraphAttrTableName; //!< Attribute Table Name
79  static const std::string sm_tableGraphAttrDesc; //!< Attribute Description
80 
81  static const std::string sm_tableAttributeName; //!< Database Model Table Attribute Name
82  static const std::string sm_tableAttributeAttrId; //!< Attribute Id
83  static const std::string sm_tableAttributeAttrGraphId; //!< Attribute Graph Id
84  static const std::string sm_tableAttributeAttrTable; //!< Attribute Table
85  static const std::string sm_tableAttributeAttrColumn; //!< Attribute Column
86  static const std::string sm_tableAttributeAttrLink; //!< Attribute Link
87  static const std::string sm_tableAttributeAttrType; //!< Attribute Type
88 
89  static const std::string sm_tableEdgeModelSufixName; //!< Database Model Edge Model Table Name
90  static const std::string sm_tableEdgeAttributeModelSufixName; //!< Database Model Edge Attribute Model Table Name
91  static const std::string sm_tableEdgeModelAttrId; //!< Attribute Id
92  static const std::string sm_tableEdgeModelAttrVFrom; //!< Attribute Vertex From
93  static const std::string sm_tableEdgeModelAttrVTo; //!< Attribute Vertex To
94 
95  static const std::string sm_tableVertexModelSufixName; //!< Database Model Vertex Model Table Name
96  static const std::string sm_tableVertexAttributeModelSufixName; //!< Database Model Vertex Attribute Model Table Name
97  static const std::string sm_tableVertexModelAttrId; //!< Attribute id
98 
99  };
100 
101  } // end namespace mem
102 } // end namespace te
103 
104 #endif // __TERRALIB_MEMORY_INTERNAL_GLOBAL_H
static const std::string sm_moduleIdentifier
The GRAPH module identifier.
Definition: Globals.h:49
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:178
static const std::string sm_tableVertexModelAttrId
Attribute id.
Definition: Globals.h:97
static const std::string sm_factoryLoaderStrategyTypeBox
Box Loader Strategy Factory Name.
Definition: Globals.h:60
static const std::string sm_tableAttributeAttrId
Attribute Id.
Definition: Globals.h:82
static const std::string sm_tableGraphAttrName
Attribute Name.
Definition: Globals.h:76
static const std::string sm_graphFactoryDefaultObject
This definition is used to set the default graph type.
Definition: Globals.h:63
static const std::string sm_factoryGraphTypeUndirectedGraph
Undirected Graph Factory Name.
Definition: Globals.h:55
static const std::string sm_tableGraphName
Database Model Table Graph Name.
Definition: Globals.h:74
static const std::string sm_factoryGraphTypeGraph
Graph Factory Name.
Definition: Globals.h:52
static const std::string sm_tableAttributeAttrGraphId
Attribute Graph Id.
Definition: Globals.h:83
static const std::string sm_factoryCachePolicyTypeLFU
LFU Cache Policy Factory Name.
Definition: Globals.h:58
static const std::string sm_cachePolicyFactoryDefaultObject
This definition is used to set the default cache policy.
Definition: Globals.h:64
static const std::string sm_tableGraphAttrType
Attribute Type.
Definition: Globals.h:77
static const int sm_graphCacheDefaultMaxSize
This definition is used to set the max graph cache size.
Definition: Globals.h:67
static const std::string sm_tableEdgeModelAttrId
Attribute Id.
Definition: Globals.h:91
static const std::string sm_tableAttributeAttrColumn
Attribute Column.
Definition: Globals.h:85
static const std::string sm_tableGraphAttrTableName
Attribute Table Name.
Definition: Globals.h:78
URI C++ Library.
static const std::string sm_tableGraphAttrId
Attribute Id.
Definition: Globals.h:75
static const std::string sm_vertexStorageMode
This definition is used to set the vertex storage mode.
Definition: Globals.h:71
static const std::string sm_tableAttributeAttrLink
Attribute Link.
Definition: Globals.h:86
static const std::string sm_tableGraphAttrDesc
Attribute Description.
Definition: Globals.h:79
static const std::string sm_factoryGraphTypeDirectedGraph
Directed Graph Factory Name.
Definition: Globals.h:54
static const std::string sm_tableAttributeName
Database Model Table Attribute Name.
Definition: Globals.h:81
static const int sm_boxLoaderStrategyDefaultSize
This definition is used to set the default box strategy loader box size.
Definition: Globals.h:69
static const std::string sm_factoryLoaderStrategyTypeSequence
Sequence Loader Strategy Factory Name.
Definition: Globals.h:61
static const std::string sm_factoryGraphTypeBidirectionalGraph
Bidirectional Graph Factory Name.
Definition: Globals.h:53
static const std::string sm_factoryCachePolicyTypeFIFO
FIFO Cache Policy Factory Name.
Definition: Globals.h:57
static const std::string sm_loaderStrategyFactoryDefaultObject
This definition is used to set the default graph loader strategy.
Definition: Globals.h:65
static const int sm_graphVecCacheDefaultMaxSize
This definition is used to set the max graph cache vector size.
Definition: Globals.h:68
static const std::string sm_tableEdgeAttributeModelSufixName
Database Model Edge Attribute Model Table Name.
Definition: Globals.h:90
static const std::string sm_tableEdgeModelAttrVFrom
Attribute Vertex From.
Definition: Globals.h:92
static const std::string sm_tableVertexAttributeModelSufixName
Database Model Vertex Attribute Model Table Name.
Definition: Globals.h:96
A base type for static classes.
Definition: Static.h:43
static const std::string sm_tableEdgeModelAttrVTo
Attribute Vertex To.
Definition: Globals.h:93
static const std::string sm_tableAttributeAttrTable
Attribute Table.
Definition: Globals.h:84
An static class with global definitions for the TerraLib Graph Module.
Definition: Globals.h:45
static const std::string sm_tableEdgeModelSufixName
Database Model Edge Model Table Name.
Definition: Globals.h:89
static const std::string sm_edgeStorageMode
This definition is used to set the edge storage mode.
Definition: Globals.h:72
static const std::string sm_tableVertexModelSufixName
Database Model Vertex Model Table Name.
Definition: Globals.h:95
static const std::string sm_tableAttributeAttrType
Attribute Type.
Definition: Globals.h:87