Changes between Version 38 and Version 39 of MapGuideCodingStandards


Ignore:
Timestamp:
09/19/22 04:39:08 (2 years ago)
Author:
jng
Comment:

Extra considerations around enums

Legend:

Unmodified
Added
Removed
Modified
  • MapGuideCodingStandards

    v38 v39  
    153153 * Allowed method parameter types
    154154   * Basic primitive types `bool/BYTE/INT16/INT32/INT64/float/double`
     155      * Values you would normally model and pass as `enum`s should instead be represented with one of the above numeric primitive types and you should also define a "constant" class with allowed values as static members.
    155156   * Raw pointer to any public MapGuide API class
    156157   * For strings, only `std::wstring` (aliased in MapGuide as `STRING`) is permitted and only by const reference (aliased in MapGuide as `CREFSTRING`)
     
    159160 * Allowed method return types
    160161   * Basic primitive types `bool/BYTE/INT16/INT32/INT64/float/double`
     162      * Values you would normally model and return as `enum`s should instead be represented with one of the above numeric primitive types and you should also define a "constant" class with allowed values as static members.
    161163   * Raw pointer to any public MapGuide API class
    162164   * For strings, only `std::wstring` (aliased in MapGuide as `STRING`) is permitted and only by value