VR-Link API Documentation for DIS
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
fedReader.h
Go to the documentation of this file.
1 /*********************************************************************
2 ** Copyright (c) 1992-2025 MAK Technologies, Inc
3 ** All rights reserved.
4 *********************************************************************/
5 
6 #ifndef fedReader_H_
7 #define fedReader_H_
8 
12 
13 #include <stdio.h>
14 #include <vlutil/vlFedTarget.h>
15 #include <vlutil/vlString.h>
16 
18 struct _xmlNode;
19 struct _xmlDoc;
20 typedef unsigned char xmlChar;
21 typedef struct _xmlNode xmlNode;
22 typedef struct _xmlDoc xmlDoc;
23 
24 #ifdef DtUSE_UTILITIES_NAMESPACE
25 namespace DtUSE_UTILITIES_NAMESPACE
26 {
27 #endif
28 
29 class DtFilename;
30 
32 {
37 };
38 
40 {
44 };
45 
52 {
53 public:
57 
58 public:
59 
61  DtFedReader();
62 
64  virtual ~DtFedReader();
65 
66 private:
67 
69  DtFedReader( const DtFedReader& );
70  DtFedReader& operator=( const DtFedReader& );
71 
72 public:
73 
75 
76  static DtFomType checkFomType(const char* fedFileName, void* fedFilePtr );
77  static DtFomType checkFomType(const char* fedFileName);
79 
81  static const DtString& standardMimFileName(DtFomType fomType);
82 
84  static bool isStandardMimFileName(DtString const& fileName, DtFomType fomType);
85 
87  static FILE* openFedFile(const char* fileName, bool isBinary = false);
88 
90  static bool readFileIntoBuffer(FILE* fileHandle, char** fileBuffer, unsigned int* fileSize);
91 
92 public:
93 
96  virtual DtFedReadStatus readFed(const char* fedFileName,
97  DtFedTarget* fedTarget, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false );
98 
101  virtual DtFedReadStatus readFedFilePtr( FILE* fedFilePtr, DtFedTarget* fedTarget,
102  DtFilename filename, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false) = 0;
103 
106  virtual FILE* openFedFileWithErrCheck( const char* fileName, bool isBinary = false );
107 
110  virtual unsigned int setStrictChecking(unsigned int checkMask);
111 
113  virtual bool strictChecking(unsigned int checkMask) const;
114 
116  virtual void setExpectedFomType(DtFomType fomType);
117  virtual DtFomType expectedFomType() const;
118 
120  virtual DtFomType lastFomType() const;
121 
123  virtual const DtString& lastError() const;
124 
128  unsigned int myCurrFddBufferSize;
129 
130  char* takeCurrFddData();
131 
132 protected:
133 
134  void appendErrorLine(xmlNode* node, DtString& output) const;
135 
138  unsigned int myStrictChecking;
140 
143 
146 
149 
150 };
151 
152 #ifdef DtUSE_UTILITIES_NAMESPACE
153 }
154 #endif
155 
156 
157 #endif
158 
char * myCurrFddBuffer
Buffer containing the most recently read FDD file.
Definition: fedReader.h:126
DtFomType myExpectedFomType
When set, the FOM must conform to this type.
Definition: fedReader.h:142
unsigned int myStrictChecking
Definition: fedReader.h:138
struct _xmlNode xmlNode
Definition: fedReader.h:21
Contains the DtString class declaration.
Instances of DtFedReader are used to read a FED file, and fill in a DtFedTarget with the information ...
Definition: fedReader.h:51
unsigned char xmlChar
Definition: fedReader.h:19
Definition: fedReader.h:36
Definition: fedReader.h:42
Definition: fedReader.h:41
DtFedReadStatus
Definition: fedReader.h:31
This file contains the declaration of DtFedTarget and several helper classes.
bool myDontParseSwitchTable
Definition: fedReader.h:139
DtString myLastError
Description of last encountered error.
Definition: fedReader.h:148
Definition: fedReader.h:35
struct _xmlDoc xmlDoc
Definition: fedReader.h:22
Definition: fedReader.h:34
Definition: fedReader.h:33
class DtFedTarget:
Definition: vlFedTarget.h:124
DtFedTarget * myFedTarget
Definition: fedReader.h:136
static const DtString theHla4StandardMimFileName
Definition: fedReader.h:55
unsigned int myCurrFddBufferSize
Size of the buffer for the most recently read FDD file.
Definition: fedReader.h:128
Instances of DtFilename are DtStrings which convert filenames to the native format.
Definition: vlFilename.h:20
DtFomType myLastFomType
The type of FOM format that was last read.
Definition: fedReader.h:145
DtFedReadStrictChecking
Definition: fedReader.h:39
DtFomType
Definition: vlFedTarget.h:42
static const DtString theHlaEvolvedStandardMimFileName
Definition: fedReader.h:54
#define DT_DLL_MTL
Definition: vlMachineTypes.h:106
Instances of DtString are used to represent strings.
Definition: vlString.h:36
DtFedReader * myChildReader
Definition: fedReader.h:137
static const DtString theInvalidStandardMimFileName
Definition: fedReader.h:56
Definition: fedReader.h:43

Document ID: Generated on Thu Oct 16 00:12:25 EDT 2025 from SVN revision 280738
Copyright © 1992-2025 MAK Technologies. All Rights Reserved (www.mak.com)