VR-Forces 4.3.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
myAirVehSetCtlr.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2006 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: myAirVehSetCtlr.h,v $ $Revision: 1.2 $ $State: Exp $
7 *******************************************************************************/
8 
9 //\file myAirVehSetCtlr.h
10 //\brief MyAirVehicleSetController; handles new DtSetSpeedAndHeadingRequest
11 
12 
13 #ifndef MyAirVehicleSetController_H_
14 #define MyAirVehicleSetController_H_
15 
16 
18 #include "vrfobjcore/simRadio.h"
19 
20 namespace vrfAddSetExample
21 {
22 
23  //\brief MyAirVehicleSetController is a controller that handles new
24  //DtSetSpeedAndHeadingRequest. It replaces the existing DtAirVehicleSetController
25  //
26  //Uses Descriptor Type: DtComponentDescriptor
27 
29  {
30 
31  public:
32 
33  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
34  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
36  DtVrfObject* owner,
38  DtComponentDescriptor* desc = 0,
39  DtReaderWriterRegistry* parentRegistry = 0);
40 
41  //destructor
43 
44  virtual void processSetSpeedAndHeading(DtSimMessage * msg);
45 
46  static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
47 
48  //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
49  //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
50  //\return New instance of this class.
51  static DtSimComponent * creator(const DtString& name,
52  DtVrfObject* owner,
53  DtSimManager* simManager,
54  DtComponentDescriptor* desc = 0,
55  DtReaderWriterRegistry* parentRegistry = 0);
56 
57  private:
58  //Default constructor; should not be called. Here because the compiler
59  //will generate an unprotected one otherwise.
61 
62  //copy constructor
64 
65  //assignment operator
68 
69 
70  protected:
71  //Overrides this so it can register its interest in the set commands.
72  virtual void setRadio(DtSimRadio * radio);
73  };
74 }
75 #endif
76 

Document ID: Generated on Wed Jul 29 00:55:00 EDT 2015 from SVN revision 155257
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)