Loading...
Searching...
No Matches
TerraLib.h
Go to the documentation of this file.
1/*
2 Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
3
4 This file is part of the TerraLib - a Framework for building GIS enabled applications.
5
6 TerraLib is free software: you can redistribute it and/or modify
7 it under the terms of the GNU Lesser General Public License as published by
8 the Free Software Foundation, either version 3 of the License,
9 or (at your option) any later version.
10
11 TerraLib is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU Lesser General Public License for more details.
15
16 You should have received a copy of the GNU Lesser General Public License
17 along with TerraLib. See COPYING. If not, write to
18 TerraLib Team at <terralib-team@terralib.org>.
19 */
20
21/*!
22 \file terralib/core/plugin.h
23
24 \brief Include files for Core Plugin Library.
25*/
26
27#ifndef __TERRALIB_CORE_TERRALIB_H__
28#define __TERRALIB_CORE_TERRALIB_H__
29
30// TerraLib
31
32namespace te
33{
34 namespace core
35 {
36
37 /*!
38 \class TerraLib
39
40 \brief An utility class to control the startup and cleanup of the TerraLib Platform and its resources.
41 */
43 {
44 public:
45
46 /*!
47 \brief It initializes the TerraLib Platform.
48 */
49 void initialize();
50
51 /*!
52 \brief It finalizes the TerraLib Platform.
53 */
54 void finalize();
55
56 /*!
57 \brief It returns a reference to the singleton instance.
58
59 \return A reference to the singleton instance.
60 */
61 static TerraLib& instance();
62
63 protected:
64
65 /*! \brief Singleton constructor must be private or protected. */
67
68 /*! \brief Singleton destructor must be private or protected. */
70
71 /*! \brief Singleton copy constructor must be private or protected. */
72 TerraLib(const TerraLib&); // no copy allowed
73
74 /*! \brief Singleton copy assignment operator must be private or protected. */
75 TerraLib& operator=(const TerraLib&); // no copy allowed
76 };
77 }
78}
79
80#endif // __TERRALIB_CORE_TERRALIB_H__
An utility class to control the startup and cleanup of the TerraLib Platform and its resources.
Definition TerraLib.h:43
TerraLib()
Singleton constructor must be private or protected.
Definition TerraLib.h:66
~TerraLib()
Singleton destructor must be private or protected.
Definition TerraLib.h:69
TerraLib & operator=(const TerraLib &)
Singleton copy assignment operator must be private or protected.
void initialize()
It initializes the TerraLib Platform.
static TerraLib & instance()
It returns a reference to the singleton instance.
TerraLib(const TerraLib &)
Singleton copy constructor must be private or protected.
void finalize()
It finalizes the TerraLib Platform.
TerraLib.