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();
48 
49  //Returns DtSetClutterIcaoIffType.
50  virtual const DtSetMessageType& type() const;
51 
52  //Creates a copy of the request.
53  virtual DtSetDataRequest * clone(const DtString & name,
54  DtReaderWriterRegistry * parentRegistry = 0) const;
55 
56  //Get a readable string representation of this setDataRequest.
57  virtual DtString stringRep() const;
58 
59  //Integer representation of 6-hex-digit value.
60  virtual int icaoAddress() const;
61  virtual void setIcaoAddress(int icao);
62 
63  //Returns the size of the full network representation
64  //padded to an 8-byte boundary.
65  virtual int netRepSize() const;
66 
67  //Fills in the task from the network buffer.
68  virtual bool setFromNet(const char* contentBuffer,
69  unsigned contentSize);
70 
71  //Fills in the network buffer (created by base class setDataRequest) with
72  //the set data request contents.
73  virtual bool setToNet();
74 
75  static DtSetDataRequest * creator();
76 
77 protected:
78 
80 };
virtual bool setToNet()
Fills in the network buffer (created by base class setDataRequest) with the set data request contents...
const DtSetIff2Request & operator=(const DtSetIff2Request &orig)
assignment operator
static DtSetDataRequest * creator()
Definition: setClutterIcaoIffRequest.h:27
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const
Returns the size of the full network representation (altitude included) padded to an 8-byte boundary...
virtual DtString stringRep() const
Get a readable string representation of this setDataRequest.
class DtSetIff2Request
Definition: setIff2Request.h:20
int myIcaoAddress
Definition: setClutterIcaoIffRequest.h:79
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 bool setFromNet(const char *contentBuffer, unsigned contentSize)
Fills in the request from the network buffer.
virtual const DtSetMessageType & type() const
Returns DtSetIffRequestType.
Define constants for types of tasks, sets, admin messages, reports, and sim commands (all sent via ra...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual DtSetDataRequest * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const
Creates a copy of the request.

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)