VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtNavMarkStringParser Class Reference

The DtNavMarkStringParser parses the daymark attributes found in the strings used by streamed daymark names. The string is a ':' separated list; The fields provide the attribute/value pairs in the form ATTRIBUTE=VALUE. Value comes directly from an S-57 data (or a shape file extracted from S-57). These values may themselves be comma-separated lists of values.

Example: The following is specified as the daymark name in the .earth file: "COLOUR=" + [COLOUR] + ":COLPAT=" + [COLPAT] + ":PERSTA=" + [PERSTA]

Inheritance diagram for makVrv::DtNavMarkStringParser:
Inheritance graph
[legend]

Public Member Functions

 DtNavMarkStringParser (const DtNavMarkStringParser &orig)
 
DtNavMarkStringParseroperator= (const DtNavMarkStringParser &rhs)
 
virtual ~DtNavMarkStringParser ()
 
virtual bool readFeatureMappingFile (const std::string &path, const std::string &daymarkMappingsFileName)
 
- Public Member Functions inherited from makVrv::DtNavigationFeatureStringParser
virtual ~DtNavigationFeatureStringParser ()
 
virtual void parse (const std::string &stringToParse)
 
virtual std::string attributeValue (const std::string &attrName) const
 
virtual const
ParsedAttributeValueMap
results () const
 
virtual void insertAttributeValue (const std::pair< std::string, std::string > &newPair)
 
virtual void clearParseResultStrings ()
 

Protected Types

typedef std::unordered_map
< std::string, std::vector
< std::string > > 
DaymarkMap
 
typedef std::unordered_map
< std::string, std::vector
< std::string > >::iterator 
DaymarkMapIter
 

Protected Member Functions

 DtNavMarkStringParser ()
 
virtual void getAttributeValue (const std::string &attr, const std::string &valueString)
 
- Protected Member Functions inherited from makVrv::DtNavigationFeatureStringParser
 DtNavigationFeatureStringParser ()
 

Protected Attributes

DaymarkMap myDaymarkData
 
- Protected Attributes inherited from makVrv::DtNavigationFeatureStringParser
ParsedAttributeValueMap myAttributeValueResultsMap
 

Friends

class DtNavMarkStringParserCreator
 

Additional Inherited Members

- Public Types inherited from makVrv::DtNavigationFeatureStringParser
typedef std::unordered_map
< std::string, std::string > 
ParsedAttributeValueMap
 

Member Typedef Documentation

typedef std::unordered_map<std::string, std::vector<std::string> > makVrv::DtNavMarkStringParser::DaymarkMap
protected
typedef std::unordered_map<std::string, std::vector<std::string> >::iterator makVrv::DtNavMarkStringParser::DaymarkMapIter
protected

Constructor & Destructor Documentation

makVrv::DtNavMarkStringParser::DtNavMarkStringParser ( const DtNavMarkStringParser orig)

Copy CTOR.

virtual makVrv::DtNavMarkStringParser::~DtNavMarkStringParser ( )
virtual

virtual DTOR

makVrv::DtNavMarkStringParser::DtNavMarkStringParser ( )
protected

CTOR.

Member Function Documentation

DtNavMarkStringParser& makVrv::DtNavMarkStringParser::operator= ( const DtNavMarkStringParser rhs)

Assignment Operator.

virtual bool makVrv::DtNavMarkStringParser::readFeatureMappingFile ( const std::string &  path,
const std::string &  daymarkMappingsFileName 
)
virtual

Read the file that specifies the values to use for each S57 attribute.

Implements makVrv::DtNavigationFeatureStringParser.

virtual void makVrv::DtNavMarkStringParser::getAttributeValue ( const std::string &  attr,
const std::string &  valueString 
)
protectedvirtual

Given ATTRIBUTE=VALUE, find the value and place into the results map.

Implements makVrv::DtNavigationFeatureStringParser.

Friends And Related Function Documentation

friend class DtNavMarkStringParserCreator
friend

Instances of DtNavMarkStringParser must be created through the creator class.

Member Data Documentation

DaymarkMap makVrv::DtNavMarkStringParser::myDaymarkData
protected

The documentation for this class was generated from the following file:

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)