diff Postarc/Postarc/Geodatabase/SelectionSetEnumerator.cs @ 0:1aca3d413885 tip

Initial import of Postarc
author Christian Lins <christian.lins@intevation.de>
date Fri, 05 Oct 2012 23:55:06 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Postarc/Postarc/Geodatabase/SelectionSetEnumerator.cs	Fri Oct 05 23:55:06 2012 +0200
@@ -0,0 +1,33 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using ESRI.ArcGIS.Geodatabase;
+
+namespace Postarc.Geodatabase
+{
+    class SelectionSetEnumerator : IEnumIDs
+    {
+        protected SelectionSet set;
+        protected int next = 0;
+
+        public SelectionSetEnumerator(SelectionSet set)
+        {
+            this.set = set;
+        }
+
+        public int Next()
+        {
+            if (set.Count < next)
+            {
+                return set.List[next++];
+            }
+            return -1;
+        }
+
+        public void Reset()
+        {
+            this.next = 0;
+        }
+    }
+}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)