Moved handling of deafult values to the DataManager class.

This commit is contained in:
Jason Watkins
2015-05-14 13:35:55 -07:00
parent 238c82454c
commit 693c5f3d23
3 changed files with 42 additions and 23 deletions

View File

@@ -145,7 +145,7 @@ namespace XPC
/// \version 1.1
/// \since 1.0.0
/// \date Intial Version: 2015-04-13
/// \date Last Updated: 2015-05-11
/// \date Last Updated: 2015-05-14
class DataManager
{
public:
@@ -409,6 +409,15 @@ namespace XPC
///
/// \param value The flaps settings. Should be between 0.0 (no flaps) and 1.0 (full flaps).
static void SetFlaps(float value);
/// Gets a default value that indicates that a dataref should not be changed.
static float GetDefaultValue();
/// Checks whether the given value should be treated as a default value.
///
/// \param value The value to check.
/// \returns true if value is a default value; otherwise false.
static bool IsDefault(float value);
};
}
#endif