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 

Document ID: Generated on Tue Mar 1 02:56:17 EST 2016 from SVN revision 162687
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)