Changes between Version 6 and Version 7 of FdoEnhancedVersionSupport


Ignore:
Timestamp:
Oct 18, 2007, 9:54:49 AM (17 years ago)
Author:
gregboone
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • FdoEnhancedVersionSupport

    v6 v7  
    195195}}}
    196196
    197 
     197''!GetNameTokens''
     198
     199For consistency, the !GetNameTokens signature will change to the following:
     200
     201
     202{{{
     203FdoStringsP FdoProviderNameTokens::GetNameTokens( bool includeVersion = true )
     204}}}
     205
     206includeVersion is a new parameter. When false, the returned string collection will not include the version parts.
     207
     208For Example, the following removes the version parts from a provider name (note that a bit more work is required than in the above ToString example):
     209
     210
     211{{{
     212FdoStringP srcName = L"Autodesk.Oracle.3.1";
     213FdoStringP destName;
     214FdoProviderNameTokensP tokens = FdoProviderNameTokens::Create( srcName );
     215GisStringsP nameTokens = tokens->GetNameTokens( false  );
     216destName = tokens->ToString( L"." );
     217assert ( destName == L"Autodesk.Oracle" );
     218}}}
     219
     220
     221