VR-Forces 4.3 Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | Friends
makVrv::DtDaymarkStringParser Class Reference

The DtDaymarkStringParser parses the daymark attributes found in the strings used by streamed daymark names. More...

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

Public Member Functions

virtual ~DtDaymarkStringParser ()
 virtual DTOR
virtual bool readObjectMappingFile (const std::string &path, const std::string &daymarkMappingsFileName)
 Read the file that specifies the values to use for each S57 attribute.
- Public Member Functions inherited from makVrv::DtNavigationFeatureStringParser
virtual ~DtNavigationFeatureStringParser ()
 virtual DTOR
virtual void parse (const std::string &stringToParse)
 Break the string supplied with a streamed object into its component tokens and build the ParsedAttributeValueMap.
virtual std::string attributeValue (const std::string &attrName) const
 Get the attribute value for the specified attribute name for the most recently parsed string.
virtual const
ParsedAttributeValueMap
results () const
 Get the map of all attributes and associated values for the most recently parsed string.
virtual void insertAttributeValue (std::pair< std::string, std::string > newPair)
 Insert a new pair into the parsed results.
virtual void clearParseResultStrings ()
 Clear the results map in preparation for a new parse.

Protected Types

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

Protected Member Functions

 DtDaymarkStringParser ()
 CTOR.
virtual void getAttributeValue (const std::string &attr, const std::string &valueString)
 Given ATTRIBUTE=VALUE, find the value and place into the results map.
- Protected Member Functions inherited from makVrv::DtNavigationFeatureStringParser
 DtNavigationFeatureStringParser ()
 CTOR.

Protected Attributes

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

Friends

class DtDaymarkStringParserCreator
 Instances of DtDaymarkStringParser must be created through the creator class.

Additional Inherited Members

- Public Types inherited from makVrv::DtNavigationFeatureStringParser
typedef boost::unordered_map
< std::string, std::string > 
ParsedAttributeValueMap
 This type defines a map from attribute name to the value we parsed for it.

Detailed Description

The DtDaymarkStringParser 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]

Member Typedef Documentation

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

Constructor & Destructor Documentation

virtual makVrv::DtDaymarkStringParser::~DtDaymarkStringParser ( )
virtual

virtual DTOR

makVrv::DtDaymarkStringParser::DtDaymarkStringParser ( )
protected

CTOR.

Member Function Documentation

virtual bool makVrv::DtDaymarkStringParser::readObjectMappingFile ( 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::DtDaymarkStringParser::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 DtDaymarkStringParserCreator
friend

Instances of DtDaymarkStringParser must be created through the creator class.

Member Data Documentation

DaymarkMap makVrv::DtDaymarkStringParser::myDaymarkData
protected

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

Document ID: Generated on Wed Mar 11 21:20:57 EDT 2015 from SVN revision 150940
Copyright © 2005-2014 VT MÄK. All Rights Reserved (www.mak.com)