VR-Forces 4.6 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtHeaderParserFactory.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 /******************************************************************************
6 ** $RCSfile: DtHeaderParserFactory.h,v $ $Revision: 1.9 $ $State: Exp $
7 ******************************************************************************/
8 
12 
13 #ifndef DtHeaderParserFactory_H_
14 #define DtHeaderParserFactory_H_
15 
16 #include <vrvCore/vrvCore.h>
17 #include <vrvCore/DtDe.h>
19 #include <map>
20 #include <string>
21 
22 class DtTerrainDbFactory;
23 
24 namespace makVrv
25 {
26 
27  class DtHeaderParserCreator;
28  class DtHeaderParser;
29 
33  {
34  public:
35 
36  typedef std::map<std::string, DtHeaderParserCreator*> CreatorMap;
37  typedef std::map<std::string, std::string> FileExtensionMap;
38 
40  static DtHeaderParserFactory& instance(DtDe& de);
41 
43  virtual ~DtHeaderParserFactory();
44 
46  virtual void addCreator(const std::string& creatorName,
47  DtHeaderParserCreator* creator);
48 
50  virtual void mapFileExtensionToHeaderParser(const std::string& extenstion,
51  const std::string& creatorName);
52 
54  DtHeaderParser* createHeaderParser(const std::string& filePath);
55 
57  const CreatorMap& creators() const;
58 
60  static std::string extractFileExtension( const std::string& fileToOpen );
61 
62  protected:
63 
66 
70 
71  };
72 }
73 
74 #endif
75 

Document ID: Generated on Thu Apr 12 03:15:37 EDT 2018 from SVN revision 187986
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)