VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
simReportCollection.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2013 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
12 #include "vrftasks/simReport.h"
13 #include "vrftasks/simReportList.h"
14 
15 
19 {
20 public:
23  DtSimReportCollection(const DtString & writeName = "sim-reports",
24  DtReaderWriterRegistry * parentRegistry = 0);
25 
27  DtSimReportCollection(const DtString & writeName, const DtSimReportCollection & orig,
28  DtReaderWriterRegistry * parentRegistry = 0);
29 
32 
33  static DtSimReport* creator();
34 
35  virtual void clearNetRep() override;
36 
37 public:
38 
40  virtual ~DtSimReportCollection() override;
41 
47  virtual const DtSimReportMessageType& type() const override;
48 
51  virtual void setReports(const std::vector<DtSimReport*>&);
52  virtual std::vector<DtSimReport*> reports() const;
53 
58  virtual DtSimReport * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
59 
60  virtual int netRepSize() const override;
61 
62  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
63 
64  virtual bool setToNet() override;
65 
66  virtual DtString stringRep() const override;
67 
68 protected:
70 };
71 
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.
DtSimReportList myReports
Definition: simReportCollection.h:69
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
Definition: vrfObjectMessageTypeTemplate.h:24
DtSimReportCollection is a class that will allow for the transmission of arbitrary reports over the n...
Definition: simReportCollection.h:18
Definition: readerWriterRegistry.h:39
virtual int netRepSize() const =0
a RW List which holds arbitrary subtypes of DtSimReport. This list used the report factory stored in ...
Definition: simReportList.h:22
virtual DtString stringRep() const
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
virtual void clearNetRep()
Clears the stored netRep. It will be regenerated the next time netRep() is called. If a report already has a netRep, and some of the data has changed, call this to force a update of the netRep next time the report is sent on the network.
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)