MAK Data Logger API Documentation for HLA
Home
Modules
Namespaces
Classes
Files
Examples
Libraries
File List
File Members
libsrc
lgrCore
lgrFileFormatProvider.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 lgrFileFormatProvider_H_
10
#define lgrFileFormatProvider_H_
11
12
#include "
lgrCore.h
"
13
#include <map>
14
15
namespace
MAKLogger
16
{
17
class
DtLoggerFile;
18
class
DtLgrFileFormatter;
19
23
class
DT_DLL_LGRCORE
DtLgrFileFormatProvider
24
{
25
public
:
27
typedef
DtLgrFileFormatter
* (*FormatCreator)(
DtLoggerFile
* file);
28
30
static
DtLgrFileFormatProvider
& globalInstance();
31
32
protected
:
34
DtLgrFileFormatProvider
();
35
36
public
:
38
~
DtLgrFileFormatProvider
();
39
41
int
latestVersion()
const
;
42
45
DtLgrFileFormatter
* createFormatter(
DtLoggerFile
*)
const
;
46
48
void
registerFormat(
int
fileVersion, FormatCreator
function
);
49
51
void
setLatestFileFormat(
int
fileVersion);
52
53
protected
:
55
static
DtLgrFileFormatProvider
theGlobalInstance
;
56
58
typedef
std::map<int,FormatCreator>
FormatterCreatorMap
;
59
61
FormatterCreatorMap
myCreatorMap
;
62
64
int
myLatestFileFormat
;
65
66
};
67
}
68
69
#endif
Document ID: Generated on Thu Apr 11 12:13:00 EDT 2013 from SVN revision 126011
Copyright © 2005-2012 VT MÄK. All Rights Reserved (
www.mak.com
)