VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
12.8 - Creating a New DtSetDataRequest

The procedure for creating a new kind of set data request is very similar to creating a new task by overriding DtSimTask.

For a detailed description of how to create a new task in VR-Forces, please see 12.4 - Deriving a New Task from DtSimTask. The analogous steps for creating a set data request are:

  1. Create a derived DtSetDataRequest (setDataReq.h) class. You must implement the following functions in the derived class:
    • Pure virtual type(), clone(), and stringRep() member functions
    • Static creator function
    • netRepSize(), setToNet(), and setFromNet() functions.
  2. Register the new set data request with the corresponding factory. Override the DtFactoryManager class to register the new creator function with the appropriate set data request factory.
  3. Add a controller for handling the new set data request. In this controller, you must register a callback for handling the set data request with the Set Data Manager as either a processor or notify callback. Please see 4.9 - The Set Data Manager.

The following list summarizes the differences between creating a new DtSetDataRequest and creating a new DtSimTask:

[<< Adding a User Task] [Home] [Top of Page] [Simulation Commands >>]


Document ID: Generated on Mon Jul 4 01:00:18 EDT 2016 from SVN revision 166489
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)