VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskCompleteReport.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MaK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 
12 #include <vlutil/vlNetTypes.h>
13 
14 #include "vrftasks/simReport.h"
15 #include <readerWriter/rwInt.h>
16 #include <readerWriter/rwBoolean.h>
18 #include <readerWriter/rwString.h>
20 
43 {
44 
45 public:
46 
49 
53  parentRegistry = 0);
54 
56  DtTaskCompleteReport(const DtString& writeName, const DtTaskCompleteReport&
57  orig, DtReaderWriterRegistry * parentRegistry = 0);
58 
61 
62  virtual ~DtTaskCompleteReport();
63 
64  virtual const DtSimReportMessageType& type() const;
65 
68  virtual DtSimTaskMessageType taskCompleted() const;
69  virtual void setTaskCompleted(const DtSimTaskMessageType& taskCompleted);
70 
73 
74  virtual void setTaskId(int id);
75  virtual int taskId() const;
77 
79 
80  virtual void setSubtaskId(int id);
81  virtual int subtaskId() const;
83 
88 
89  virtual void setSuccess(bool b);
90  virtual bool success() const;
92 
99 
100  virtual void setTaskTrackingNumber(int n);
101  virtual int taskTrackingNumber() const;
103 
105  virtual DtSimReport * clone(const DtString & name, DtReaderWriterRegistry *
106  parentRegistry = 0) const;
107 
108  virtual int netRepSize() const;
109 
110  virtual bool setFromNet(const char* contentBuffer,
111  unsigned contentSize);
112 
113  virtual bool setToNet();
114 
115  virtual DtString stringRep() const;
116 
117  static DtSimReport* creator();
118 
119 
120 protected:
127 };
128 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)=0
DtRwBoolean mySuccess
Definition: taskCompleteReport.h:123
virtual bool setToNet()=0
DtTaskCompleteReport represents a report from an entity that it has completed the last task assigned ...
Definition: taskCompleteReport.h:42
DtRwInt myTaskId
Definition: taskCompleteReport.h:122
virtual const DtSimReportMessageType & type() const =0
What kind of report am I? Returns a character string representing the kind of report. Derived classes must implement this function, returning a string that uniquely represents the kind of report it is. The definitions for report types used in VR-Forces are in radioMsgTypes.h.
DtRwString myTaskCompleted
Definition: taskCompleteReport.h:121
DtRwInt myTaskTrackingNumber
This is the task tracking number that was in the original task message that started this task...
Definition: taskCompleteReport.h:126
virtual DtSimReport * clone(const DtString &name, DtReaderWriterRegistry *parentRegistry=0) const =0
Make a copy of this report. Returns a pointer to a newly created copy of this report. Derived classes must implement this function to instantiate and initialize a copy of the derived class type.
const DtSimReport & operator=(const DtSimReport &orig)
assignment operator; same as copy constructor
Description: Readable, Writable DtString Variable substitutions are done on this object when it is re...
Definition: rwString.h:20
Definition: vrfObjectMessageTypeTemplate.h:24
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const =0
Description: Readable, Writable int.
Definition: rwInt.h:25
virtual DtString stringRep() const
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
Description: Readable, Writable bool.
Definition: rwBoolean.h:26
DtSimReport is an abstract base class from which real reports can derive. It manages the read/write c...
Definition: simReport.h:25

Document ID: Generated on Thu Jun 1 17:58:13 EDT 2023 from SVN revision 255404
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)