VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskMessageDescriptor.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2015 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwBoolean.h>
14 #include <readerWriter/rwInt.h>
15 #include "vrfutil/rwUUID.h"
16 
21 
22 class DtSimTask;
23 class DtTaskMessage;
24 
27 {
28 public:
32  DtTaskMessageDescriptor(const DtString& name,
33  DtReaderWriterRegistry* parentRegistry = NULL, bool readonly = false);
34 
36  DtReaderWriterRegistry* parentRegistry = NULL, bool readonly = false);
37 
39  virtual ~DtTaskMessageDescriptor();
40 
43  DtReaderWriterRegistry* parentRegistry = NULL);
44 
47 
49  virtual void setTaskMessage(const DtTaskMessage& taskMessage);
50  virtual DtTaskMessage* taskMessage() const;
51 
54  virtual void putSelf(std::string& fp, int indentLevel = 0,
55  bool writeUnspecified = false, const DtFilename& path = DtReaderWriter::appPath());
56 
58  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
59  const DtVariableBindingsList& variableBindings);
60 
61 protected:
62 
64  virtual void putData(std::string& fp, int indentLevel = 0);
65 
67  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
68  const DtVariableBindingsList& variableBindings);
69 
70 protected:
71 
73 
82 };
83 
This class allows one to collect and compare strings using an index number instead of having to do st...
Definition: symbolString.h:27
DtRwBoolean myIndependentlyTasked
Definition: taskMessageDescriptor.h:79
Definition: taskMessageDescriptor.h:26
virtual DtlObjPtr getData(DtlObjPtr args, const SearchPaths &searchPaths, const DtVariableBindingsList &variableBindings)
Deriving class overrides these to get/put class specific data.
Definition: readerWriter.h:85
Definition: readerWriterRegistry.h:39
Contains the DtUUID class declaration.
DtRwUUID myTransmitter
Definition: taskMessageDescriptor.h:77
uuid class
Definition: rwUUID.h:26
DtRwInt myTaskId
Definition: taskMessageDescriptor.h:80
DtTaskMessage * myTaskMessage
Definition: taskMessageDescriptor.h:72
DtRwUUID myReceiver
Definition: taskMessageDescriptor.h:78
#define DT_DLL_vrfobjcore
This file is used to determine how to build.
Definition: vrfobjcoreDefines.h:24
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
Description: Readable, Writable int.
Definition: rwInt.h:25
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
DtRwInt myTaskTrackingNumber
Definition: taskMessageDescriptor.h:81
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...
virtual void putSelf(std::string &fp, int indentLevel=0, bool writeUnspecified=false, const DtFilename &path=DtFilename::nullFilename())
Top level call to write itself to file. If write unspecified is true, will write entries that are uns...
DtSimTask * myTask
These data members are only valid within putSelf() and getSelf() calls. They are only used for readin...
Definition: taskMessageDescriptor.h:76
virtual void putData(std::string &fp, int indentLevel=0)
Deriving class overrides these to get/put class specific data.
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
const DtReaderWriter & operator=(const DtReaderWriter &orig)
assignment operator
A DtTaskMsg is a DtRadioMsg with a pointer to a task. The type of the taskMsg is just the type of the...
Definition: taskMessage.h:21
static const DtFilename & appPath()
Gets the current working directory. The first time this accessor is called, it determines the current...

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)