VR-Link API Documentation for HLA 1.3
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 
17 
18 #ifdef DtUSE_UTILITIES_NAMESPACE
19 namespace DtUSE_UTILITIES_NAMESPACE
20 {
21 #endif
22 
23 
24 class DtFilename;
25 
27 {
32 };
33 
40 {
41 public:
42 
44  DtFedReader();
45 
47  virtual ~DtFedReader();
48 
49 private:
50 
52  DtFedReader( const DtFedReader& );
53  DtFedReader& operator=( const DtFedReader& );
54 
55 public:
56 
59  virtual DtFedReadStatus readFed(const char* fedFileName,
60  DtFedTarget* fedTarget, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false );
61 
64  virtual DtFedReadStatus readFedFilePtr( FILE* fedFilePtr, DtFedTarget* fedTarget,
65  DtFilename filename, bool strictCheckingEnabled=false, bool useDTD=false, bool dontParseSwitches=false);
66 
69  virtual FILE* openFedFile( const char* fileName, bool isBinary = false );
70 
72  virtual void setStrictChecking(bool enable);
73  virtual bool strictChecking() const;
74 
76  virtual void setExpectedFomType(DtFomType fomType);
77  virtual DtFomType expectedFomType() const;
78 
80  virtual DtFomType lastFomType() const;
81 
83  virtual const DtString& lastError() const;
84 
85 protected:
86 
88  virtual DtFomType checkFomType(const char* fedFileName,
89  void* fedFilePtr ) const;
90 
92  static bool readFileIntoBuffer( FILE* fileHandle, char** fileBuffer, unsigned int* fileSize );
93 
94 protected:
95 
100 
103 
106 
109 
110 };
111 
112 #ifdef DtUSE_UTILITIES_NAMESPACE
113 }
114 #endif
115 
116 
117 #endif
118 

Document ID: Generated on Wed Aug 14 15:35:11 EDT 2013 from SVN revision 130445
Copyright © 2005-2013 VT MÄK. All Rights Reserved (www.mak.com)