VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Set Data Manager

All simulation objects have a Set Data Manager, DtSetDataManager (setDataManager.h).

This class listens for all set data requests that arrive for the simulation object over the radio, and notify any components which have registered an interest in the set data request.

All components that need to be notified when a set data request arrives for a specific simulation object need to register a callback with the Set Data Manager. This callback can be registered either as a processor callback or a notify callback using addSetDataProcessorCallback() or addSetDataNotifyCallback().

Any controllers that will actually change state data register as a processor callback, and any controllers that want to be notified of the request, but will not actually carry the request out, register as notify callbacks. Any number of processor and notify callbacks are allowed for any given set request type. The only functional difference between a notify and processor callback is that the Set Request Manager reports that the simulation object is capable of all sets that have at least one processor callback registered. This determines what set data types are enabled on the GUI when the Set Menu is opened for a particular simulation object. set data request types that have only notify callbacks registered are not enabled in the GUI.


Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)