VR-Forces 4.10 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
sendSetMessageTask.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 #pragma once
11 
13 #include <readerWriter/rwString.h>
14 #include "vrftasks/simTask.h"
15 #include "vrfutil/rwUUID.h"
16 
17 class DtSetDataRequest;
18 
23 {
24 public:
27 
29  DtSendSetMessageTask(const DtString& writeName,
30  DtReaderWriterRegistry* parentRegistry = NULL);
31 
33  DtSendSetMessageTask(const DtString & writeName, const DtSendSetMessageTask& orig,
34  DtReaderWriterRegistry* parentRegistry = NULL);
35 
37  virtual ~DtSendSetMessageTask();
38 
41 
43  virtual const DtSimTaskMessageType& type() const;
44 
46  virtual DtSimTask * clone(const DtString & name, DtReaderWriterRegistry *
47  parentRegistry = 0) const;
48 
52 
53  virtual const DtUUID& uuid() const;
54  virtual void setUUID(const DtUUID& name);
56 
58  virtual const DtSetDataRequest* setRequest() const;
60  virtual void setSetRequest(const DtSetDataRequest* task);
61 
63  virtual DtString stringRep() const;
64 
66  virtual int netRepSize() const;
67 
69  virtual bool setFromNet(const char* contentBuffer,
70  unsigned contentSize);
71 
73  virtual bool setToNet();
74 
76  static DtSimTask* creator();
77 
78 protected:
80 
81  virtual void putData(std::string& fp, int indentLevel = 0);
82  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
83  const DtVariableBindingsList& variableBindings);
85 
86 protected:
89 };
90 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:222
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.
Description: Readable, Writable uuid string.
Definition: rwUUID.h:419
DtSetDataRequest is an abstract base class from which real setDataRequests can derive.
Definition: setDataRequest.h:40
DtRwUUID myUUID
Definition: sendSetMessageTask.h:87
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
DtSimTask is an abstract base class from which real tasks can derive.
Definition: simTask.h:31
A task to send a set message to another entity though the radio.
Definition: sendSetMessageTask.h:22
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
DtSetDataRequest * mySetRequest
Definition: sendSetMessageTask.h:88
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...
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”).
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)