VR-Forces 4.0.4 Class Documentation
include/bhaveMsgs/setBhaveMovementMode.h
Go to the documentation of this file.
00001 /*******************************************************************************
00002 ** Copyright (c) 2006 MAK Technologies, Inc.
00003 ** All rights reserved.
00004 *******************************************************************************/
00005 /*******************************************************************************
00006 ** $RCSfile:  $ $Revision: $ $State: $
00007 *******************************************************************************/
00008 
00011 
00012 #pragma once
00013 
00014 #include <vrftasks/setDataReq.h>
00015 #include <vrfutil/rwString.h>
00016 #include <vrfutil/rwInt.h>
00017 #include "bhaveMsgs/bhaveMsgsDefines.h"
00018 
00019 namespace BHAVE
00020 {
00021 const char DtBhaveMovementModeFree[] = "free";
00022 const char DtBhaveMovementModePreferRoads[] = "prefer-roads";
00023 const char DtBhaveMovementModeAvoidRoads[] = "avoid-roads";
00024 
00025 class DT_DLL_bhaveMsgs DtSetBhaveMovementMode : public DtSetDataRequest
00026 {
00027 public:
00028 
00030    DtSetBhaveMovementMode();
00031 
00034    DtSetBhaveMovementMode(const DtString & writeName, 
00035       DtReaderWriterRegistry * parentRegistry = 0);
00036 
00038    DtSetBhaveMovementMode(const DtString & writeName, const DtSetBhaveMovementMode &
00039       orig, DtReaderWriterRegistry * parentRegistry = 0);
00040 
00042    const DtSetBhaveMovementMode & operator=(const DtSetBhaveMovementMode & orig);
00043 
00044    virtual ~DtSetBhaveMovementMode();
00045 
00047    virtual int type() const;
00048 
00050    virtual DtSetDataRequest * clone(const DtString & name, 
00051       DtReaderWriterRegistry * parentRegistry = 0) const;
00052 
00054    virtual DtString stringRep() const;
00055 
00057 
00058    virtual const DtString movementType() const;
00059    virtual void setMovementType(const DtString& mode);
00061 
00062    virtual int netRepSize() const;
00063 
00065    virtual bool setFromNet(const char* contentBuffer, 
00066       unsigned contentSize);
00067 
00070    virtual bool setToNet();
00071 
00072    static DtSetDataRequest * creator();
00073 
00074    virtual void getSelf(DtlObjPtr args, const DtFilename& searchPath =
00075       DtFilename::nullFilename());
00076 
00077 protected:
00078 
00079    DtRwString myMovementTypeStr;
00080 
00081 };
00082 
00083 } 

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)