VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtNavigationFeatureStringParser.h
Go to the documentation of this file.
1 /******************************************************************************
2 ** Copyright (c) 2023 MAK Technologies, Inc.
3 ** All rights reserved.
4 ******************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <vrvCore/vrvCore.h>
13 
15 
16 #include <unordered_map>
17 #include <string>
18 #include <vector>
19 
20 namespace makVrv
21 {
22 
43  {
44  public:
47  typedef std::unordered_map< std::string, std::string>
49 
52 
55  virtual void parse( const std::string& stringToParse );
56 
59  virtual std::string attributeValue( const std::string& attrName ) const;
60 
63  virtual const ParsedAttributeValueMap& results() const;
64 
67  virtual bool readFeatureMappingFile( const std::string& path,
68  const std::string& objectMappingsFileName ) = 0;
69 
71  virtual void insertAttributeValue(const std::pair<std::string, std::string>& newPair);
72 
74  virtual void clearParseResultStrings();
75 
76  protected:
77 
80 
82  virtual void getAttributeValue( const std::string& attr,
83  const std::string& valueString ) = 0;
84 
85  protected:
87  };
88 }
89 
The DtNavigationFeatureStringParser parses the object attributes found in the strings used by streame...
Definition: DtNavigationFeatureStringParser.h:42
Contains makVrv::DtVirtualBaseClass class.
#define DT_DLL_VRVCORE
Definition: vrvCore.h:20
ParsedAttributeValueMap myAttributeValueResultsMap
Definition: DtNavigationFeatureStringParser.h:86
std::unordered_map< std::string, std::string > ParsedAttributeValueMap
This type defines a map from attribute name to the value we parsed for it.
Definition: DtNavigationFeatureStringParser.h:48
Contains DLL export macros.

Document ID: Generated on Tue Sep 24 19:28:17 EDT 2024 from SVN revision 269799
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)