VR-Forces 4.8 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
targetPointTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 #pragma once
15 
16 #include "vrftasks/simTask.h"
17 #include <readerWriter/rwString.h>
18 #include <matrix/vlVector.h>
19 #include <vlpi/netStructs.h>
20 
27 #include "readerWriter/rwVector.h"
29 {
30 
31 public:
32 
35 
38  DtTargetPointTask(const DtString& writeName,
39  DtReaderWriterRegistry* parentRegistry = NULL);
40  DtTargetPointTask(const DtSymbolString& writeName,
41  DtReaderWriterRegistry* parentRegistry = NULL);
42 
44  DtTargetPointTask(const DtString& writeName, const DtTargetPointTask& orig,
45  DtReaderWriterRegistry* parentRegistry = NULL);
46  DtTargetPointTask(const DtSymbolString& writeName, const DtTargetPointTask& orig,
47  DtReaderWriterRegistry* parentRegistry = NULL);
48 
50  const DtTargetPointTask & operator=(const DtTargetPointTask & orig);
51 
52  virtual ~DtTargetPointTask();
53 
55  virtual const DtSimTaskMessageType& type() const;
56 
58  virtual DtSimTask* clone(const DtString& name, DtReaderWriterRegistry*
59  parentRegistry = NULL) const;
61  parentRegistry = NULL) const;
62 
64  virtual DtString stringRep() const;
65 
66  virtual const DtVector & targetPoint() const;
67  virtual void setTargetPoint(const DtVector & targetPoint);
68 
71  virtual int netRepSize() const;
72 
74  virtual bool setFromNet(const char* contentBuffer,
75  unsigned contentSize);
76 
79  virtual bool setToNet();
80 
81  static DtSimTask * creator();
82 
83 protected:
84 
86 
87 };
Definition: symbolString.h:20
Definition: readerWriterRegistry.h:39
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task.
Definition: rwVector.h:23
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask).
DtRwVector myTargetPoint
Definition: targetPointTask.h:85
virtual bool setToNet()
Calls netRep() to create the network buffer.
File: targetPtTask.h.
Definition: targetPointTask.h:28
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:33
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”).
File: rwVector.h.
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)