VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
myObjectManager.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
9 #include "mySettingsManager.h"
10 
11 class DtTestSettings;
12 
14 {
15 public:
16 
17  //The constructor takes a DtSimManager and entityAdvisory which get passed
18  //to the base class
19  MyObjectManager(DtSimManager* simManager, int entityAdvisory);
20 
21  //destructor
22  virtual ~MyObjectManager();
23 
24  //Adds to the existing settings file as well as creating a new one
25  virtual bool init();
26 
27  //Callback registered as a consumer for the test setting. This will be
28  //called when settingsManagerRemote changes the setting.
29  static void testSettingsChangedCallback(
30  const DtSettingsObject* settings, void* usr);
31  //Stores the values from the settings in myDoubleValue and myBoolValue
32  virtual void processTestSettingsChanged(const DtTestSettings* settings);
33 
34  //Callback registered as a producer for the test setting. This will be
35  //called any time the settings manager looks up the setting, including
36  //when the settings file is written out.
37  static void updateTestSettingsCallback(
38  DtSettingsObject* settings, void* usr);
39  //Copies myDoubleValue and myBoolValue into the setting object
40  virtual void processUpdateTestSettings(DtTestSettings* settings);
41 
42 public:
43 
44  //Creator function to be registered with the DtDefaultVrfCreator from
45  //main.cxx
47  int entityAdvisory);
48 
49 public:
50  //Settings manager for the new settings file
52 
53  //Example data which needs to be saved out to the settings files. This
54  //class is the "owner" of this data, the settings manager only asks for
55  //it when it needs to write out the settings file by calling
56  //updateTestSettingsCallback.
57  double myDoubleValue;
59 };

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)