|
template<class SearchType, class FindType, size_t nSize> |
static const FindType & | Find (const SearchType(&aSearch)[nSize], const FindType(&aFind)[nSize], const SearchType &oSearchItem, const FindType &oDefaultFindValue) |
| This method searches an item oSearchItem in an array aSearch and returns the item from aFind that is at the same index as oSearchItem in aSearch.
|
|
Definition at line 35 of file ddlversionhelper.h.
◆ Find()
template<class SearchType, class FindType, size_t nSize>
static const FindType & Find |
( |
const SearchType(&) | aSearch[nSize], |
|
|
const FindType(&) | aFind[nSize], |
|
|
const SearchType & | oSearchItem, |
|
|
const FindType & | oDefaultFindValue ) |
|
staticprivate |
This method searches an item oSearchItem in an array aSearch and returns the item from aFind that is at the same index as oSearchItem in aSearch.
The arrays aSearch and aFind have to be static arrays of the same size.
- Parameters
-
[in] | aSearch | The Array to be used for the search. |
[in] | aFind | The Array to return the value from. |
[in] | oSearchItem | The item to be found in aFind. |
[in] | oDefaultFindValue | If oSearchItem cannot be found, the function returns this value. |
- Returns
- The item in aFind that is at the same index as oSearchItem in aSearch, oSearchItem if nothing can be found.
◆ GetKnownVersionsString()
This function returns a string of all DDL versions known to ADTF.
This string can be used for error messages regarding supported versions. It will look like "<v1>, <2>, <...> and <vn>" while the "<vx>" parts are replaced with actual versions and "<vn>" is the latest version.
- Returns
- The string with all known versions.
◆ GetVersionEnumAsFloat()
static double GetVersionEnumAsFloat |
( |
tDDLVersion | eVersion | ) |
|
|
static |
This function converts the DDL version enum and returns it as float.
- Parameters
-
[in] | eVersion | The version to be converted. |
- Returns
- The version, -1 if version is unknown.
◆ GetVersionFloatAsEnum()
static tDDLVersion GetVersionFloatAsEnum |
( |
double | fVersion | ) |
|
|
static |
This function converts the DDL version and returns it.
- Parameters
-
[in] | fVersion | The version to be converted. |
- Returns
- The version, -1 if version is unknown to ADTF.
◆ GetVersionFloatAsString()
This function converts the DDL version and returns it.
- Parameters
-
[in] | fVersion | The version to be converted. |
- Returns
- The version, an empty string if version is unknown to ADTF.
◆ GetVersionStringAsEnum()
This function converts the DDL version and returns it.
- Parameters
-
[in] | strVersion | The version to be converted. |
- Returns
- The version, -1 if version is unknown to ADTF.
◆ GetVersionStringAsFloat()
This function converts the DDL version and returns it.
- Parameters
-
[in] | strVersion | The version to be converted. |
- Returns
- The version, -1 if version is unknown to ADTF.
◆ IsKnownVersionFloat()
static bool IsKnownVersionFloat |
( |
double | fVersion | ) |
|
|
static |
This function checks a float if it contains a DDL version that is known to ADTF.
- Parameters
-
[in] | fVersion | The float to be analyzed. |
- Returns
- True if the version is known, false otherwise.
◆ IsKnownVersionString()
This function checks a string if it contains a DDL version that is known to ADTF.
- Parameters
-
[in] | strVersion | The string to be analyzed. |
- Returns
- True if the version is known, false otherwise.
◆ m_saEnums
◆ m_saFloats
◆ m_saStrings
◆ m_sstrSupportedVersions