christian@0: /* christian@0: * Postarc christian@0: * christian@0: * Author: christian@0: * Christian Lins christian@0: * christian@0: * Copyright: christian@0: * Copyright (C) 2012 Intevation GmbH christian@0: * christian@0: * This program is free software: you can redistribute it and/or modify christian@0: * it under the terms of the GNU Lesser General Public License as published by christian@0: * the Free Software Foundation, either version 3 of the License, or christian@0: * (at your option) any later version. christian@0: * christian@0: * This program is distributed in the hope that it will be useful, christian@0: * but WITHOUT ANY WARRANTY; without even the implied warranty of christian@0: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the christian@0: * GNU General Public License for more details. christian@0: * christian@0: * You should have received a copy of the GNU Lesser General Public License christian@0: * along with this program. If not, see . christian@0: */ christian@0: christian@0: using System; christian@0: using System.Collections.Generic; christian@0: using System.Linq; christian@0: using System.Text; christian@0: using ESRI.ArcGIS.Geodatabase; christian@0: using ESRI.ArcGIS.esriSystem; christian@0: using System.Diagnostics; christian@0: christian@0: namespace Postarc.Feature christian@0: { christian@0: public class Workspace : IWorkspace, IWorkspaceEdit christian@0: { christian@0: protected WorkspaceFactory workspaceFactory = new WorkspaceFactory(); christian@0: protected bool isBeingEdited = false; christian@0: protected bool hasEdits = false; christian@0: christian@0: public IPropertySet ConnectionProperties christian@0: { christian@0: get christian@0: { christian@0: PropertySetClass props = new PropertySetClass(); christian@0: return (IPropertySet)props; christian@0: } christian@0: } christian@0: christian@0: public void ExecuteSQL(string sqlStmt) christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public bool Exists() christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public bool IsDirectory() christian@0: { christian@0: return false; christian@0: } christian@0: christian@0: /// christian@0: /// Returns always null as this is a remote workspace. christian@0: /// christian@0: public string PathName christian@0: { christian@0: get christian@0: { christian@0: return null; christian@0: } christian@0: } christian@0: christian@0: public esriWorkspaceType Type christian@0: { christian@0: get christian@0: { christian@0: return esriWorkspaceType.esriRemoteDatabaseWorkspace; christian@0: } christian@0: } christian@0: christian@0: public IWorkspaceFactory WorkspaceFactory christian@0: { christian@0: get christian@0: { christian@0: return this.workspaceFactory; christian@0: } christian@0: } christian@0: christian@0: public IEnumDatasetName get_DatasetNames(esriDatasetType DatasetType) christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public IEnumDataset get_Datasets(esriDatasetType DatasetType) christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public void AbortEditOperation() christian@0: { christian@0: Debug.WriteLine("Workspace::AbortEditOperation(): FIXME"); christian@0: } christian@0: christian@0: public void DisableUndoRedo() christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public void EnableUndoRedo() christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public void HasEdits(ref bool hasEdits) christian@0: { christian@0: hasEdits = this.hasEdits; christian@0: } christian@0: christian@0: public void HasRedos(ref bool hasRedos) christian@0: { christian@0: hasRedos = false; // TODO christian@0: } christian@0: christian@0: public void HasUndos(ref bool hasUndos) christian@0: { christian@0: hasUndos = false; // TODO christian@0: } christian@0: christian@0: public bool IsBeingEdited() christian@0: { christian@0: return this.isBeingEdited; christian@0: } christian@0: christian@0: public void RedoEditOperation() christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: christian@0: public void StartEditOperation() christian@0: { christian@0: Debug.WriteLine("Workspace::StartEditOperation"); christian@0: } christian@0: christian@0: public void StartEditing(bool withUndoRedo) christian@0: { christian@0: this.isBeingEdited = true; christian@0: } christian@0: christian@0: public void StopEditOperation() christian@0: { christian@0: Debug.WriteLine("Workspace::StopEditOperation"); christian@0: } christian@0: christian@0: public void StopEditing(bool saveEdits) christian@0: { christian@0: this.isBeingEdited = false; christian@0: } christian@0: christian@0: public void UndoEditOperation() christian@0: { christian@0: throw new NotImplementedException(); christian@0: } christian@0: } christian@0: }