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

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)