SegmenterStrategy.cpp
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/SegmenterStrategy.cpp
22  \brief Raster segmenter strategy base class.
23 */
24 
25 #include "SegmenterStrategy.h"
26 
27 namespace te
28 {
29  namespace rp
30  {
32 
34 
35  SegmenterStrategy::SegmenterStrategy(const SegmenterStrategy&) = default;
36 
37  SegmenterStrategy& SegmenterStrategy::operator=(
38  const SegmenterStrategy&) = default;
39 
41  {
42  m_errorMessage.clear();
43  }
44 
45  const std::string& SegmenterStrategy::getErrorMessage() const
46  {
47  return m_errorMessage;
48  }
49 
50  void SegmenterStrategy::setErrorMessage( const std::string& newErrorMessage )
51  {
52  m_errorMessage = newErrorMessage;
53  }
54  } // end namespace rp
55 } // end namespace te
56 
const std::string & getErrorMessage() const
Return the current error message if there is any.
SegmenterStrategy & operator=(const SegmenterStrategy &)
void setErrorMessage(const std::string &newErrorMessage)
Set the current error message.
std::string m_errorMessage
Current error message.
URI C++ Library.
Definition: Attributes.h:37
Raster segmenter strategy base class.
virtual void reset()
Clear all internal allocated resources and go back to the initial not-initialized state...