| 171 | ==== !FdoProviderNameTokens ==== |
| 172 | |
| 173 | This class will be modified to support the removing of version parts from a provider name. |
| 174 | |
| 175 | '''!ToString (new)''' |
| 176 | |
| 177 | This function converts this tokenize provider name back to a string: |
| 178 | |
| 179 | {{{ |
| 180 | GisStringP FdoProviderNameTokens::ToString( bool includeVersion = true ) |
| 181 | }}} |
| 182 | |
| 183 | When includeVersion is true, the full provider name is returned. When includeVersion is false, the version parts are omitted from the returned name. |
| 184 | |
| 185 | For Example, the following removes the version parts from a provider name: |
| 186 | |
| 187 | {{{ |
| 188 | FdoStringP srcName = L"OSGeo.SDF.3.1"; |
| 189 | FdoStringP destName; |
| 190 | FdoProviderNameTokensP tokens = FdoProviderNameTokens::Create( srcName ); |
| 191 | destName = tokens->ToString( false ); |
| 192 | assert ( destName == L"OSGeo.SDF" ); |
| 193 | }}} |
| 194 | |
| 195 | |