VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
waitDurationTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
14 
15 #pragma once
16 
17 #include "vrftasks/simTask.h"
18 #include <readerWriter/rwReal.h>
19 #include <vlutil/vlNetTypes.h>
20 
21 class DtString;
22 
25 
27 {
28  DtNetFloat64 mySecondsToWait;
29 };
30 
42 {
43 
44 public:
45 
48 
52  parentRegistry = 0);
53 
55  DtWaitDurationTask(const DtString & writeName, const DtWaitDurationTask &
56  orig, DtReaderWriterRegistry * parentRegistry = 0);
57 
59  const DtWaitDurationTask & operator=(const DtWaitDurationTask & orig);
60 
61  virtual ~DtWaitDurationTask();
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 setSecondsToWait(DtReal seconds);
74  virtual DtReal secondsToWait() const;
75 
78  virtual int netRepSize() const;
79 
81  virtual bool setFromNet(const char* contentBuffer,
82  unsigned contentSize);
83 
86  virtual bool setToNet();
87 
88  static DtSimTask * creator();
89 
90 protected:
91 
93 
94 };
95 
This struct is the FIXED portion of the simulation network representation of a wait duration task...
Definition: waitDurationTask.h:26
Definition: readerWriterRegistry.h:39
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task.
DtWaitDurationTask commands an entity to wait a given duration of time.
Definition: waitDurationTask.h:41
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)
Sets mySubtask member from the incoming contentBuffer (cast to type DtNetSimTask).
virtual bool setToNet()
Calls netRep() to create the network buffer.
#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
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
DtRwReal mySecondsToWait
Definition: waitDurationTask.h:92
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”).
DtNetFloat64 mySecondsToWait
Definition: waitDurationTask.h:28
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)