FDO .NET API Reference Feature Data Objects

mgIMeasureUnitReaderImp.h

Go to the documentation of this file.
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\UnitOfMeasure\mgBaseUnit.h"
00022 #include "FDO\Commands\UnitOfMeasure\mgIMeasureUnitReader.h"
00023 
00024 class FdoIMeasureUnitReader;
00025 
00026 BEGIN_NAMESPACE_OSGEO_FDO_COMMANDS_UNITOFMEASURE
00027 
00028 /// \ingroup (OSGeoFDOCommandsUnitOfMeasure)
00029 /// \brief
00030 /// The IMeasureUnitReaderImp class is a concrete implementation of IMeasureUnitReader.
00031 /// The IMeasureUnitReader interface provides forward-only, read-only
00032 /// functionality for enumerating measurement units.  A reference to an
00033 /// IMeasureUnitReader interface is returned from the GetMeasureUnits command.
00034 /// The initial position of the IMeasureUnitReader is prior to the
00035 /// first item. Thus, you must call ReadNext to begin accessing any data.
00036 private __gc class IMeasureUnitReaderImp : public NAMESPACE_OSGEO_RUNTIME::Disposable, 
00037                                            public NAMESPACE_OSGEO_FDO_COMMANDS_UNITOFMEASURE::IMeasureUnitReader
00038 {
00039 public:
00040     /// \brief
00041     /// Gets the abbreviation of the measure unit currently being read.
00042     /// 
00043     /// \return
00044     /// Returns the abbreviation of the measure unit
00045     /// 
00046     System::String* GetAbbreviation();
00047 
00048     /// \brief
00049     /// Gets the name of the measure unit currently being read.
00050     /// 
00051     /// \return
00052     /// Returns the name of the measure unit
00053     /// 
00054     System::String* GetName();
00055 
00056     /// \brief
00057     /// Gets the description of the measure unit currently being read.
00058     /// 
00059     /// \return
00060     /// Returns the description of the measure unit
00061     /// 
00062     System::String* GetDescription();
00063 
00064     /// \brief
00065     /// Gets the base unit of the measure unit currently being read.
00066     /// 
00067     /// \return
00068     /// Returns the base unit
00069     /// 
00070     NAMESPACE_OSGEO_FDO_COMMANDS_UNITOFMEASURE::BaseUnit GetBaseUnit();
00071 
00072     /// \brief
00073     /// Gets the scale factor of the measure unit currently being read.
00074     /// 
00075     /// \return
00076     /// Returns the scale factor of the measure unit
00077     /// 
00078     System::Double GetScaleFactor();
00079 
00080     /// \brief
00081     /// Advances the reader to the next item. The default position of the
00082     /// reader is prior to the first item. Thus, you must call ReadNext
00083     /// to begin accessing any data.
00084     /// 
00085     /// \return
00086     /// Returns true if there is a next item
00087     /// 
00088     System::Boolean ReadNext();
00089 
00090     /// \brief
00091     /// Closes the IMeasureUnitReader object, freeing any resources it may be holding.
00092     /// 
00093     /// \return
00094     /// Returns nothing
00095     /// 
00096     System::Void Close();
00097 
00098 /// \cond DOXYGEN-IGNORE
00099 protected:
00100     System::Void ReleaseUnmanagedObject();
00101 /// \endcond
00102 
00103 public private:
00104     IMeasureUnitReaderImp(System::IntPtr unmanaged, System::Boolean autoDelete) : NAMESPACE_OSGEO_RUNTIME::Disposable(unmanaged, autoDelete)
00105     {
00106 
00107     }
00108 
00109     inline FdoIMeasureUnitReader* GetImpObj();
00110 };
00111 
00112 END_NAMESPACE_OSGEO_FDO_COMMANDS_UNITOFMEASURE
00113 
00114 

Comments or suggestions? Send us feedback.