VR-Forces 4.6.1 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtFeatureFieldValueParser.h
Go to the documentation of this file.
1 /*******************************************************************************
2 ** Copyright (c) 2008 MAK Technologies, Inc.
3 ** All rights reserved.
4 *******************************************************************************/
5 /*******************************************************************************
6 ** $RCSfile: DtFeatureFieldValueParser.h,v $ $Revision: 1.7 $ $State: Exp $
7 *******************************************************************************/
8 
12 
13 #pragma once
14 
15 #include <vrvCore/vrvCore.h>
17 #include <map>
18 #include <set>
19 #include <string>
20 
21 namespace makVrv
22 {
23  class DtDe;
24  class DtFeatureFieldValueReader;
25 
29  {
30  public:
32  static DtFeatureFieldValueReaderFactory& instance(DtDe& de);
33 
36 
41  void setReader(const std::string& fileExtension,
43 
45  void setDefaultReader(DtFeatureFieldValueReader*);
46 
47 
50  DtFeatureFieldValueReader* findReader(const std::string& ext);
51 
52  protected:
54 
55  typedef std::map<std::string,DtFeatureFieldValueReader*> ExtToReaderMap;
58 
59  };
60 
61 
66  {
67 
68  public:
69 
71  typedef std::map<std::string, std::set<std::string> > FeatureFieldValueMap;
72 
75 
78 
83  bool getFeatureFieldValuePairs(const std::string& fileName,
84  FeatureFieldValueMap& mapOut) const;
85 
86  protected:
87 
89  };
90 
94  {
95  public:
96 
99 
101  virtual ~DtFeatureFieldValueReader();
102 
104  virtual bool readValuesFromFile(const std::string& fileName,
106 
107  protected:
109  };
110 
111 
112 
113 }

Document ID: Generated on Wed Jul 25 16:57:45 EDT 2018 from SVN revision 190790
Copyright © 2005-2018 VT MÄK. All Rights Reserved (www.mak.com)