All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Module.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/stmemory/Module.h
22 
23  \brief This singleton defines the TerraLib st memory module entry.
24  This module is a driver for in-memory spatiotemporal data.
25 */
26 
27 #ifndef __TERRALIB_STMEMORY_INTERNAL_MODULE_H
28 #define __TERRALIB_STMEMORY_INTERNAL_MODULE_H
29 
30 // TerraLib
31 #include "../common/Singleton.h"
32 
33 namespace te
34 {
35  namespace stmem
36  {
37  /*!
38  \class Module
39 
40  \brief This singleton defines the TerraLib st memory module entry.
41  */
42  class Module : public te::common::Singleton<Module>
43  {
45 
46  protected:
47 
48  /*! \brief The singleton constructor is not callable outside the class. */
49  Module();
50 
51  /* \brief Destructor. */
52  ~Module();
53 
54  private:
55 
56  /*!
57  \brief This is the startup function for the TerraLib st memory module support.
58 
59  The initialization includes:
60  <ul>
61  <li>Multilanguage support</li>
62  </ul>
63 
64  */
65  static void initialize();
66 
67  /*!
68  \brief This is the cleanup function for the TerraLib st memory module support.
69  */
70  static void finalize();
71 
72  private:
73 
74  static const Module& sm_module; //!< Just to make a static initialization.
75  };
76  } // end namespace st
77 } // end namespace te
78 
79 #endif // __TERRALIB_STMEMORY_INTERNAL_MODULE_H
80 
This singleton defines the TerraLib st memory module entry.
Definition: Module.h:42
static const Module & sm_module
Just to make a static initialization.
Definition: Module.h:74
static void initialize()
This is the startup function for the TerraLib st memory module support.
Definition: Module.cpp:55
static void finalize()
This is the cleanup function for the TerraLib st memory module support.
Definition: Module.cpp:63
Module()
The singleton constructor is not callable outside the class.
Definition: Module.cpp:39
Template support for singleton pattern.
Definition: Singleton.h:100