VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setForceRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
19 #include "vrfutil/rwForceType.h"
20 #include <vlutil/vlNetTypes.h>
21 
25 {
26  DtNetInt32 myForce;
27 };
28 
38 {
39 
40 public:
41 
44 
47  DtSetForceRequest(const DtString & writeName,
48  DtReaderWriterRegistry * parentRegistry = 0);
49 
51  DtSetForceRequest(const DtString & writeName, const DtSetForceRequest &
52  orig, DtReaderWriterRegistry * parentRegistry = 0);
53 
55  const DtSetForceRequest & operator=(const DtSetForceRequest & orig);
56 
57  virtual ~DtSetForceRequest() override;
58 
60  virtual const DtSetMessageType& type() const override;
61 
63  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
64 
66  virtual DtString stringRep() const override;
67 
68  virtual DtForceType force() const;
69  virtual void setForce(DtForceType force);
70 
73  virtual int netRepSize() const override;
74 
76  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
77 
80  virtual bool setToNet() override;
81 
82  static DtSetDataRequest * creator();
83 
84 protected:
85 
87 
88 };
89 
DtSetForceRequest is used to set the force type of the entity.
Definition: setForceRequest.h:37
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtNetInt32 myForce
Definition: setForceRequest.h:26
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
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...
File: setForce.h.
Definition: setForceRequest.h:24
Description: A readable, writable DtForceType.
Definition: rwForceType.h:26
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
DtRwForceType myForce
Definition: setForceRequest.h:86

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)