VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
setClutterIcaoIffRequest.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
6 #pragma once
7 
10 #include <vlpi/netStructs.h>
11 #include <readerWriter/rwReal.h>
13 
14 
15 //class DtSetClutterIcaoIffRequest:
16 //
17 //Instances of DtSetSpeedAndHeading are an example of a new kind of set that tells
18 //an entity to set their current speed and heading.
19 
20 //DtSetSpeedAndHeadingString must be a unique string representing the set
21 //(existing string types are defined in msgTypes.h).
22 
23 //DtSetSpeedAndHeadingMenuItemIdName must be a unique string identifying the
24 //DtSetSpeedAndHeadingMenuItem object, which inherits from DtVrfTaskSetMenuItem
25 //const char DtSetSpeedAndHeadingMenuItemIdName[] = "DtSetSpeedAndHeadingMenuItem";
26 
28 {
29 
30 public:
31 
32  //default constructor
34 
35  //constructor;
36  //If you have a request 'put' itself, the writeName will preface it.
37  DtSetClutterIcaoIffRequest(const DtString & writeName,
38  DtReaderWriterRegistry * parentRegistry = 0);
39 
40  //copy constructor
42  orig, DtReaderWriterRegistry * parentRegistry = 0);
43 
44  //assignment operator
46 
47  virtual ~DtSetClutterIcaoIffRequest() override;
48 
49  //Returns DtSetClutterIcaoIffType.
50  virtual const DtSetMessageType& type() const override;
51 
52  //Creates a copy of the request.
53  virtual DtSetDataRequest * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
54 
55  //Get a readable string representation of this setDataRequest.
56  virtual DtString stringRep() const override;
57 
58  //Integer representation of 6-hex-digit value.
59  virtual int icaoAddress() const;
60  virtual void setIcaoAddress(int icao);
61 
62  //Returns the size of the full network representation
63  //padded to an 8-byte boundary.
64  virtual int netRepSize() const override;
65 
66  //Fills in the task from the network buffer.
67  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
68 
69  //Fills in the network buffer (created by base class setDataRequest) with
70  //the set data request contents.
71  virtual bool setToNet() override;
72 
73  static DtSetDataRequest * creator();
74 
75 protected:
76 
78 };
const DtSetIff2Request & operator=(const DtSetIff2Request &orig)
assignment operator
virtual int netRepSize() const override
Returns the size of the full network representation (altitude included) padded to an 8-byte boundary...
static DtSetDataRequest * creator()
Definition: setClutterIcaoIffRequest.h:27
Definition: readerWriterRegistry.h:39
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.
class DtSetIff2Request
Definition: setIff2Request.h:20
int myIcaoAddress
Definition: setClutterIcaoIffRequest.h:77
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
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
virtual bool setToNet() override
Fills in the network buffer (created by base class setDataRequest) with the set data request contents...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize) override
Fills in the request from the network buffer.
virtual const DtSetMessageType & type() const override
Returns DtSetIffRequestType.

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)