VR-Forces 4.8 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 
42 {
43 
44 public:
45 
48 
52  parentRegistry = 0);
53 
55  DtTurnToHeadingTask(const DtString & writeName, const DtTurnToHeadingTask &
56  orig, DtReaderWriterRegistry * parentRegistry = 0);
57 
60 
61  virtual ~DtTurnToHeadingTask();
62 
64  virtual const DtSimTaskMessageType& type() const;
65 
67  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
68  parentRegistry = 0) const;
69 
71  virtual DtString stringRep() const;
72 
73  virtual void setHeading(DtReal heading);
74  virtual DtReal heading() const;
75 
76  virtual int mode() const;
77  virtual void setMode(int);
78 
81  virtual int netRepSize() const;
82 
84  virtual bool setFromNet(const char* contentBuffer,
85  unsigned contentSize);
86 
89  virtual bool setToNet();
90 
91  static DtSimTask * creator();
92 
93 protected:
96 };
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:41
DtRwInt myMode
Definition: turnToHeadingTask.h:95
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:94
#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:33
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 Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)