VR-Forces 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() override;
35 
37 
38 private:
41 
42 public:
45  virtual const DtSimReportMessageType& type() const override;
46 
48  virtual DtSimReport * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
49 
54  virtual void setContact(const DtUUID&);
55  virtual const DtUUID& contact() const;
57 
59  virtual void setContactMarkingText(const DtString&);
60  virtual const DtString& contactMarkingText() const;
61 
67  virtual void setSpotter(const DtUUID&);
68  virtual const DtUUID& spotter() const;
70 
74  virtual void setSpotterMarkingText(const DtString&);
75  virtual const DtString& spotterMarkingText() const;
77 
82  virtual DtTime timeOfReport() const;
84 
87  virtual void setDateAndTimeOfReport(DtTime t);
88  virtual DtTime dateAndTimeOfReport() const;
90 
93  virtual void setSimulationTime(double);
94  virtual double simulationTime() const;
96 
98  virtual int netRepSize() const override;
99 
101  virtual bool setFromNet(const char* networkBuffer, unsigned contentSize) override;
102 
104  virtual bool setToNet() override;
105 
107  static DtSimReport* creator();
108 
109  virtual DtString stringRep() const override;
110  virtual void getSelf(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths = SearchPaths(),
111  const DtVariableBindingsList& variableBindings = nullVariableReference()) override;
112 
113 
114 protected:
115 
118 
121 
124 
127 };
128 
UUID is a unique ID wrapper class.
Definition: uuid.h:59
virtual bool setFromNet(const char *contentBuffer, unsigned contentSize)=0
DtRwString mySpotterMarkingText
Definition: stopSpottingReport.h:116
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.
uuid class
Definition: rwUUID.h:26
DtRwReal myDateAndTimeOfReport
Time report was generated.
Definition: stopSpottingReport.h:123
DtRwString myContactMarkingText
Definition: stopSpottingReport.h:119
virtual int netRepSize() const =0
DtRwUUID mySpotter
Definition: stopSpottingReport.h:117
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:126
#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:120
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)