VR-Forces 4.7 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties 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.12 - 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 Fri Apr 26 21:53:14 EDT 2019 from SVN revision 197883
Copyright © 2005-2019 VT MAK. All Rights Reserved (www.mak.com)