VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
taskCanceledReport.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2012 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 
24 {
25 
26 public:
27 
30 
34  parentRegistry = 0);
35 
37  DtTaskCanceledReport(const DtString& writeName, const DtTaskCanceledReport&
38  orig, DtReaderWriterRegistry * parentRegistry = 0);
39 
42 
43  virtual ~DtTaskCanceledReport() override;
44 
45  virtual const DtSimReportMessageType& type() const override;
46 
49  virtual DtSimTaskMessageType taskCompleted() const;
50  virtual void setTaskCompleted(const DtSimTaskMessageType& taskCompleted);
51 
54 
55  virtual void setTaskId(int id);
56  virtual int taskId() const;
58 
59 
66 
67  virtual void setTaskTrackingNumber(int n);
68  virtual int taskTrackingNumber() const;
70 
72  virtual DtSimReport * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
73 
74  virtual int netRepSize() const override;
75 
76  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
77 
78  virtual bool setToNet() override;
79 
80  virtual DtString stringRep() const override;
81 
82  static DtSimReport* creator();
83 
84 
85 protected:
91 };
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)=0
virtual bool setToNet()=0
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.
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
DtRwInt myTaskTrackingNumber
This is the task tracking number that was in the original task message that started this task...
Definition: taskCanceledReport.h:90
virtual DtString stringRep() const
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
This report is issued by entities whenever a task they are performing is canceled in an abnormal way...
Definition: taskCanceledReport.h:23
DtRwInt myTaskId
Definition: taskCanceledReport.h:87
DtRwString myTaskCompleted
Definition: taskCanceledReport.h:86
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)