VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
moveIntoFormationTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2001 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 
18 #include "vrftasks/simTask.h"
19 #include "readerWriter/rwVector.h"
20 #include <readerWriter/rwReal.h>
21 #include <readerWriter/rwBoolean.h>
22 #include <vlpi/netStructs.h>
23 #include <readerWriter/rwString.h>
25 
30 {
31 public:
32 
35 
38  DtMoveIntoFormationTask(const DtString & writeName,
39  DtReaderWriterRegistry * parentRegistry = 0);
40 
42  DtMoveIntoFormationTask(const DtString & writeName, const DtMoveIntoFormationTask & orig,
43  DtReaderWriterRegistry * parentRegistry = 0);
44 
47 
48  virtual ~DtMoveIntoFormationTask();
49 
51  virtual const DtSimTaskMessageType& type() const;
52 
54  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
55  parentRegistry = 0) const;
56 
58  virtual DtString stringRep() const;
59 
62  virtual const DtVector & location() const;
63  virtual void setLocation(const DtVector & point);
64 
66  virtual double heading() const;
67  virtual void setHeading(double heading);
68 
69  virtual DtString formationName() const;
70  virtual void setFormationName(const DtString& formation);
71 
74  virtual int netRepSize() const;
75 
77  virtual bool setFromNet(const char* contentBuffer,
78  unsigned contentSize);
79 
82  virtual bool setToNet();
83 
86  virtual void getSelf(DtlObjPtr args,
88  const DtVariableBindingsList& variableBindings = nullVariableReference());
89 
90  static DtSimTask * creator();
91 
92 protected:
93 
97 };
98 
DtRwReal myHeading
Definition: moveIntoFormationTask.h:95
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
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...
DtRwVector myLocation
Definition: moveIntoFormationTask.h:94
Definition: rwVector.h:23
DtRwString myFormationName
Definition: moveIntoFormationTask.h:96
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
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().
File: moveIntoFormationTask.h.
Definition: moveIntoFormationTask.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
virtual bool setToNet()
Calls netRep() to create the network buffer. Casts the resulting myNetRep to type DtNetSimTask*...
virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths=SearchPaths(), const DtVariableBindingsList &variableBindings=nullVariableReference())
Top level to read itself from an input stream. searchPath is passed down to all DtReaderWriter member...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
static const DtVariableBindingsList & nullVariableReference()
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
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.
File: rwVector.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 Wed Mar 27 22:49:11 EDT 2024 from SVN revision 264633
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)