VR-Forces 4.0.4 Class Documentation
examples/addSet/addSetSim/myAirVehSetCtlr.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: myAirVehSetCtlr.h,v $ $Revision: 1.2 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 //\file myAirVehSetCtlr.h
00010 //\brief MyAirVehicleSetController; handles new DtSetSpeedAndHeadingRequest
00011 
00012 
00013 #ifndef MyAirVehicleSetController_H_
00014 #define MyAirVehicleSetController_H_
00015 
00016 
00017 #include "vrfmodel/airVehSetCtlr.h"
00018 #include "vrfobjcore/simRadio.h"
00019 
00020 namespace vrfAddSetExample
00021 {
00022 
00023    //\brief MyAirVehicleSetController is a controller that handles new
00024    //DtSetSpeedAndHeadingRequest.  It replaces the existing DtAirVehicleSetController
00025    //
00026    //Uses Descriptor Type: DtComponentDescriptor
00027 
00028    class MyAirVehicleSetController : public DtAirVehicleSetController
00029    {
00030 
00031    public:
00032 
00033       //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
00034       //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
00035    MyAirVehicleSetController(const DtString& name, 
00036       DtVrfObject* owner,
00037       DtSimManager* simManager, 
00038       DtComponentDescriptor* desc = 0,
00039       DtReaderWriterRegistry* parentRegistry = 0);
00040 
00041       //destructor
00042    virtual ~MyAirVehicleSetController();
00043 
00044    virtual void processSetSpeedAndHeading(DtSimMessage * msg);
00045 
00046    static void setSpeedAndHeadingCallback(DtSimMessage * msg, void * usrData);
00047 
00048       //\copydoc DtSimComponent(const DtString&,DtVrfObject*,DtSimManager*,
00049       //DtComponentDescriptor*,DtReaderWriterRegistry* parentRegistry)
00050       //\return New instance of this class.
00051    static DtSimComponent * creator(const DtString& name, 
00052       DtVrfObject* owner,
00053       DtSimManager* simManager, 
00054       DtComponentDescriptor* desc = 0,
00055       DtReaderWriterRegistry* parentRegistry = 0);
00056 
00057    private:
00058       //Default constructor; should not be called.  Here because the compiler
00059       //will generate an unprotected one otherwise.
00060    MyAirVehicleSetController();
00061 
00062       //copy constructor
00063    MyAirVehicleSetController(const MyAirVehicleSetController& orig);
00064 
00065       //assignment operator
00066    const MyAirVehicleSetController & operator=(const 
00067       MyAirVehicleSetController& orig);
00068 
00069 
00070    protected:
00071       //Overrides this so it can register its interest in the set commands.
00072    virtual void setRadio(DtSimRadio * radio);
00073    };
00074 }
00075 #endif
00076 

Document ID: Generated on Fri Jun 29 16:33:32 EDT 2012 from SVN revision 116588
Copyright © 2005-2012 VT MÄK Inc. All Rights Reserved (www.mak.com)