VR-Forces Developer's Guide
 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 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
14 #include <map>
15 #include <set>
16 #include <string>
17 
18 namespace makVrv
19 {
20  class DtDe;
21  class DtFeatureFieldValueReader;
22 
26  {
27  public:
29  static DtFeatureFieldValueReaderFactory& instance(DtDe& de);
30 
33 
38  void setReader(const std::string& fileExtension,
40 
42  void setDefaultReader(DtFeatureFieldValueReader*);
43 
44 
47  DtFeatureFieldValueReader* findReader(const std::string& ext);
48 
49  protected:
51 
52  typedef std::map<std::string,DtFeatureFieldValueReader*> ExtToReaderMap;
55 
56  };
57 
58 
63  {
64 
65  public:
66 
68  typedef std::map<std::string, std::set<std::string> > FeatureFieldValueMap;
69 
72 
75 
80  bool getFeatureFieldValuePairs(const std::string& fileName,
81  FeatureFieldValueMap& mapOut) const;
82 
83  protected:
84 
86  };
87 
91  {
92  public:
93 
96 
98  virtual ~DtFeatureFieldValueReader();
99 
101  virtual bool readValuesFromFile(const std::string& fileName,
103 
104  protected:
106  };
107 
108 
109 
110 }
Virtual base class. Allows for RTTI and proper virtual destruction. Used by Creators, Factories, Providers, Assemblers and User Interfaces.
Definition: DtVirtualBaseClass.h:19
The DtFeatureFieldValueParser will create a map of all the field/ value pairs in feature file...
Definition: DtFeatureFieldValueParser.h:62
DtDe & myDe
Definition: DtFeatureFieldValueParser.h:85
Contains makVrv::DtVirtualBaseClass class.
std::map< std::string, DtFeatureFieldValueReader * > ExtToReaderMap
Definition: DtFeatureFieldValueParser.h:52
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
Interface class for reading feature values.
Definition: DtFeatureFieldValueParser.h:90
DtFeatureFieldValueReader * myDefaultReader
Definition: DtFeatureFieldValueParser.h:54
ExtToReaderMap myExtensionToReaderMap
Definition: DtFeatureFieldValueParser.h:53
Factory for getting feature field value readers.
Definition: DtFeatureFieldValueParser.h:25
The DtDe is the core component of any VR-Vantage application. It owns a DtRenderer, DtDeCommunicator, as well as a DtDisplay and other things.
Definition: DtDe.h:76
DtDe & myDe
Definition: DtFeatureFieldValueParser.h:105
std::map< std::string, std::set< std::string > > FeatureFieldValueMap
Map of feature fields to a set of values.
Definition: DtFeatureFieldValueParser.h:68
Contains DLL export macros.

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)