VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setSpeedRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 
18 #include <readerWriter/rwReal.h>
19 #include <vlpi/netStructs.h>
20 
24 {
25  DtNetFloat64 mySpeed;
26 };
27 
41 {
42 
43 public:
46 
49  DtSetSpeedRequest(const DtString & writeName,
50  DtReaderWriterRegistry * parentRegistry = 0);
51 
53  DtSetSpeedRequest(const DtString & writeName, const DtSetSpeedRequest &
54  orig, DtReaderWriterRegistry * parentRegistry = 0);
55 
57  const DtSetSpeedRequest & operator=(const DtSetSpeedRequest & orig);
58 
59  virtual ~DtSetSpeedRequest();
60 
62  virtual const DtSetMessageType& type() const;
63 
65  virtual DtSetDataRequest * clone(const DtString & name,
66  DtReaderWriterRegistry * parentRegistry = 0) const;
67 
69  virtual DtString stringRep() const;
70 
72  virtual DtReal speed() const;
73  virtual void setSpeed(DtReal speed);
74 
77  virtual int netRepSize() const;
78 
80  virtual bool setFromNet(const char* contentBuffer,
81  unsigned contentSize);
82 
85  virtual bool setToNet();
86 
87  static DtSetDataRequest * creator();
88 
89 protected:
90 
92 
93 };
94 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtNetFloat64 mySpeed
Definition: setSpeedRequest.h:25
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
DtSetSpeedRequest is used to set the speed for an entity. It inherits read/writableness from DtSetDat...
Definition: setSpeedRequest.h:40
DtSetDataRequest is an abstract base class from which real setDataRequests can derive. It manages the read/write capability; derived classes need only use and register read/writatble data types for derived information.
Definition: setDataRequest.h:41
virtual const DtSetMessageType & type() const =0
What kind of setDataRequest am I? (from radioMsgTypes.h). Returns a string representing the kind of d...
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this request. Returns a pointer to a newly created copy of this data request...
const DtSetDataRequest & operator=(const DtSetDataRequest &orig)
assignment operator; same as copy costructor.
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets the contents of this set request based on the network buffer. Base class does nothing and return...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtRwReal mySpeed
Definition: setSpeedRequest.h:91
File: setSpeed.h.
Definition: setSpeedRequest.h:23

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)