Stasher.h
Go to the documentation of this file.
1 /* Copyright (C) 2008-2013 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
22 
23  \brief
24 */
25 
26 #ifndef __TERRALIB_PLUGINEDIT_INTERNAL_STASHER_H
27 #define __TERRALIB_PLUGINEDIT_INTERNAL_STASHER_H
28 
29 #include <map>
30 #include <set>
31 #include <string>
32 
33 // Forward declarations.
34 namespace te
35 {
36  namespace gm
37  {
38  class Geometry;
39  }
40 
41  namespace map
42  {
43  class AbstractLayer;
44  }
45 }
46 
47 void StashGeometries(const te::map::AbstractLayer* layer, const std::map<std::string, te::gm::Geometry*>& geoms, const std::map<std::string, int>& ops);
48 
49 void GetStashedGeometries(const te::map::AbstractLayer* layer, std::map<std::string, te::gm::Geometry*>& geoms, std::map<std::string, int>& ops);
50 
51 std::set<std::string> GetStashedLayers();
52 
53 void RemoveStash(const te::map::AbstractLayer* layer);
54 
55 #endif // __TERRALIB_PLUGINEDIT_INTERNAL_STASHER_H
56 
57 
58 
This is the base class for layers.
Definition: AbstractLayer.h:76
URI C++ Library.
std::set< std::string > GetStashedLayers()
void RemoveStash(const te::map::AbstractLayer *layer)
void GetStashedGeometries(const te::map::AbstractLayer *layer, std::map< std::string, te::gm::Geometry * > &geoms, std::map< std::string, int > &ops)
void StashGeometries(const te::map::AbstractLayer *layer, const std::map< std::string, te::gm::Geometry * > &geoms, const std::map< std::string, int > &ops)