VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
myHumanSetController.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2010 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 //\file myHumanSetController.h
7 //\brief MyHumanSetController; handles new DtSetSpeedAndHeadingRequest
8 
9 
10 #pragma once
11 
13 #include "vrfobjcore/simRadio.h"
14 
15 namespace vrfAddSetExample
16 {
17  //\brief MyLocalEntitySetController is a controller that handles new
18  //DtSetSpeedAndHeadingRequest. It replaces the existing DtHumanSetController.
19  //
20  //Uses Descriptor Type: DtComponentDescriptor
21 
23  {
24 
25  public:
26 
27  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
28  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
30  DtVrfObject* owner,
32  DtComponentDescriptor* desc = 0,
33  DtReaderWriterRegistry* parentRegistry = 0);
34 
35  //destructor
36  virtual ~MyHumanSetController();
37 
38  virtual void processSetSpeedAndHeading(DtSimMessage * msg);
39 
40  static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
41 
42  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
43  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
44  //\return New instance of this class.
45  static DtSimComponent * creator(const DtString& name,
46  DtVrfObject* owner,
47  DtSimManager* simManager,
48  DtComponentDescriptor* desc = 0,
49  DtReaderWriterRegistry* parentRegistry = 0);
50 
51  private:
52  //Default constructor; should not be called. Here because the compiler
53  //will generate an unprotected one otherwise.
55 
56  //copy constructor
58 
59  //assignment operator
60  const MyHumanSetController & operator=(const
61  MyHumanSetController& orig);
62 
63 
64  protected:
65  //Overrides this so it can register its interest in the set commands.
66  virtual void setRadio(DtSimRadio * radio);
67  };
68 }
69 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)