BoxLoaderStrategyFactory.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 BoxLoaderStrategyFactory.h
22 
23  \brief This is the concrete factory for the database box loader strategy.
24 */
25 
26 #ifndef __TERRALIB_GRAPH_INTERNAL_BOXLOADERSTRATEGYFACTORY_H
27 #define __TERRALIB_GRAPH_INTERNAL_BOXLOADERSTRATEGYFACTORY_H
28 
29 // TerraLib
31 #include "../Config.h"
32 
33 namespace te
34 {
35  namespace graph
36  {
37  //forward declarations
38  class GraphMetadata;
39 
40  /*!
41  \class BoxLoaderStrategyFactory
42 
43  \brief This is the concrete factory for the database box loader strategy.
44 
45  \sa te::graph::AbstractLoaderStrategyFactory
46  */
48  {
49  public:
50 
51  /*! \brief Destructor. */
53 
54  /*! \brief Returns the type (name) of this factory. */
55  const std::string& getType() const;
56 
57  /*! \brief It initializes the factory: the singleton instance will be registered in the abstract factory ... */
58  static void initialize();
59 
60  /*! \brief It finalizes the factory: the singleton instance will be destroyed and will be unregistered from the abstract factory ... */
61  static void finalize();
62 
63  protected:
64 
65  /*! \brief Constructor. */
67 
68  /*!
69  \brief This method must be implemented by subclasses (load strategy types).
70 
71  \param gm The necessary graph information
72 
73  \return The new loader strategy.
74 
75  \note The caller will take the ownership of the returned pointer.
76  */
78 
79  /*!
80  \brief Builder Function used to create the class object.
81  */
83 
84  private:
85 
86  static BoxLoaderStrategyFactory* sm_factory; //!< Static instance used to register the factory
87  };
88 
89  } // end namespace graph
90 } // end namespace te
91 
92 #endif // __TERRALIB_GRAPH_INTERNAL_BOXLOADERSTRATEGYFACTORY_H
93 
#define TEGRAPHEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:178
This is the abstract factory for graph loader strategy.
This is the abstract factory for graph loader strategy.
URI C++ Library.
This class define the main functions necessary to save and load the graph data and metadata informati...
static BoxLoaderStrategyFactory * sm_factory
Static instance used to register the factory.
This is the concrete factory for the database box loader strategy.
Class used to define the graph metadata informations.
Definition: GraphMetadata.h:56