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();
36 
37 public:
38 
40  virtual ~DtSimReportCollection();
41 
47  virtual const DtSimReportMessageType& type() const;
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 *
59  parentRegistry = 0) const;
60 
61  virtual int netRepSize() const;
62 
63  virtual bool setFromNet(const char* contentBuffer,
64  unsigned contentSize);
65 
66  virtual bool setToNet();
67 
68  virtual DtString stringRep() const;
69 
70 protected:
72 };
73 
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:71
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 Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)