MAK Data Logger API Documentation for HLA
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 
24  {
25  public:
27  typedef DtLgrFileFormatter* (*FormatCreator)(DtLoggerFile* file);
28 
30  static DtLgrFileFormatProvider& globalInstance();
31 
32  protected:
35 
36  public:
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:
56 
58  typedef std::map<int,FormatCreator> FormatterCreatorMap;
59 
62 
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)