VR-Forces 5.0.1 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();
40 
41  virtual const DtSimReportMessageType& type() const;
42 
44 
45  virtual DtString text() const;
46  virtual void setText(const DtString& t);
48 
50  virtual DtSimReport * clone(const DtString & name, DtReaderWriterRegistry *
51  parentRegistry = 0) const;
52 
53  virtual int netRepSize() const;
54 
55  virtual bool setFromNet(const char* contentBuffer,
56  unsigned contentSize);
57 
58  virtual bool setToNet();
59 
60  virtual DtString stringRep() const;
61 
62  static DtSimReport* creator();
63 
64 protected:
66 };
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:65
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 Mon Jun 20 00:38:30 EDT 2022 from SVN revision 244029
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)