The Settings Manager Extension example demonstrates the following:
- How to install a new settings manager to maintain a new file
- How to add settings to the existing file (vrfSim.xml)
Since this example is loaded as a plugin, it can be used in conjunction with the released VR-Forces application
How to Run the Example
This example demonstrates how to install your own settings manager.
Usage
To view the new behavior:
-
Open a command prompt window, navigate to the VR-Forces /bin64/ directory and start just the VR-Forces vrfSIM (backend) through the Launcher - using "vrfLauncher -B".
-
In the Launcher, set the settingsManager plugin to load and start VR Forces using the preconfigured DIS (7) connection (rather than "DIS (7) localhost").
-
Open a separate command prompt window, navigate to the VR-Forces /bin64/ directory and start settingsManagerRemoteDIS.exe from the command prompt.
-
After starting, the settingsManagerRemote executable will connect to the sim engine and demonstrate remotely changing and querying some test settings added by the plugin.
-
The vrfSim console window should display text similar to the following:
Double value set to 17184
Bool value set to 1
-
The settingsManagerRemote console window should display text similar to the following:
Calling modifyBackEndSetting setting with double = 17184 bool = 1
Response received from back-end 1:3001 : double = 17184 bool = 1
Settings received;
Plugin Entry Points
#include "myObjectManager.h"
extern "C" {
{
}
{
return true;
}
}