comparison Postarc/Postarc/Feature/Workspace.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
comparison
equal deleted inserted replaced
-1:000000000000 0:1aca3d413885
1 /*
2 * Postarc
3 *
4 * Author:
5 * Christian Lins <christian.lins@intevation.de>
6 *
7 * Copyright:
8 * Copyright (C) 2012 Intevation GmbH <http://www.intevation.de/>
9 *
10 * This program is free software: you can redistribute it and/or modify
11 * it under the terms of the GNU Lesser General Public License as published by
12 * the Free Software Foundation, either version 3 of the License, or
13 * (at your option) any later version.
14 *
15 * This program is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 * GNU General Public License for more details.
19 *
20 * You should have received a copy of the GNU Lesser General Public License
21 * along with this program. If not, see <http://www.gnu.org/licenses/>.
22 */
23
24 using System;
25 using System.Collections.Generic;
26 using System.Linq;
27 using System.Text;
28 using ESRI.ArcGIS.Geodatabase;
29 using ESRI.ArcGIS.esriSystem;
30 using System.Diagnostics;
31
32 namespace Postarc.Feature
33 {
34 public class Workspace : IWorkspace, IWorkspaceEdit
35 {
36 protected WorkspaceFactory workspaceFactory = new WorkspaceFactory();
37 protected bool isBeingEdited = false;
38 protected bool hasEdits = false;
39
40 public IPropertySet ConnectionProperties
41 {
42 get
43 {
44 PropertySetClass props = new PropertySetClass();
45 return (IPropertySet)props;
46 }
47 }
48
49 public void ExecuteSQL(string sqlStmt)
50 {
51 throw new NotImplementedException();
52 }
53
54 public bool Exists()
55 {
56 throw new NotImplementedException();
57 }
58
59 public bool IsDirectory()
60 {
61 return false;
62 }
63
64 /// <summary>
65 /// Returns always null as this is a remote workspace.
66 /// </summary>
67 public string PathName
68 {
69 get
70 {
71 return null;
72 }
73 }
74
75 public esriWorkspaceType Type
76 {
77 get
78 {
79 return esriWorkspaceType.esriRemoteDatabaseWorkspace;
80 }
81 }
82
83 public IWorkspaceFactory WorkspaceFactory
84 {
85 get
86 {
87 return this.workspaceFactory;
88 }
89 }
90
91 public IEnumDatasetName get_DatasetNames(esriDatasetType DatasetType)
92 {
93 throw new NotImplementedException();
94 }
95
96 public IEnumDataset get_Datasets(esriDatasetType DatasetType)
97 {
98 throw new NotImplementedException();
99 }
100
101 public void AbortEditOperation()
102 {
103 Debug.WriteLine("Workspace::AbortEditOperation(): FIXME");
104 }
105
106 public void DisableUndoRedo()
107 {
108 throw new NotImplementedException();
109 }
110
111 public void EnableUndoRedo()
112 {
113 throw new NotImplementedException();
114 }
115
116 public void HasEdits(ref bool hasEdits)
117 {
118 hasEdits = this.hasEdits;
119 }
120
121 public void HasRedos(ref bool hasRedos)
122 {
123 hasRedos = false; // TODO
124 }
125
126 public void HasUndos(ref bool hasUndos)
127 {
128 hasUndos = false; // TODO
129 }
130
131 public bool IsBeingEdited()
132 {
133 return this.isBeingEdited;
134 }
135
136 public void RedoEditOperation()
137 {
138 throw new NotImplementedException();
139 }
140
141 public void StartEditOperation()
142 {
143 Debug.WriteLine("Workspace::StartEditOperation");
144 }
145
146 public void StartEditing(bool withUndoRedo)
147 {
148 this.isBeingEdited = true;
149 }
150
151 public void StopEditOperation()
152 {
153 Debug.WriteLine("Workspace::StopEditOperation");
154 }
155
156 public void StopEditing(bool saveEdits)
157 {
158 this.isBeingEdited = false;
159 }
160
161 public void UndoEditOperation()
162 {
163 throw new NotImplementedException();
164 }
165 }
166 }
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)