MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrAnnotations
lgrAnnotationLoader.h
Go to the documentation of this file.
1
/******************************************************************************
2
** Copyright (c) 1992-2010 VT MAK
3
** All rights reserved.
4
******************************************************************************/
5
8
9
#ifndef lgrAnnotationLoader_H_
10
#define lgrAnnotationLoader_H_
11
12
#include "
lgrAnn.h
"
13
#include "
virtualConstructor.h
"
14
#include <vlutil/vlNetTypes.h>
15
class
DtString
;
16
class
DtEnvironment;
17
18
namespace
MAKLogger
19
{
20
23
class
DT_DLL_LGRANN
DtLgrAnnotationLoader
24
{
25
public
:
26
27
DT_VIRTUAL_CTR
(
DtLgrAnnotationLoader
,())
28
29
virtual
~
DtLgrAnnotationLoader
();
30
33
virtual
DtEnvironment loadFile(
const
DtString
& filename,
bool
& success);
34
35
protected
:
36
37
enum
FileFormat
38
{
39
Format_Unknown
,
40
Format_LegacyBinaryFormat
,
41
Format_XML
42
};
43
45
struct
NetPacketHeader
46
{
47
DtNetU32
numBytes
;
48
DtNetU32
flags
;
49
DtNetFloat64
arrivalTime
;
50
};
51
53
FileFormat
determineFileFormat(
const
DtString
&);
54
57
DtEnvironment readBinaryFormat(
const
DtString
& filename,
bool
& success);
58
60
DtEnvironment readXMLFormat(
const
DtString
& filename,
bool
& success);
61
64
static
DtString
readOneLine(
int
fd );
65
66
};
67
}
68
69
#endif
Document ID: Generated on Sun Dec 15 18:04:30 EST 2013 from SVN revision 134418
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)