NoGroupingDataHandler.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 terralin/vp/NoGroupingDataHandler.h
22 
23  \brief This class represents handler to help reading and writing data from/to a dataSource using one group only (all data will be returned)
24  */
25 
26 #ifndef __TERRALIB_VP_INTERNAL_NOGROUPINGDATAHANDLER_H
27 #define __TERRALIB_VP_INTERNAL_NOGROUPINGDATAHANDLER_H
28 
29 
30 #include "AbstractDataHandler.h"
31 #include "Config.h"
32 
33 #include <vector>
34 
35 namespace te
36 {
37  namespace da
38  {
39  class DataAccess;
40  }
41 
42  namespace gm
43  {
44  class Envelope;
45  }
46 
47  namespace vp
48  {
49  class FeatureSet;
50 
51  /*!
52  \class NoGroupingDataHandler
53 
54  \brief This class represents handler to help reading and writing data from/to a dataSource using one group only (all data will be returned)
55  */
57  {
58  public:
59  /*! \brief Default constructor. */
61 
62  /*! \brief Virtual destructor. */
63  virtual ~NoGroupingDataHandler()= default;
64 
65  //!< Returns the number of groups of the data handler
66  virtual std::size_t getGroupCount() const override;
67 
68  //!< Returns the inputIndex-th featureSet og the groupIndex-th group considering the given filter
69  virtual te::vp::FeatureSet getFeatureSet(std::size_t groupIndex, std::size_t inputIndex, const te::gm::Envelope& filter) override;
70 
71  //!< Adds a featureSet related to groupIndex-th group the to be added to the outputIndex-th output data access
72  virtual void addFeatureSet(std::size_t groupIndex, std::size_t outputIndex, const te::vp::FeatureSet& featureSet) override;
73  };
74 
76  {
77  public:
78 
80 
82 
83  protected:
84 
85  virtual te::vp::AbstractDataHandler* build() override;
86  };
87  }
88 }
89 
90 #endif //__TERRALIB_VP_INTERNAL_NOGROUPINGDATAHANDLER_H
te::gm::Envelope
An Envelope defines a 2D rectangular region.
Definition: Envelope.h:52
te
TerraLib.
Definition: AddressGeocodingOp.h:52
te::vp::NoGroupingDataHandlerFactory::NoGroupingDataHandlerFactory
NoGroupingDataHandlerFactory()
te::vp::NoGroupingDataHandlerFactory::build
virtual te::vp::AbstractDataHandler * build() override
Concrete factories (derived from this one) must implement this method in order to create objects.
te::vp::NoGroupingDataHandlerFactory
Definition: NoGroupingDataHandler.h:76
te::vp::NoGroupingDataHandler::addFeatureSet
virtual void addFeatureSet(std::size_t groupIndex, std::size_t outputIndex, const te::vp::FeatureSet &featureSet) override
te::vp::NoGroupingDataHandler::~NoGroupingDataHandler
virtual ~NoGroupingDataHandler()=default
Virtual destructor.
AbstractDataHandler.h
TEVPEXPORT
#define TEVPEXPORT
You can use this macro in order to export/import classes and functions from this module.
Definition: Config.h:61
te::vp::NoGroupingDataHandler::NoGroupingDataHandler
NoGroupingDataHandler()
Default constructor.
te::vp::NoGroupingDataHandler::getGroupCount
virtual std::size_t getGroupCount() const override
Returns the inputIndex-th featureSet og the groupIndex-th group considering the given filter.
te::vp::NoGroupingDataHandler
This class represents handler to help reading and writing data from/to a dataSource using one group o...
Definition: NoGroupingDataHandler.h:57
te::vp::AbstractDataHandler
This abstract class represents handler to help reading and writing data from/to a dataSource by divid...
Definition: AbstractDataHandler.h:63
te::vp::FeatureSet
An alias for a set of Features.
Definition: Feature.h:60
te::vp::NoGroupingDataHandler::getFeatureSet
virtual te::vp::FeatureSet getFeatureSet(std::size_t groupIndex, std::size_t inputIndex, const te::gm::Envelope &filter) override
Adds a featureSet related to groupIndex-th group the to be added to the outputIndex-th output data ac...
Config.h
Proxy configuration file for TerraView (see terraview_config.h).
te::vp::NoGroupingDataHandlerFactory::~NoGroupingDataHandlerFactory
virtual ~NoGroupingDataHandlerFactory()
te::vp::AbstractDataHandlerFactory
Definition: AbstractDataHandler.h:114