VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setUnitPatchesRequest.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2021 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
9 
10 #pragma once
11 
14 #include <vlpi/patchIdentifier.h>
15 #include <vlutil/vlNetTypes.h>
16 
22 {
23 public:
24 
26  static DtSetDataRequest* creator();
27 
30 
33  DtSetUnitPatchesRequest( const DtString& writeName, DtReaderWriterRegistry* parentRegistry = 0 );
34 
36  DtSetUnitPatchesRequest( const DtString& writeName, const DtSetUnitPatchesRequest& orig,
37  DtReaderWriterRegistry * parentRegistry = 0 );
38 
41 
43  virtual ~DtSetUnitPatchesRequest();
44 
46  virtual DtSetDataRequest* clone( const DtString& name, DtReaderWriterRegistry* parentRegistry = 0 ) const;
47 
49  virtual const DtSetMessageType& type() const;
50 
52  virtual DtString stringRep() const;
53 
56 
57  void setPrimaryUnitPatch( const DtPatchIdentifier& patchId );
58  const DtPatchIdentifier& primaryUnitPatch() const;
59 
60  void setSecondaryUnitPatch( const DtPatchIdentifier& patchSetId );
61  const DtPatchIdentifier& secondaryUnitPatch() const;
62 
64 
67  virtual int netRepSize() const;
68 
70  virtual bool setFromNet( const char* contentBuffer, unsigned contentSize );
71 
74  virtual bool setToNet();
75 
76 protected:
77 
80 
81 };
virtual bool setToNet()
Sets netRep buffer to the contents of this set request. Base class does nothing and returns true...
DtRwPatchIdentifier myPrimaryUnitPatch
Definition: setUnitPatchesRequest.h:78
Definition: readerWriterRegistry.h:39
DtRwPatchIdentifier mySecondaryUnitPatch
Definition: setUnitPatchesRequest.h:79
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
Contains the DtRwPatchIdentifier class declaration.
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
Readable/writable form of DtPatchIdentifier.
Definition: rwPatchIdentifier.h:17
DtSetUnitPatchesRequest is used to set the unit patches for an entity. set-data-request-type: DtSetUn...
Definition: setUnitPatchesRequest.h:21
virtual DtString stringRep() const =0
Get a readable string representation of this setDataRequest. Returns a human readable string represen...

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)