VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
embeddedTaskForwardTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2014 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include "vrftasks/simTask.h"
14 #include <vrfutil/rwUUID.h>
15 
16 #include <readerWriter/rwString.h>
17 
18 class DtRwString;
19 
24 
25 public:
27  DtEmbeddedTaskForwardTask(const DtString& mtlName, DtReaderWriterRegistry* parentRegistry = NULL);
28  DtEmbeddedTaskForwardTask(const DtString& mtlName,
29  const DtEmbeddedTaskForwardTask& orig, DtReaderWriterRegistry* parentRegistry = NULL);
30 
32 
34  virtual DtSimTask* clone(const DtString& mtlName, DtReaderWriterRegistry* parentRegistry = NULL) const;
35 
36  virtual const DtSimTaskMessageType& type() const;
37  static DtSimTask* creator();
38 
41  virtual int netRepSize() const;
42  virtual bool setFromNet(const char* buff, unsigned contentSize);
43  virtual bool setToNet();
45 
47  virtual DtString stringRep() const;
48 
51  virtual const DtString& embeddedEntityName() const;
52  virtual void setEmbeddedEntityName(const DtString& name);
54 
57  virtual bool blockToCompletion() const;
58  virtual void setBlockToCompletion(bool blocking);
60 
63  virtual const DtSimTask* taskToForward() const;
65  virtual void setTaskToForward(const DtSimTask* tsk);
67 
68 protected:
69  virtual void putData(std::string& fp, int indentLevel = 0);
70  virtual DtlObjPtr getData(DtlObjPtr args,
71  const DtReaderWriter::SearchPaths& searchPaths,
72  const DtVariableBindingsList& variableBindings);
73 
74 protected:
78 
80 };
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
getData is just used to get us past the type in the data stream, since it&#39;s not actually stored...
virtual DtSimTask * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this task.
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).
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
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
The DtEmbeddedSetForwardTask is a task container for DtSimTask instances which are addressed to an Em...
Definition: embeddedTaskForwardTask.h:23
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
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
virtual void putData(std::string &fp, int indentLevel=0)
putData writes our type, which is provided by the virtual type accessor of the deriving class...
DtRwBoolean myBlockToCompletion
Indicates whether the DtEmbeddedEntityController should treat the forwarded task as a subtask and wai...
Definition: embeddedTaskForwardTask.h:77
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”).
DtSimTask * myTaskToForward
Definition: embeddedTaskForwardTask.h:79
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class.
DtRwString myEmbeddedEntityName
Definition: embeddedTaskForwardTask.h:75

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)