Contains functionality for retrieving and comparing the version of the TurtleBrains framework. More...
Enumerations | |
| enum | FeatureKit { kUnspecified , kApplicationKit , kAudioKit , kDebugKit , kGameKit , kGraphicsKit , kMathKit } |
Functions | |
| int | GetMajor (void) |
| int | GetMinor (void) |
| int | GetPatch (void) |
| const String & | VersionString (void) |
| const String & | ProjectVersionString (void) |
| bool | IsExactly (const int major, const int minor, const int patch) |
| bool | IsAtLeast (const int major, const int minor, const int patch) |
| bool | IsFeatureSupported (const String &featureName) |
| bool | IsKitMinimallySupported (const FeatureKit &kit) |
| bool | IsKitCompletelySupported (const FeatureKit &kit) |
Retrieves information regarding the version of the TurtleBrains framework added to your project to make allow testing that the implementation is newer than, or exactly as expected.
Describes a "feature kit" for minimal or complete testing of several features at once. Typically the feature kits are based on the namespace regions of the TurtleBrains framework or the tb_yyy_kit headers that provide everything within a kit, though that may not always be the case as these kits are just describing a collection of features.
| Enumerator | |
|---|---|
| kUnspecified | This is for features that don't fit in an a kit, misc, basic features. |
| kApplicationKit | Features within the tbApplication namespace, or for Application Development. |
| kAudioKit | Features within the tbAudio namespace, or audio development. |
| kDebugKit | Features within the tbCore::Debug namespace, or debugging helpers. |
| kGameKit | Features within the tbGame namespace, or Game Development. |
| kGraphicsKit | Features within the tbGraphics namespace, or graphical helpers. |
| kMathKit | Features within the tbMath namespace, or math helpers. |
| int TurtleBrains::Core::Version::GetMajor | ( | void | ) |
Retrieves the major part of the TurtleBrains framework version number.
| int TurtleBrains::Core::Version::GetMinor | ( | void | ) |
Retrieves the minor part of the TurtleBrains framework version number.
| int TurtleBrains::Core::Version::GetPatch | ( | void | ) |
Retrieves the patch part of the TurtleBrains framework version number.
| bool TurtleBrains::Core::Version::IsAtLeast | ( | const int | major, |
| const int | minor, | ||
| const int | patch | ||
| ) |
Compares the version with the inputs to be sure that the framework is equal or newer, in the event new features are added to the framework, you can use this to make sure those features are available.
| major | The value of the major portion to be compared with the current major of the framework. |
| minor | The value of the minor portion to be compared with the current minor of the framework. |
| patch | The value of the patch to be compared with the current patch of the framework. |
| bool TurtleBrains::Core::Version::IsExactly | ( | const int | major, |
| const int | minor, | ||
| const int | patch | ||
| ) |
Compares the version with the inputs to be sure that the framework version matches.
| major | The value of the major portion to be compared with the current major of the framework. |
| minor | The value of the minor portion to be compared with the current minor of the framework. |
| patch | The value of the patch to be compared with the current patch of the framework. |
| bool TurtleBrains::Core::Version::IsFeatureSupported | ( | const String & | featureName | ) |
Checks to see if a specific feature is supported or not which would be used for features that either don't have a kit, or are extra features of a kit, or perhaps a feature kit is only minimally supported but a specific feature above minimal support can still be checked.
| featureName | The name of the feature to check, there may be a table of known feature names made available, or displayed in the reference level documentation for an object/function. |
| bool TurtleBrains::Core::Version::IsKitCompletelySupported | ( | const FeatureKit & | kit | ) |
Checks to see if ALL the features of the specified kit, at a complete level, is supported or not. All features marked in the complete kit level must be supported for this to return true, if even a single feature required for the complete kit support is not supported, this returns false. Though it sounds like EVERY feature ever added to the kit must be supported, some features can be marked as "extra special" which does not require them to be supported for the feature kit to be considered complete.
| kit | The FeatureKit to test for complete feature support. |
| bool TurtleBrains::Core::Version::IsKitMinimallySupported | ( | const FeatureKit & | kit | ) |
Checks to see if ALL the features of the specified kit, at a minimal level, is supported or not. All features marked in the minimum kit level must be supported for this to return true, if even a single feature required for the minimum kit support is not supported, this returns false.
| kit | The FeatureKit to test for minimal feature support. |
| const String& TurtleBrains::Core::Version::ProjectVersionString | ( | void | ) |
Retrieves a string with the major, minor and patch of the framework combined with the framework name in a string like: "TurtleBrains v1.0.0"
| const String& TurtleBrains::Core::Version::VersionString | ( | void | ) |
Retrieves a string with the major, minor and patch of the framework combined without the framework name in a string like: "1.0.0"