BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslx::VersionFunctions Namespace Reference

Enumerations

enum  { k_NO_VERSION = -1 }
 

Functions

template<class TYPE >
int maxSupportedBdexVersion (const TYPE *, int versionSelector)
 
template<class TYPE >
int maxSupportedBdexVersion (const TYPE *)
 

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
k_NO_VERSION 

Function Documentation

◆ maxSupportedBdexVersion() [1/2]

template<class TYPE >
int bslx::VersionFunctions::maxSupportedBdexVersion ( const TYPE *  )
inline
Deprecated:
Use maxSupportedBdexVersion(const TYPE *, int) instead.

Return the maximum valid BDEX format version to be passed to the bdexStreamOut method while streaming an object of the (template parameter) type TYPE. Note that this function ignores any const and volatile qualifiers on the TYPE. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.

◆ maxSupportedBdexVersion() [2/2]

template<class TYPE >
int bslx::VersionFunctions::maxSupportedBdexVersion ( const TYPE *  ,
int  versionSelector 
)
inline

Return the maximum valid BDEX format version, as indicated by the specified versionSelector, to be passed to the bdexStreamOut method while streaming an object of the (template parameter) type TYPE. Note that it is highly recommended that versionSelector be formatted as "YYYYMMDD", a date representation. Also note that versionSelector should be a compile-time-chosen value that selects a format version supported by both externalizer and unexternalizer. Also note that this function ignores any const and volatile qualifiers on the TYPE. See the bslx package-level documentation for more information on BDEX streaming of value-semantic types and containers.