Skip to content

v0.2.53..v0.2.54 changeset HootApiDb.h

Garret Voltz edited this page Mar 31, 2020 · 1 revision
diff --git a/hoot-core/src/main/cpp/hoot/core/io/HootApiDb.h b/hoot-core/src/main/cpp/hoot/core/io/HootApiDb.h
index a573c83..304e54e 100644
--- a/hoot-core/src/main/cpp/hoot/core/io/HootApiDb.h
+++ b/hoot-core/src/main/cpp/hoot/core/io/HootApiDb.h
@@ -192,21 +192,19 @@ public:
    */
   long insertMap(QString mapName);
 
-  bool insertNode(const double lat, const double lon, const Tags &tags, long& assignedId);
+  bool insertNode(const double lat, const double lon, const Tags &tags, long& assignedId,
+                  long version = 0);
+  bool insertNode(const long id, const double lat, const double lon, const Tags &tags,
+                  long version = 0);
+  bool insertNode(ConstNodePtr node, long version = 0);
 
-  bool insertNode(const long id, const double lat, const double lon, const Tags &tags);
-
-  bool insertNode(ConstNodePtr node);
-
-  bool insertWay(const Tags& tags, long& assignedId);
-
-  bool insertWay( const long wayId, const Tags& tags);
+  bool insertWay(const Tags& tags, long& assignedId, long version = 0);
+  bool insertWay( const long wayId, const Tags& tags, long version = 0);
 
   void insertWayNodes(long wayId, const std::vector<long>& nodeIds);
 
-  bool insertRelation(const Tags& tags, long& assignedId);
-
-  bool insertRelation(const long relationId, const Tags& tags);
+  bool insertRelation(const Tags& tags, long& assignedId, long version = 0);
+  bool insertRelation(const long relationId, const Tags& tags, long version = 0);
 
   /**
    * Insert a new member into an existing relation
Clone this wiki locally