VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
simReport.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 1999 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 
8 
9 #pragma once
10 
11 #include "vrfutil/readerWriter.h"
13 #include "tdbutil/translation.h"
15 #include "tdbutil/tdbUnits.h"
16 
17 class DtRwString;
18 
27 {
28 protected:
31 
33  DtSimReport();
34 
37  DtSimReport(const DtString & writeName,
38  DtReaderWriterRegistry * parentRegistry = 0);
39 
41  DtSimReport(const DtString & writeName, const DtSimReport & orig,
42  DtReaderWriterRegistry * parentRegistry = 0);
43 
45  const DtSimReport & operator=(const DtSimReport & orig);
46 
47 public:
48 
50  virtual ~DtSimReport();
51 
54  virtual bool init();
55 
61  virtual const DtSimReportMessageType& type() const = 0;
62 
67  virtual DtSimReport * clone(const DtString & name, DtReaderWriterRegistry *
68  parentRegistry = 0) const = 0;
69 
72  virtual void putData(FILE *fp, int indentLevel = 0);
73 
76  virtual DtlObjPtr getData(DtlObjPtr args, const DtReaderWriter::SearchPaths& searchPaths,
77  const DtVariableBindingsList& variableBindings);
78 
79  virtual char* netRep();
80 
85  virtual void clearNetRep();
86 
87  virtual int netRepSize() const = 0;
88 
89  virtual bool setFromNet(const char* contentBuffer,
90  unsigned contentSize) = 0;
91 
92  virtual bool setToNet() = 0;
93 
94  virtual DtString stringRep() const;
95 
99 
101  static DtSimReport* createReport(const DtSimReportMessageType& reportTypeString);
102 
103  static void addReportCreatorFcn(const DtSimReportMessageType& reportName,
105 
106  static void setFactory(DtSimReportFactory * factory);
107  static DtSimReportFactory* factory();
108 
109  static bool isTypeRegistered(const DtSimReportMessageType& type);
110 
111 protected:
112  virtual char* createNetworkBuffer();
113 
114 protected:
115 
116  char* myNetRep;
117 
118 protected:
120 
121 };
122 

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)