VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
textReport.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2007 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
10 
11 #pragma once
12 
13 #include "vrftasks/simReport.h"
14 #include <readerWriter/rwString.h>
16 
22 {
23 public:
25  DtTextReport();
26 
29  DtTextReport(const DtString & writeName, DtReaderWriterRegistry *
30  parentRegistry = 0);
31 
33  DtTextReport(const DtString& writeName, const DtTextReport&
34  orig, DtReaderWriterRegistry * parentRegistry = 0);
35 
37  const DtTextReport & operator=(const DtTextReport & orig);
38 
39  virtual ~DtTextReport() override;
40 
41  virtual const DtSimReportMessageType& type() const override;
42 
44 
45  virtual DtString text() const;
46  virtual void setText(const DtString& t);
48 
50  virtual DtSimReport * clone(const DtString& name, DtReaderWriterRegistry* parentRegistry = 0) const override;
51 
52  virtual int netRepSize() const override;
53 
54  virtual bool setFromNet(const char* contentBuffer, unsigned contentSize) override;
55 
56  virtual bool setToNet() override;
57 
58  virtual DtString stringRep() const override;
59 
60  static DtSimReport* creator();
61 
62 protected:
64 };
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
DtRwString myText
Definition: textReport.h:63
DtTextReport.
Definition: textReport.h:21
virtual int netRepSize() const =0
virtual DtString stringRep() const
#define DT_DLL_vrftasks
This file is used to determine how to build.
Definition: vrftasksDefines.h:26
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)