[mapguide][MG443][Modified] Typecasting of MgCoordinate to derived classes fails

Trevor Wekel trevor.wekel at autodesk.com
Wed Nov 1 12:30:16 EST 2006


You can view the artifact detail at the following URL:

    https://mapguide.osgeo.org/servlets/Scarab/id/MG443

Type:
Defect

Artifact ID:
MG443 (Typecasting of MgCoordinate to derived classes fails)

Modified by:
Trevor Wekel
trevorwekel (trevor.wekel at autodesk.com)

The following modifications were made to this artifact:
---------------------------------------------------------------------

-- Description set to new value:
Old value:
MgCoordinate cannot be cast to MgCoordinateXY, XYZ, XYM, and XYZM.  .Net autogenerated properties are not visible for MgCoordinate and a variety of other classes. 
New value:
MgCoordinate cannot be cast to MgCoordinateXY, XYZ, XYM, and XYZM.  .Net autogenerated properties are not visible for MgCoordinate and a variety of other classes.

MgByteReader::ToString() only allows conversion once.
-- Resolution Description set to new value:
Old value:
MgCoordinate derived classes were misssing CLASS_ID in their headers so IMake/Swig could not generate the appropriate casting logic.

A bug in IMake prevented property autogeneration when additional tokens appeared between the method name and the __get/__set comment eg:

GetX() = 0;  /// __get

The extra two tokens caused the generation logic to fail.

New value:
MgCoordinate derived classes were misssing CLASS_ID in their headers so IMake/Swig could not generate the appropriate casting logic.

A bug in IMake prevented property autogeneration when additional tokens appeared between the method name and the __get/__set comment eg:

GetX() = 0;  /// __get

The extra two tokens caused the generation logic to fail.

MgByteReader::ToString() only allows the reader to be converted to a string once.  Since most byte readers can be rewound, this is an unnecessary limitation.  An automatic rewind has been added to the method.



---------------------------------------------------------------------
This message was automatically generated by Project Tracker.








More information about the Mapguide_issues mailing list