Changes between Version 2 and Version 3 of MapGuideRfc21


Ignore:
Timestamp:
06/02/07 11:27:02 (17 years ago)
Author:
ksgeograf
Comment:

Update parameter types, according to suggestions from Bruce Dechant

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideRfc21

    v2 v3  
    3333
    3434There already exists code in the server to create a runtime map from a map defintion.
    35 There should be two more functions in the !MgMap class:
     35There should be three more functions in the !MgMap class:
    3636{{{
    37 void MgMap::UpdateRuntimeMap(MgResourceService* resourceService, MgResourceIdentifier* mapDefinition, CREFSTRING mapName);
    38 void MgMap::UpdateMapDefinition(MgResourceService* resourceService, MgResourceIdentifier* mapDefinition, CREFSTRING mapName);
     37void MgMap::UpdateRuntimeMap(MgResourceService* resourceService, MgResourceIdentifier* mapDefinition, MgResourceIdentifier* mapName);
     38void MgMap::UpdateMapDefinition(MgResourceService* resourceService, MgResourceIdentifier* mapDefinition, MgResourceIdentifier* mapName);
     39void MgMap::CreateRuntimeMap(MgResourceService* resourceService, MgResourceIdentifier* mapDefinition, MgResourceIdentifier* mapName);
    3940}}}
     41
     42The third function would be equvalent to the current MgMap::!Create, but taking a full resource identifier, rather than just the name of the map.
    4043
    4144The !UpdateMapDefinition should just overwrite the mapDefinition with the current runtimemap.
    4245The !UpdateRuntimeMap should try to sync the runtime map, by settings map properties. This will allow the current change-list scheme to work.
    4346
    44 These two functions should be exposed in the !HttpHandler, along with the existing MgMap::!CreateMap(...).
     47These three functions should be exposed in the !HttpHandler.
    4548
    4649== Considerations ==
     
    5962In some cases it might be more efficient to use these three variants:
    6063{{{
    61 void MgMap::UpdateRuntimeMap(MgResourceService* resourceService, MgByteReader* mapDefinitionAsXml, CREFSTRING mapName);
    62 MgByteReader* MgMap::MapDefinitionFromRuntimeMap(MgResourceService* resourceService, CREFSTRING mapName);
    63 void MgMap::CreateMap(MgResourceService* resourceService, MgByteReader* mapDefinitionAsXml, CREFSTRING mapName);
     64void MgMap::UpdateRuntimeMap(MgResourceService* resourceService, MgByteReader* mapDefinitionAsXml, MgResourceIdentifier* mapName);
     65MgByteReader* MgMap::MapDefinitionFromRuntimeMap(MgResourceService* resourceService, MgResourceIdentifier* mapName);
     66void MgMap::CreateMap(MgResourceService* resourceService, MgByteReader* mapDefinitionAsXml, MgResourceIdentifier* mapName);
    6467}}}
    6568