FDO .NET API Reference | Feature Data Objects |
00001 /* 00002 * Copyright (C) 2004-2006 Autodesk, Inc. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of version 2.1 of the GNU Lesser 00006 * General Public License as published by the Free Software Foundation. 00007 * 00008 * This library is distributed in the hope that it will be useful, 00009 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00010 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00011 * Lesser General Public License for more details. 00012 * 00013 * You should have received a copy of the GNU Lesser General Public 00014 * License along with this library; if not, write to the Free Software 00015 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 00016 * 00017 */ 00018 00019 #pragma once 00020 00021 #include "FDO\Commands\Locking\mgILockOwnersReader.h" 00022 00023 class FdoILockOwnersReader; 00024 00025 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING 00026 00027 /// \ingroup (OSGeoFDOCommandsLocking) 00028 /// \brief 00029 /// The ILockOwnersReaderImp class is a concrete implementation of ILockOwnersReader. 00030 /// The ILockOwnersReader interface provides forward-only, read-only functionality 00031 /// for identifying users. A connected user has status of lock owner even if he has 00032 /// no locks or has released his locks. 00033 /// \remarks 00034 /// A reference to an 00035 /// ILockOwnersReader interface is returned from the GetLockOwners command. The initial 00036 /// position of the ILockOwnersReader interface is prior to the first item. Thus, you 00037 /// must call ReadNext to begin accessing any data. 00038 private __gc class ILockOwnersReaderImp : public NAMESPACE_OSGEO_RUNTIME::Disposable, 00039 public NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING::ILockOwnersReader 00040 { 00041 public: 00042 /// \brief 00043 /// Gets the name of a user. 00044 /// 00045 /// \return 00046 /// Returns the name of a user 00047 /// 00048 System::String* GetLockOwner(); 00049 00050 /// \brief 00051 /// Advances the reader to the next item. The default position of the 00052 /// reader is prior to the first item. Thus, you must call ReadNext 00053 /// to begin accessing any data. 00054 /// 00055 /// \return 00056 /// Returns true if there is a next item. 00057 /// 00058 System::Boolean ReadNext(); 00059 00060 /// \brief 00061 /// Closes the ILockOwnersReader object, freeing any resources it may be 00062 /// holding. 00063 /// 00064 /// \return 00065 /// Returns nothing 00066 /// 00067 System::Void Close(); 00068 00069 /// \cond DOXYGEN-IGNORE 00070 protected: 00071 __sealed System::Void ReleaseUnmanagedObject(); 00072 /// \endcond 00073 00074 public private: 00075 ILockOwnersReaderImp(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_RUNTIME::Disposable(unmanaged, autoDelete) 00076 { 00077 00078 } 00079 00080 inline FdoILockOwnersReader* GetImpObj(); 00081 }; 00082 00083 END_NAMESPACE_OSGEO_FDO_COMMANDS_LOCKING 00084 00085
Comments or suggestions? Send us feedback. |