VR-Forces 4.0.4 Class Documentation
examples/subtask/turnAndMoveControllerPSR.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2005 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile: turnAndMoveControllerPSR.h,v $ $Revision: 1.3 $ $State: Exp $
00007 *******************************************************************************/
00008 
00009 #ifndef turnAndMoveControllerPSR_H_
00010 #define turnAndMoveControllerPSR_H_
00011 
00012 #include "vrfobjcore/processSR.h"
00013 #include "vrfutil/rwInt.h"
00014 #include "vrfutil/rwString.h"
00015 
00016 //RW type definition.
00017 const char DtTurnAndMoveControllerPSRType[] = "turn-and-move-process-state-repository";
00018 
00019 //DtTurnAndMoveControllerPSR is a process state repository which holds state variables for
00020 //the DtTurnAndMoveController component.
00021 //Process State Repositories hold state data for one or more components so that
00022 //their internal state is preserved when a scenario is saved and reloaded.
00023 class DtTurnAndMoveControllerPSR : public DtVrfProcessStateRepository
00024 {
00025 public:
00026    //Constructor
00027    DtTurnAndMoveControllerPSR(DtVrfObject* vrfObject, 
00028       const DtString& rwName = DtString::nullString(), 
00029       DtReaderWriterRegistry*  parentRegistry = 0);
00030    //Copy constructor
00031    DtTurnAndMoveControllerPSR(const DtTurnAndMoveControllerPSR& orig, 
00032       const DtString& rwName = DtString::nullString(), 
00033       DtReaderWriterRegistry*  parentRegistry = 0);
00034    //Assignment Operator
00035    DtTurnAndMoveControllerPSR& operator=(const DtTurnAndMoveControllerPSR& orig);
00036    //Destructor
00037    virtual ~DtTurnAndMoveControllerPSR();
00038 
00039    //Returns complete copy of this class using the copy constructor.
00040    virtual DtVrfProcessStateRepository* clone(
00041       const DtString& rwName = DtString::nullString(), 
00042       DtReaderWriterRegistry*  parentRegistry = 0) const;
00043    //Returns "turn-and-move-process-state-repository"
00044    virtual DtString type() const;
00045 
00046    //Static creator function for factory registration.
00047    static DtVrfProcessStateRepository* creator(const DtString& rwName, 
00048       DtVrfObject* vrfObject, DtReaderWriterRegistry* parentRegistry = 0);
00049 
00050    virtual DtString destinationName() const;
00051    virtual void setDestinationName(const DtString& newValue);
00052    
00053    virtual int subtaskId() const;
00054    virtual void setSubtaskId(const int& newValue);
00055   
00056    virtual int taskState() const;
00057    virtual void setTaskState(const int& newValue);
00058 
00059 protected:
00060    DtRwString myDestinationName;
00061    DtRwInt mySubtaskId;
00062    DtRwInt myTaskState;
00063 };
00064 #endif

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)