VR-Forces Developer's Guide
 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);
29  const DtString& mtlName, const DtEmbeddedTaskForwardTask& orig, DtReaderWriterRegistry* parentRegistry = NULL);
30 
31  virtual ~DtEmbeddedTaskForwardTask() override;
32 
34  virtual DtSimTask* clone(const DtString& mtlName, DtReaderWriterRegistry* parentRegistry = NULL) const override;
35 
36  virtual const DtSimTaskMessageType& type() const override;
37  static DtSimTask* creator();
38 
41  virtual int netRepSize() const override;
42  virtual bool setFromNet(const char* buff, unsigned contentSize) override;
43  virtual bool setToNet() override;
45 
47  virtual DtString stringRep() const override;
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) override;
70  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
71  const DtVariableBindingsList& variableBindings) override;
72 
73 protected:
77 
79 };
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
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...
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().
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*...
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual void putData(std::string &fp, int indentLevel=0) override
putData writes our type, which is provided by the virtual type accessor of the deriving class...
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. 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 DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings) override
getData is just used to get us past the type in the data stream, since it&#39;s not actually stored...
DtRwBoolean myBlockToCompletion
Indicates whether the DtEmbeddedEntityController should treat the forwarded task as a subtask and wai...
Definition: embeddedTaskForwardTask.h:76
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.
DtSimTask * myTaskToForward
Definition: embeddedTaskForwardTask.h:78
virtual int netRepSize() const
Returns the size in bytes of the network representation of the class. This is the size in bytes of th...
DtRwString myEmbeddedEntityName
Definition: embeddedTaskForwardTask.h:74

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)