VR-Link API Documentation for HLA Evolved
 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-2010 VT MAK
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:
54 
56  DtFedReader();
57 
59  virtual ~DtFedReader();
60 
61 private:
62 
64  DtFedReader( const DtFedReader& );
65  DtFedReader& operator=( const DtFedReader& );
66 
67 public:
68 
70  static DtFomType checkFomType(const char* fedFileName,
71  void* fedFilePtr );
72 
75  virtual DtFedReadStatus readFed(const char* fedFileName,
76  DtFedTarget* fedTarget, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false );
77 
80  virtual DtFedReadStatus readFedFilePtr( FILE* fedFilePtr, DtFedTarget* fedTarget,
81  DtFilename filename, unsigned int strictCheckingMask=DtFedReadStrictDisabled, bool useDTD=false, bool dontParseSwitches=false) = 0;
82 
85  virtual FILE* openFedFileWithErrCheck( const char* fileName, bool isBinary = false );
86 
89  virtual unsigned int setStrictChecking(unsigned int checkMask);
90 
92  virtual bool strictChecking(unsigned int checkMask) const;
93 
95  virtual void setExpectedFomType(DtFomType fomType);
96  virtual DtFomType expectedFomType() const;
97 
99  virtual DtFomType lastFomType() const;
100 
102  virtual const DtString& lastError() const;
103 
107  unsigned int myCurrFddBufferSize;
108 
109  char* takeCurrFddData();
110 
112  static FILE* openFedFile( const char* fileName, bool isBinary = false );
114  static bool readFileIntoBuffer( FILE* fileHandle, char** fileBuffer, unsigned int* fileSize );
115 protected:
116 
117  void appendErrorLine(xmlNode* node, DtString& output) const;
118 
121  unsigned int myStrictChecking;
123 
126 
129 
132 
133 };
134 
135 #ifdef DtUSE_UTILITIES_NAMESPACE
136 }
137 #endif
138 
139 
140 #endif
141 
char * myCurrFddBuffer
Buffer containing the most recently read FDD file.
Definition: fedReader.h:105
DtFomType myExpectedFomType
When set, the FOM must conform to this type.
Definition: fedReader.h:125
unsigned int myStrictChecking
Definition: fedReader.h:121
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:122
DtString myLastError
Description of last encountered error.
Definition: fedReader.h:131
Definition: fedReader.h:35
struct _xmlDoc xmlDoc
Definition: fedReader.h:22
Definition: fedReader.h:34
Definition: fedReader.h:33
class DtFedTarget:
Definition: vlFedTarget.h:107
DtFedTarget * myFedTarget
Definition: fedReader.h:119
unsigned int myCurrFddBufferSize
Size of the buffer for the most recently read FDD file.
Definition: fedReader.h:107
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:128
DtFedReadStrictChecking
Definition: fedReader.h:39
DtFomType
Definition: vlFedTarget.h:59
#define DT_DLL_MTL
Definition: vlMachineTypes.h:106
Instances of DtString are used to represent strings.
Definition: vlString.h:29
DtFedReader * myChildReader
Definition: fedReader.h:120
Definition: fedReader.h:43

Document ID: Generated on Tue Feb 2 21:02:17 EST 2021 from SVN revision 223668
Copyright © 2005-2021 MAK Technologies. All Rights Reserved (www.mak.com)