VR-Forces 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() override;
63 
64  virtual const DtSimReportMessageType& type() const override;
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* parentRegistry = 0) const override;
106 
107  virtual int netRepSize() const override;
108 
109  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
110 
111  virtual bool setToNet() override;
112 
113  virtual DtString stringRep() const override;
114 
115  static DtSimReport* creator();
116 
117 
118 protected:
125 };
126 
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)=0
DtRwBoolean mySuccess
Definition: taskCompleteReport.h:121
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:120
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:119
DtRwInt myTaskTrackingNumber
This is the task tracking number that was in the original task message that started this task...
Definition: taskCompleteReport.h:124
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 Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)