VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
iffInterrogatorSweepTask.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 
9 #include "vrftasks/simTask.h"
10 #include <readerWriter/rwInt.h>
11 #include <readerWriter/rwReal.h>
12 
14 
18 {
19 public:
22 
25  DtIffInterrogatorSweepTask(const DtString & writeName,
26  DtReaderWriterRegistry * parentRegistry = 0);
27 
29  DtIffInterrogatorSweepTask(const DtString & writeName, const
31  parentRegistry = 0);
32 
36 
38  virtual ~DtIffInterrogatorSweepTask();
39 
41  virtual const DtSimTaskMessageType& type() const;
42 
44  virtual DtSimTask* clone(const DtString& name,
45  DtReaderWriterRegistry* parentRegistry = 0) const;
46 
48  virtual DtString stringRep() const;
49 
51 
52  virtual void setOrientationOffset(double);
53  virtual double orientationOffset() const;
54 
56  {
57  FromEntity = 0,
58  FromTrueNorth
59  };
60 
62  virtual void setOrientationToUse(OrientationType);
63  virtual OrientationType orientationToUse() const;
65 
67 
68  virtual void setRange(double);
69  virtual double range() const;
71 
73 
74  virtual void setSweep(double);
75  virtual double sweep() const;
77 
78  virtual void setMode1Included(const bool& val);
79  virtual bool mode1Included() const;
80  virtual void setMode2Included(const bool& val);
81  virtual bool mode2Included() const;
82  virtual void setMode3AIncluded(const bool& val);
83  virtual bool mode3AIncluded() const;
84  virtual void setMode5Included(const bool& val);
85  virtual bool mode5Included() const;
86  virtual void setModeSIncluded(const bool& val);
87  virtual bool modeSIncluded() const;
88  virtual void setMode3CIncluded(const bool& val);
89  virtual bool mode3CIncluded() const;
90  virtual void setTCASIncluded(const bool& val);
91  virtual bool TCASIncluded() const;
92  virtual void setIsLethalInterrogation(const bool& val);
93  virtual bool isLethalInterrogation() const;
94 
97  virtual int netRepSize() const;
98 
100  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize);
101 
104  virtual bool setToNet();
105 
107  static DtSimTask* creator();
108 
109 protected:
114 
117 };
118 
VR-Link includes.
Definition: iffInterrogatorSweepTask.h:17
DtRwReal mySweep
Definition: iffInterrogatorSweepTask.h:113
DtRwInt myOrientationType
Definition: iffInterrogatorSweepTask.h:110
DtRwReal myRange
Definition: iffInterrogatorSweepTask.h:112
Definition: readerWriterRegistry.h:39
OrientationType
Get/set the orientation to use and offset. Offset is in radians.
Definition: iffInterrogatorSweepTask.h:55
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task. Returns a newly allocated instance of a DtSimTask. Override this member fun...
DtRwReal myOrientationOffset
Definition: iffInterrogatorSweepTask.h:111
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask). Derived classes should call down to this function first, and then extract their own data starting at the location contentBuffer + DtSimTask::netRepSize().
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtSimTask is an abstract base class from which real tasks can derive. It manages the read/write capab...
Definition: simTask.h:30
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task. This string representation is used to dis...
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
DtRwInt myFlags
Bits flags that will be turned on for each mode included and whether or not.
Definition: iffInterrogatorSweepTask.h:116
virtual const DtSimTaskMessageType & type() const =0
What kind of task am I? Returns a string indicating the kind of task (for example, “move-to”, “follow-entity”). Derived classes must implement this member function to return a unique string representing the type of task. The set of standard task types supplied with VR-Forces is in taskTypes.h.
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)