ClassifierDummyStrategy.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/rp/ClassifierDummyStrategy.h
22 
23  \brief Dummy strategy (just for testing purposes).
24 */
25 
26 #ifndef __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
27 #define __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
28 
29 #include "ClassifierStrategy.h"
31 #include "Config.h"
32 
33 namespace te
34 {
35  namespace rp
36  {
37  /*!
38  \class ClassifierDummyStrategy
39 
40  \brief Dummy strategy (just for testing purposes).
41 
42  \ingroup rp_class
43  */
45  {
46  public:
47 
48  /*!
49  \class Parameters
50 
51  \brief Classifier Parameters
52  */
54  {
55  public:
56 
57  unsigned int m_dummyParameter; //!< A dummy parameter.
58 
59  Parameters();
60 
61  ~Parameters();
62 
63  //overload
64  const Parameters& operator=(const Parameters& params);
65 
66  //overload
67  void reset() throw( te::rp::Exception );
68 
69  //overload
70  AbstractParameters* clone() const;
71  };
72 
73  public:
74 
76 
77  ~ClassifierDummyStrategy();
78 
79  //overload
80  bool initialize(ClassifierStrategyParameters const* const strategyParams) throw(te::rp::Exception);
81 
82  //overload
83  bool execute() throw(te::rp::Exception);
84 
85  protected:
86 
87  bool m_isInitialized; //!< True if this instance is initialized.
88  ClassifierDummyStrategy::Parameters m_parameters; //!< Internal execution parameters.
89  };
90 
91  /*!
92  \class ClassifierDummyStrategyFactory
93 
94  \brief Raster dummy Classifier strategy factory.
95 
96  \note Factory key: RegionGrowing
97  */
99  {
100  public:
101 
103 
105 
106  //overload
108  };
109 
110  } // end namespace rp
111 } // end namespace te
112 
113 #endif // __TERRALIB_RP_INTERNAL_CLASSIFIERDUMMYSTRATEGY_H
114 
Base exception class for plugin module.
Definition: Exception.h:42
Raster classifier strategy factory base class.
URI C++ Library.
#define TERPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:139
Raster classifier strategy factory base class.
Configuration flags for the Raster Processing module of TerraLib.
Raster classifier strategy base class.
unsigned int m_dummyParameter
A dummy parameter.
Raster dummy Classifier strategy factory.
Raster classifier strategy base class.
Dummy strategy (just for testing purposes).