VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setStowWeaponRequest.h
Go to the documentation of this file.
1 #pragma once
2 
3 
5 #include <readerWriter/rwInt.h>
6 #include <vlutil/vlNetTypes.h>
8 
11 {
12 
13 public:
14 
17 
20  DtSetStowWeaponRequest(const DtString & writeName,
21  DtReaderWriterRegistry * parentRegistry = nullptr);
22 
24  DtSetStowWeaponRequest(const DtString & writeName, const DtSetStowWeaponRequest &
25  orig, DtReaderWriterRegistry * parentRegistry = nullptr);
26 
29 
30  virtual ~DtSetStowWeaponRequest() override;
31 
33  virtual const DtSetMessageType& type() const override;
34 
36  virtual DtSetDataRequest * clone(const DtString & name,
37  DtReaderWriterRegistry * parentRegistry = nullptr) const override;
38 
40  virtual DtString stringRep() const override;
41 
43 
44  virtual DtString weaponId() const;
45  virtual void setWeaponId(const DtString& wid);
47 
49 
50  virtual bool stowState() const;
51  virtual void setStowState(bool v);
53 
56  virtual int netRepSize() const override;
57 
59  virtual bool setFromNet(const char* contentBuffer,
60  unsigned contentSize) override;
61 
64  virtual bool setToNet() override;
65 
66  static DtSetDataRequest * creator();
67 
68 protected:
69 
72 
73 };
74 
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
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...
This set request is used to stow/deploy weapons.
Definition: setStowWeaponRequest.h:10
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...
DtRwString myWeaponId
Definition: setStowWeaponRequest.h:70
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
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtRwBoolean myStowState
Definition: setStowWeaponRequest.h:71

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)