Loading...
Searching...
No Matches
FeatureInfoMakerFactory.h
Go to the documentation of this file.
1/* Copyright (C) 2017 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/qt/widgets/layer/info/FeatureInfoMakerFactory.h
22
23 \brief FeatureInfoMakerFactory is the base implementation of a factory to make
24 AbstractFeatureInfoMaker objects.
25*/
26
27#ifndef __TERRALIB_QT_WIDGETS_LAYER_INTERNAL_FEATUREINFOMAKERFACTORY_H
28#define __TERRALIB_QT_WIDGETS_LAYER_INTERNAL_FEATUREINFOMAKERFACTORY_H
29
30//TerraLib
31#include "../../Config.h"
32#include "../../../../common/AbstractFactory.h"
33
35
36namespace te
37{
38 namespace qt
39 {
40 namespace widgets
41 {
42
43 class TEQTWIDGETSEXPORT FeatureInfoMakerFactory : public te::common::AbstractFactory<AbstractFeatureInfoMaker, std::string>
44 {
45
46 public:
47
48 /*!
49 * \brief It creates and returns the default AbstractFeatureInfoMaker
50 *
51 * \return A default AbstractFeatureInfoMaker
52 *
53 * \note The caller will take the ownership of the returned pointer
54 */
56
57 /*!
58 * \brief It creates and returns the specific AbstractFeatureInfoMaker
59 *
60 * \return A specific AbstractFeatureInfoMaker
61 *
62 * \param makerKey The name of specific feature info maker
63 *
64 * \note The caller will take the ownership of the returned pointer
65 */
66 static AbstractFeatureInfoMaker* make(const std::string& makerKey);
67
68 /*! \brief Destructor. */
70
71 protected:
72
73 /*!
74 \brief Constructor.
75
76 \param factoryKey The key that identifies the factory.
77 */
78 FeatureInfoMakerFactory(const std::string& factoryKey);
79
80 };
81
82 }
83 }
84}
85
86#endif // __TERRALIB_QT_WIDGETS_LAYER_INTERNAL_FEATUREINFOMAKERFACTORY_H
AbstractFeatureInfoMaker is an abstraction to construct a QTreeWidgetItem to be used on Info tool scr...
This class defines the interface of abstract factories without initializing parameters.
static AbstractFeatureInfoMaker * make(const std::string &makerKey)
It creates and returns the specific AbstractFeatureInfoMaker.
FeatureInfoMakerFactory(const std::string &factoryKey)
Constructor.
virtual ~FeatureInfoMakerFactory()
Destructor.
static AbstractFeatureInfoMaker * make()
It creates and returns the default AbstractFeatureInfoMaker.
TerraLib.
#define TEQTWIDGETSEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:63