VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setSpeedRequiredRequest.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 
18 #include <readerWriter/rwReal.h>
19 #include <vlpi/netStructs.h>
20 
31 
34 {
35 
36 public:
39 
42  DtSetSpeedRequiredRequest(const DtString & writeName,
43  DtReaderWriterRegistry * parentRegistry = 0);
44 
47  orig, DtReaderWriterRegistry * parentRegistry = 0);
48 
51 
52  virtual ~DtSetSpeedRequiredRequest() override;
53 
55  virtual const DtSetMessageType& type() const override;
56 
58  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
59 
61  virtual DtString stringRep() const override;
62 
64  virtual bool isRequiredSpeed() const;
65  virtual void setSpeedRequired(bool speedModeIsRequired);
66 
69  virtual int netRepSize() const override;
70 
72  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
73 
76  virtual bool setToNet() override;
77 
78  static DtSetDataRequest * creator();
79 
80 protected:
81  DtRwBoolean mySpeedIsRequired; //default is false
82 
83 };
84 
85 
virtual int netRepSize() const override
Returns the size of the full network representation padded to an 8-byte boundary. ...
File: setSpeedRequiredRequest.h.
Definition: setSpeedRequiredRequest.h:33
Definition: readerWriterRegistry.h:39
DtSetSpeedRequest is used to set the speed for an entity. It inherits read/writableness from DtSetDat...
Definition: setSpeedRequest.h:40
const DtSetSpeedRequest & operator=(const DtSetSpeedRequest &orig)
assignment operator
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 bool setToNet() override
Fills in the network buffer (created by base class simTask) with the task contents.
DtRwBoolean mySpeedIsRequired
Definition: setSpeedRequiredRequest.h:81
virtual const DtSetMessageType & type() const override
Returns DtSetSpeedRequestType.
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
static DtSetDataRequest * creator()
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the task from the network buffer.
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const override
Creates a copy of the request.
virtual DtString stringRep() const override
Get a readable string representation of this setDataRequest.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)