PluginEngineFactory.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/plugin/PluginEngineFactory.h
22 
23  \brief This is the abstract factory for plugin engines.
24 */
25 
26 #ifndef __TERRALIB_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
27 #define __TERRALIB_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
28 
29 // TerraLib
30 #include "../common/AbstractFactory.h"
31 #include "AbstractPluginEngine.h"
32 #include "Config.h"
33 
34 namespace te
35 {
36  namespace plugin
37  {
38  /*!
39  \class PluginEngineFactory
40 
41  \brief This is the abstract factory for plugin engines.
42 
43  If you want a specific engine in order to load a plugin you can use a command like:
44  <code>
45  te::plugin::AbstractPluginEngine* pEngine = te::plugin::PluginEngineFactory::make("C++");
46  </code>
47 
48  \note The caller of the method make will take the ownership of the returned engine.
49 
50  \sa PluginEngine, AbstractFactory
51  */
52  class TEPLUGINEXPORT PluginEngineFactory : public te::common::AbstractFactory<AbstractPluginEngine, std::string>
53  {
54  public:
55 
56  /*! \brief Virtual destructor. */
57  virtual ~PluginEngineFactory();
58 
59  protected:
60 
61  /*!
62  \brief It creates the factory.
63 
64  The key of a PluginEngineFactory is a string.
65 
66  \param factoryKey The key that identifies the factory.
67  */
68  PluginEngineFactory(const std::string& factoryKey);
69  };
70 
71  } // end namespace da
72 } // end namespace te
73 
74 #endif // __TERRALIB_PLUGIN_INTERNAL_PLUGINENGINEFACTORY_H
This class defines the interface of abstract factories without initializing parameters.
Configuration flags for the TerraLib Plugin module.
An abstract class for plugin engines.
URI C++ Library.
This is the abstract factory for plugin engines.
#define TEPLUGINEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:120