[mapguide-internals] ServerRenderingService API bloated
UV
uvwild at gmail.com
Wed Mar 18 23:38:47 EDT 2009
For clarification:
Is there a platform with a stupid compiler that does not understand C++
default arguments?
Or is there another particular reason why the ServerRenderingService
does not use default arguments but instead provides 3 method signatures?
Its such a hazzle to read through all this code to find out eventually
that its simply default arguments which have not been implemented as
such.....
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
CREFSTRING format);
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
CREFSTRING format,
bool bKeepSelection);
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
CREFSTRING format,
bool bKeepSelection,
bool bClip);
instead of
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
CREFSTRING format,
bool bKeepSelection =true ,
bool bClip=false);
and again here
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
MgCoordinate* center,
double scale,
INT32 width,
INT32 height,
MgColor* backgroundColor,
CREFSTRING format);
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
MgCoordinate* center,
double scale,
INT32 width,
INT32 height,
MgColor* backgroundColor,
CREFSTRING format,
bool bKeepSelection);
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
MgCoordinate* center,
double scale,
INT32 width,
INT32 height,
MgColor* backgroundColor,
CREFSTRING format,
bool bKeepSelection,
bool bClip);
instead of
virtual MgByteReader* RenderMap(MgMap* map,
MgSelection* selection,
MgCoordinate* center,
double scale,
INT32 width,
INT32 height,
MgColor* backgroundColor,
CREFSTRING format,
bool bKeepSelection = true,
bool bClip= false);
More information about the mapguide-internals
mailing list