VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setSurrenderRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 
18 #include <readerWriter/rwBoolean.h>
19 #include <vlutil/vlNetTypes.h>
20 
23 {
24  DtNetBoolean mySurrender;
25 };
26 
32 
35 {
36 
37 public:
38 
41 
44  DtSetSurrenderRequest(const DtString & writeName,
45  DtReaderWriterRegistry * parentRegistry = 0);
46 
48  DtSetSurrenderRequest(const DtString & writeName, const DtSetSurrenderRequest &
49  orig, DtReaderWriterRegistry * parentRegistry = 0);
50 
53 
54  virtual ~DtSetSurrenderRequest();
55 
57  virtual const DtSetMessageType& type() const;
58 
60  virtual DtSetDataRequest * clone(const DtString & name,
61  DtReaderWriterRegistry * parentRegistry = 0) const;
62 
64  virtual DtString stringRep() const;
65 
66  virtual bool surrender() const;
67  virtual void setSurrender(bool b);
68 
71  virtual int netRepSize() const;
72 
74  virtual bool setFromNet(const char* contentBuffer,
75  unsigned contentSize);
76 
79  virtual bool setToNet();
80 
81  static DtSetDataRequest * creator();
82 
83 protected:
84 
86 
87 };
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
File: setSurrender.h.
Definition: setSurrenderRequest.h:22
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...
DtRwBoolean mySurrender
Definition: setSurrenderRequest.h:85
#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...
DtNetBoolean mySurrender
Definition: setSurrenderRequest.h:24
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtSetSurrenderRequest is used to set surrendered for an entity Check here for more information: https...
Definition: setSurrenderRequest.h:34

Document ID: Generated on Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)