VR-Forces 5.0.3 Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
stopSpottingReport.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2017 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include <vrftasks/simReport.h>
12 #include <readerWriter/rwString.h>
13 #include <readerWriter/rwReal.h>
14 #include <vlutil/vlTime.h>
15 #include <vrfutil/rwUUID.h>
16 
17 #include <vlutil/vlNetTypes.h>
18 //#include <vlpi/NetStructs.h>
19 #include <vl/hostStructs.h>
20 
21 
26 {
27 public:
28  DtStopSpottingReport(const DtString& rwName,
29  DtReaderWriterRegistry* parentRegistry = 0);
30 
31  DtStopSpottingReport(const DtString& rwName, const DtStopSpottingReport& orig,
32  DtReaderWriterRegistry* parentRegistry = 0);
33 
34  virtual ~DtStopSpottingReport();
35 
37 
38 private:
41 
42 public:
45  virtual const DtSimReportMessageType& type() const;
46 
48  virtual DtSimReport * clone(
49  const DtString& name,
50  DtReaderWriterRegistry* parentRegistry = 0) const;
51 
56  virtual void setContact(const DtUUID&);
57  virtual const DtUUID& contact() const;
59 
61  virtual void setContactMarkingText(const DtString&);
62  virtual const DtString& contactMarkingText() const;
63 
69  virtual void setSpotter(const DtUUID&);
70  virtual const DtUUID& spotter() const;
72 
76  virtual void setSpotterMarkingText(const DtString&);
77  virtual const DtString& spotterMarkingText() const;
79 
84  virtual DtTime timeOfReport() const;
86 
89  virtual void setDateAndTimeOfReport(DtTime t);
90  virtual DtTime dateAndTimeOfReport() const;
92 
95  virtual void setSimulationTime(double);
96  virtual double simulationTime() const;
98 
100  virtual int netRepSize() const;
101 
103  virtual bool setFromNet(const char* networkBuffer,
104  unsigned contentSize);
105 
107  virtual bool setToNet();
108 
110  static DtSimReport* creator();
111 
112  virtual DtString stringRep() const;
113  virtual void getSelf(DtlObjPtr args,
114  const DtReaderWriter::SearchPaths& searchPaths = SearchPaths(),
115  const DtVariableBindingsList& variableBindings = nullVariableReference());
116 
117 
118 protected:
119 
122 
125 
128 
131 };
132 
UUID is a unique ID wrapper class.
Definition: rwUUID.h:229
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)=0
DtRwString mySpotterMarkingText
Definition: stopSpottingReport.h:120
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
Contains the DtUUID class declaration.
Description: Readable, Writable uuid string. Use this class in order to convert from object marking t...
Definition: rwUUID.h:431
DtRwReal myDateAndTimeOfReport
Time report was generated.
Definition: stopSpottingReport.h:127
DtRwString myContactMarkingText
Definition: stopSpottingReport.h:123
virtual int netRepSize() const =0
DtRwUUID mySpotter
Definition: stopSpottingReport.h:121
std::list< const DtRwVariableBindings * > DtVariableBindingsList
Definition: readerWriterRegistry.h:29
std::vector< DtFilename > SearchPaths
Definition: readerWriter.h:92
A report indicating that this entity can no longer sense another entity about which it was sending sp...
Definition: stopSpottingReport.h:25
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 DtString stringRep() const
DtRwReal mySimulationTime
Simulation time that the report was generated.
Definition: stopSpottingReport.h:130
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
static const DtVariableBindingsList & nullVariableReference()
Description: Readable, Writable DtReal (double)
Definition: rwReal.h:27
DtRwUUID myContact
Definition: stopSpottingReport.h:124
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)