VR-Link API Documentation for HLA 1.3
Home
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
include
mtl
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
31
enum
DtFedReadStatus
32
{
33
DtFedReadOK
,
34
DtCouldNotOpenFed
,
35
DtErrorReadingFed
,
36
DtUnknownFileFormat
37
};
38
39
enum
DtFedReadStrictChecking
40
{
41
DtFedReadStrictDisabled
= 0x0000,
42
DtFedReadStrictBasic
= 0x0001,
43
DtFedReadStrictTables
= 0x0002,
44
};
45
51
class
DT_DLL_MTL
DtFedReader
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
105
char
*
myCurrFddBuffer
;
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
119
DtFedTarget
*
myFedTarget
;
120
DtFedReader
*
myChildReader
;
121
unsigned
int
myStrictChecking
;
122
bool
myDontParseSwitchTable
;
123
125
DtFomType
myExpectedFomType
;
126
128
DtFomType
myLastFomType
;
129
131
DtString
myLastError
;
132
133
};
134
135
#ifdef DtUSE_UTILITIES_NAMESPACE
136
}
137
#endif
138
139
140
#endif
141
Document ID: Generated on Thu Feb 22 04:26:36 EST 2018 from SVN revision 186468
Copyright © 2005-2016 VT MÄK. All Rights Reserved (
www.mak.com
)