Skip to content

v0.2.50..v0.2.51 changeset CopyMapSubsetOp.h

Garret Voltz edited this page Jan 15, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/ops/CopyMapSubsetOp.h b/hoot-core/src/main/cpp/hoot/core/ops/CopyMapSubsetOp.h
index bdc7a61..ff37655 100644
--- a/hoot-core/src/main/cpp/hoot/core/ops/CopyMapSubsetOp.h
+++ b/hoot-core/src/main/cpp/hoot/core/ops/CopyMapSubsetOp.h
@@ -28,9 +28,9 @@
 #define COPYMAPSUBSETOP_H
 
 // hoot
+#include <hoot/core/criterion/ElementCriterion.h>
 #include <hoot/core/elements/OsmMap.h>
 #include <hoot/core/ops/OsmMapOperation.h>
-#include <hoot/core/criterion/ElementCriterion.h>
 
 namespace hoot
 {
@@ -48,6 +48,7 @@ public:
 
   CopyMapSubsetOp(const ConstOsmMapPtr& from, const std::set<ElementId>& eids);
   CopyMapSubsetOp(const ConstOsmMapPtr& from, const std::vector<long>& wayIds);
+  CopyMapSubsetOp(const ConstOsmMapPtr& from, ElementId eid);
   CopyMapSubsetOp(const ConstOsmMapPtr& from, ElementId eid1, ElementId eid2);
   CopyMapSubsetOp(const ConstOsmMapPtr& from, const ElementCriterionPtr& crit);
 
@@ -62,11 +63,14 @@ public:
 
   virtual QString getDescription() const { return "Copies a subset of the map into a new map"; }
 
+  std::set<ElementId>& getEidsCopied() { return _eidsCopied; }
+
 private:
 
   std::set<ElementId> _eids;
   ConstOsmMapPtr _from;
   ElementCriterionPtr _crit;
+  std::set<ElementId> _eidsCopied;
 };
 
 }
Clone this wiki locally