All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Plugin.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 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/plugin/Plugin.cpp
22 
23  \brief An abstract interface for TerraLib Plugins.
24 */
25 
26 // TerraLib
27 #include "Plugin.h"
28 
30 {
31  return m_pluginInfo;
32 }
33 
35 {
36  return m_initialized;
37 }
38 
40 {
41  m_initialized = true;
42 }
43 
45 {
46  m_initialized = false;
47 }
48 
50 {
51 }
52 
54  : m_pluginInfo(pInfo),
55  m_initialized(false)
56 {
57 }
58 
A base class for plugin types.
virtual ~Plugin()
Virtual destructor.
Definition: Plugin.cpp:49
const PluginInfo & getInfo() const
It return the information associated to the plugin.
Definition: Plugin.cpp:29
bool isStarted() const
It tells if the plugin was started or not.
Definition: Plugin.cpp:34
PluginInfo m_pluginInfo
Information about the plugin.
Definition: Plugin.h:78
virtual void shutdown()
Do nothing! Just set plugin as stopped.
Definition: Plugin.cpp:44
Plugin(const PluginInfo &pInfo)
It initializes a new plugin.
Definition: Plugin.cpp:53
The basic information about a plugin.
Definition: PluginInfo.h:61
virtual void startup()
Do nothing! Just set plugin as started.
Definition: Plugin.cpp:39