MapGuide API Reference
 All Classes Functions Variables Enumerations Enumerator Friends
MgReader Class Reference

Provides a forward-only, read-only iterator for reading data. You must call ReadNext before you can access any data. This is a base class for MgDataReader, MgFeatureReader, and MgSqlDataReader. More...

+ Inheritance diagram for MgReader:

List of all members.

Public Member Functions

virtual void Close ()=0
 Closes the object, freeing any resources it may be holding.
virtual MgByteReaderGetBLOB (CREFSTRING propertyName)=0
 Gets the BLOB value of the specified property.
virtual MgByteReaderGetBLOB (INT32 index)=0
 Gets the BLOB value of the specified property.
virtual bool GetBoolean (CREFSTRING propertyName)=0
 Gets the Boolean value of the specified property.
virtual bool GetBoolean (INT32 index)=0
 Gets the Boolean value of the specified property.
virtual BYTE GetByte (CREFSTRING propertyName)=0
 Gets the Byte value of the specified property.
virtual BYTE GetByte (INT32 index)=0
 Gets the Byte value of the specified property.
virtual MgByteReaderGetCLOB (CREFSTRING propertyName)=0
 Gets the CLOB value of the specified property.
virtual MgByteReaderGetCLOB (INT32 index)=0
 Gets the CLOB value of the specified property.
virtual MgDateTimeGetDateTime (CREFSTRING propertyName)=0
 Gets the MgDateTime value of the specified property.
virtual MgDateTimeGetDateTime (INT32 index)=0
 Gets the MgDateTime value of the specified property.
virtual double GetDouble (CREFSTRING propertyName)=0
 Gets the Double value of the specified property.
virtual double GetDouble (INT32 index)=0
 Gets the Double value of the specified property.
virtual MgByteReaderGetGeometry (CREFSTRING propertyName)=0
 Gets the Geometry for the specified property.
virtual MgByteReaderGetGeometry (INT32 index)=0
 Gets the Geometry for the specified property.
virtual INT16 GetInt16 (CREFSTRING propertyName)=0
 Gets the 16 bit integer value of the specified property.
virtual INT16 GetInt16 (INT32 index)=0
 Gets the 16 bit integer value of the specified property.
virtual INT32 GetInt32 (CREFSTRING propertyName)=0
 Gets the 32 bit integer value of the specified property.
virtual INT32 GetInt32 (INT32 index)=0
 Gets the 32 bit integer value of the specified property.
virtual INT64 GetInt64 (CREFSTRING propertyName)=0
 Gets the 64 bit integer value of the specified property.
virtual INT64 GetInt64 (INT32 index)=0
 Gets the 64 bit integer value of the specified property.
virtual INT32 GetPropertyCount ()=0
 Gets the number of properties in the feature currently being read.
virtual INT32 GetPropertyIndex (CREFSTRING propertyName)=0
 Gets the index of the property with the specified property name.
virtual STRING GetPropertyName (INT32 index)=0
 Gets the name of the property at the given ordinal position.
virtual INT32 GetPropertyType (CREFSTRING propertyName)=0
 Gets the type of the property with the specified name. See MgPropertyType for the list of possible values.
virtual INT32 GetPropertyType (INT32 index)=0
 Gets the type of the property at the specified index. See MgPropertyType for the list of possible values.
virtual MgRaster * GetRaster (CREFSTRING propertyName)=0
 Gets the raster object of the specified property.
virtual MgRaster * GetRaster (INT32 index)=0
 Gets the raster object of the specified property.
virtual INT32 GetReaderType ()=0
 Get the type of this reader. See MgReaderType for a list of the possible values.
virtual float GetSingle (CREFSTRING propertyName)=0
 Gets the Single value of the specified property.
virtual float GetSingle (INT32 index)=0
 Gets the Single value of the specified property.
virtual STRING GetString (CREFSTRING propertyName)=0
 Gets the string value of the specified property.
virtual STRING GetString (INT32 index)=0
 Gets the string value of the specified property.
virtual bool IsNull (CREFSTRING propertyName)=0
 Determines whether the value of the specified property is null.
virtual bool IsNull (INT32 index)=0
 Determines whether the value of the specified property is null.
virtual bool ReadNext ()=0
 Advances the reader to the next item and determines whether there is another object to read.

Detailed Description

Provides a forward-only, read-only iterator for reading data. You must call ReadNext before you can access any data. This is a base class for MgDataReader, MgFeatureReader, and MgSqlDataReader.