Improved DataManager string Get and Set methods.

- The Get method no longer assumes unknown drefs are floats.
 - The Get method now properly accounts for the fact that the dref data type is a bitflag.
 - Binary drefs are now properly read and packed into `values`.
  - This is a rather inefficient process, as it quadruples the number of bytes we have to send out. Should look into better ways to do this in the future.
 - The Set method now handles data types correctly.
 - The Set method now supports binary datarefs.
 - Improved logging of edge cases.
 - Added a check to warn about setting read-only datarefs if verbose logging is enabled.
This commit is contained in:
Jason Watkins
2015-04-29 09:57:59 -07:00
parent dc4abba73a
commit 955657bb96
2 changed files with 183 additions and 57 deletions

View File

@@ -137,10 +137,10 @@ namespace XPC
/// Marshals data between the plugin and X-Plane.
///
/// \author Jason Watkins
/// \version 1.0
/// \since 1.0
/// \version 1.0.1
/// \since 1.0.0
/// \date Intial Version: 2015-04-13
/// \date Last Updated: 2015-04-13
/// \date Last Updated: 2015-04-29
class DataManager
{
public: