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

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)