VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
turnToHeadingTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 20015 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
18 #include "vrftasks/simTask.h"
19 #include <readerWriter/rwReal.h>
20 #include <readerWriter/rwInt.h>
21 
22 class DtString;
23 
26 
41 
43 {
44 
45 public:
46 
49 
53  parentRegistry = 0);
54 
56  DtTurnToHeadingTask(const DtString & writeName, const DtTurnToHeadingTask &
57  orig, DtReaderWriterRegistry * parentRegistry = 0);
58 
61 
62  virtual ~DtTurnToHeadingTask();
63 
65  virtual const DtSimTaskMessageType& type() const;
66 
68  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
69  parentRegistry = 0) const;
70 
72  virtual DtString stringRep() const;
73 
74  virtual void setHeading(DtReal heading);
75  virtual DtReal heading() const;
76 
77  virtual int mode() const;
78  virtual void setMode(int);
79 
82  virtual int netRepSize() const;
83 
85  virtual bool setFromNet(const char* contentBuffer,
86  unsigned contentSize);
87 
90  virtual bool setToNet();
91 
92  static DtSimTask * creator();
93 
94 protected:
97 };
Definition: readerWriterRegistry.h:39
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task.
This struct is the FIXED portion of the simulation network representation of a turn to heading task...
Definition: turnToHeadingTask.h:42
DtRwInt myMode
Definition: turnToHeadingTask.h:96
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask).
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual bool setToNet()
Calls netRep() to create the network buffer.
DtRwReal myHeading
Definition: turnToHeadingTask.h:95
#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.
Definition: simTask.h:31
const char int mode
Definition: ioapi.h:38
virtual DtString stringRep() const =0
Returns a human-readable string representation of the task.
const DtSimTask & operator=(const DtSimTask &orig)
assignment operator; same as copy constructor
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”).
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.

Document ID: Generated on Tue Sep 21 17:42:52 EDT 2021 from SVN revision 234861
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)