VR-Forces 4.8 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 }
Virtual base class.
Definition: DtVirtualBaseClass.h:22
The DtFeatureFieldValueParser will create a map of all the field/ value pairs in feature file...
Definition: DtFeatureFieldValueParser.h:65
DtDe & myDe
Definition: DtFeatureFieldValueParser.h:88
Contains makVrv::DtVirtualBaseClass class.
std::map< std::string, DtFeatureFieldValueReader * > ExtToReaderMap
Definition: DtFeatureFieldValueParser.h:55
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Interface class for reading feature values.
Definition: DtFeatureFieldValueParser.h:93
DtFeatureFieldValueReader * myDefaultReader
Definition: DtFeatureFieldValueParser.h:57
ExtToReaderMap myExtensionToReaderMap
Definition: DtFeatureFieldValueParser.h:56
Factory for getting feature field value readers.
Definition: DtFeatureFieldValueParser.h:28
The DtDe is the core component of any VR-Vantage application.
Definition: DtDe.h:69
DtDe & myDe
Definition: DtFeatureFieldValueParser.h:108
std::map< std::string, std::set< std::string > > FeatureFieldValueMap
Map of feature fields to a set of values.
Definition: DtFeatureFieldValueParser.h:71
Contains DLL export macros.

Document ID: Generated on Thu Aug 27 10:56:05 EDT 2020 from SVN revision 217100
Copyright © 2005-2020 MAK Technologies. All Rights Reserved (www.mak.com)