|
libosmscout 0.1
|
#include <Parser.h>
Public Types | |
| enum class | ValueType { NO_VALUE , IDENT , STRING , COLOR , NUMBER , CONSTANT } |
Public Member Functions | |
| void | AddFeatureToFilter (StyleFilter &filter, const std::string &featureName, const std::string &flagName, TypeInfoSet &resultTypes) |
| void | AREABORDERSTYLE (StyleFilter filter, bool state) |
| void | AREABORDERSYMBOLSTYLE (StyleFilter filter, bool state) |
| void | AREABORDERSYMSTYLE (BorderPartialStyle &borderStyle) |
| void | AREABORDERTEXTSTYLE (StyleFilter filter, bool state) |
| void | AREAFILLSYMSTYLE (FillPartialStyle &fillStyle) |
| void | AREAICONSTYLE (StyleFilter filter, bool state) |
| void | AREASTYLE (StyleFilter filter, bool state) |
| void | AREASTYLEDEF (StyleFilter filter, bool state) |
| void | AREASYMBOLSTYLE (FillPartialStyle &fillStyle, BorderPartialStyle &borderStyle) |
| void | AREATEXTSTYLE (StyleFilter filter, bool state) |
| void | ATTRIBUTE (PartialStyleBase &style, const StyleDescriptor &descriptor) |
| void | ATTRIBUTEVALUE (PartialStyleBase &style, const StyleAttributeDescriptor &descriptor) |
| void | BOOL (bool &value) |
| void | BORDERSTYLEATTR (BorderPartialStyle &style) |
| void | CIRCLE (Symbol &symbol) |
| void | COLOR (Color &color) |
| void | COLOR_VALUE (Color &color) |
| void | COLORCONSTDEF () |
| void | CONSTANT (StyleConstantRef &constant) |
| void | CONSTBLOCK (bool state) |
| void | CONSTCONDBLOCK (bool state) |
| void | CONSTDEF () |
| void | CONSTSECTION () |
| void | COORD (Vertex2D &coord) |
| std::string | Destring (const char *str) |
| void | DOUBLE (double &value) |
| void | FILLSTYLEATTR (FillPartialStyle &style) |
| void | FLAGBLOCK (bool state) |
| void | FLAGCONDBLOCK (bool state) |
| void | FLAGDEF () |
| void | FLAGSECTION () |
| size_t | GetHexDigitValue (char c) |
| void | ICONSTYLEATTR (IconPartialStyle &style) |
| void | IDENT (std::string &value) |
| void | IFCOND (bool &state) |
| void | IMPORT () |
| void | IMPORTS () |
| void | LINESTYLEATTR (LinePartialStyle &style) |
| void | MAG (Magnification &magnification) |
| void | MAGCONSTDEF () |
| void | NODEICONSTYLE (StyleFilter filter, bool state) |
| void | NODESTYLEDEF (StyleFilter filter, bool state) |
| void | NODETEXTSTYLE (StyleFilter filter, bool state) |
| void | NoteUnresolvedType (const std::string &name, const std::string &message) |
| Notes a type name that could not be resolved and records the finding with its own position, without logging it: the parse reports the distinct names in one line at its end (see ReportUnresolvedTypes), so a name referenced by many rules costs one entry in that report instead of one log line per reference. | |
| void | OSS () |
| void | Parse () |
| Parser (Scanner *scanner, const std::string &filename, StyleConfig &config, osmscout::ColorPostprocessor colorPostprocessor=nullptr, const Log &log=osmscout::log) | |
| void | PATHSHIELDSTYLEATTR (PathShieldPartialStyle &style) |
| void | PATHSYMBOLSTYLEATTR (PathSymbolPartialStyle &style) |
| void | PATHTEXTSTYLEATTR (PathTextPartialStyle &style) |
| void | POLYGON (Symbol &symbol) |
| void | RECTANGLE (Symbol &symbol) |
| void | ReportUnresolvedTypes () |
| Reports the distinct type names this parser could not resolve in one line: the style file, the exact number of distinct names and a bounded, sorted sample (see NoteUnresolvedType). | |
| void | ROUTEPATHTEXTSTYLE (StyleFilter filter, bool state) |
| void | ROUTESTYLE (StyleFilter filter, bool state) |
| void | ROUTESTYLEDEF (StyleFilter filter, bool state) |
| void | SemErr (const char *msg) |
| void | SemWarning (const char *msg) |
| void | SIZECONDITION (SizeConditionRef &condition) |
| void | STRING (std::string &value) |
| bool | StringToDouble (const char *string, double &value) |
| void | STYLE (StyleFilter filter, bool state) |
| void | STYLEBLOCK (StyleFilter filter, bool state) |
| void | STYLECONDBLOCK (StyleFilter filter, bool state) |
| void | STYLEDEF (StyleFilter filter, bool state) |
| void | STYLEFILTER (StyleFilter &filter) |
| void | STYLEFILTER_FEATURE (StyleFilter &filter) |
| void | STYLEFILTER_FEATURE_ENTRY (StyleFilter &filter, TypeInfoSet &types) |
| void | STYLEFILTER_GROUP (StyleFilter &filter) |
| void | STYLEFILTER_MAG (StyleFilter &filter) |
| void | STYLEFILTER_ONEWAY (StyleFilter &filter) |
| void | STYLEFILTER_PATH (StyleFilter &filter) |
| void | STYLEFILTER_SIZE (StyleFilter &filter) |
| void | STYLEFILTER_TYPE (StyleFilter &filter) |
| void | STYLESECTION () |
| void | SYMBOLSECTION () |
| void | TEXTSTYLEATTR (TextPartialStyle &style) |
| void | UDOUBLE (double &value) |
| void | UINT (size_t &value) |
| void | UINTCONSTDEF () |
| void | UMAP (double &width) |
| void | WAYGROUP (size_t priority) |
| void | WAYORDER () |
| void | WAYPATHSYMBOLSTYLE (StyleFilter filter, bool state) |
| void | WAYPATHTEXTSTYLE (StyleFilter filter, bool state) |
| void | WAYSHIELDSTYLE (StyleFilter filter, bool state) |
| void | WAYSTYLE (StyleFilter filter, bool state) |
| void | WAYSTYLEDEF (StyleFilter filter, bool state) |
| void | WIDTHCONSTDEF () |
| ~Parser () | |
Public Attributes | |
| StyleConfig & | config |
| Errors * | errors |
| std::string | filename |
| MagnificationConverter | magnificationConverter |
| bool | state |
| std::set< std::string > | unresolvedTypeNames |
| Distinct type names that could not be resolved against the type configuration while this parser ran; reported once at the end of the parse (see Parser::ReportUnresolvedTypes) instead of once per occurrence. | |
|
strong |
| osmscout::oss::Parser::Parser | ( | Scanner * | scanner, |
| const std::string & | filename, | ||
| StyleConfig & | config, | ||
| osmscout::ColorPostprocessor | colorPostprocessor = nullptr, |
||
| const Log & | log = osmscout::log |
||
| ) |
References errors, and osmscout::log.
| osmscout::oss::Parser::~Parser | ( | ) |
References errors.
|
inline |
References osmscout::StyleFilter::AddFeature(), config, osmscout::TypeInfoSet::Empty(), osmscout::StyleFilter::FiltersByType(), osmscout::StyleConfig::GetFeatureFilterIndex(), osmscout::StyleConfig::GetTypeConfig(), osmscout::StyleFilter::HasType(), SemErr(), and osmscout::TypeInfoSet::Set().
Referenced by STYLEFILTER_FEATURE_ENTRY().
| void osmscout::oss::Parser::AREABORDERSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaBorderStyle(), BORDERSTYLEATTR(), config, IDENT, state, and osmscout::PartialStyle< S, A >::style.
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::AREABORDERSYMBOLSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaBorderSymbolStyle(), config, PATHSYMBOLSTYLEATTR(), and state.
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::AREABORDERSYMSTYLE | ( | BorderPartialStyle & | borderStyle | ) |
References BORDERSTYLEATTR().
Referenced by AREASYMBOLSTYLE().
| void osmscout::oss::Parser::AREABORDERTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaBorderTextStyle(), config, PATHTEXTSTYLEATTR(), and state.
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::AREAFILLSYMSTYLE | ( | FillPartialStyle & | fillStyle | ) |
References FILLSTYLEATTR().
Referenced by AREASYMBOLSTYLE().
| void osmscout::oss::Parser::AREAICONSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaIconStyle(), config, ICONSTYLEATTR(), and state.
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::AREASTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaFillStyle(), config, FILLSTYLEATTR(), and state.
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::AREASTYLEDEF | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References AREABORDERSTYLE(), AREABORDERSYMBOLSTYLE(), AREABORDERTEXTSTYLE(), AREAICONSTYLE(), AREASTYLE(), AREATEXTSTYLE(), and state.
Referenced by STYLEDEF().
| void osmscout::oss::Parser::AREASYMBOLSTYLE | ( | FillPartialStyle & | fillStyle, |
| BorderPartialStyle & | borderStyle | ||
| ) |
References AREABORDERSYMSTYLE(), and AREAFILLSYMSTYLE().
Referenced by CIRCLE(), POLYGON(), and RECTANGLE().
| void osmscout::oss::Parser::AREATEXTSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddAreaTextStyle(), config, IDENT, state, osmscout::PartialStyle< S, A >::style, and TEXTSTYLEATTR().
Referenced by AREASTYLEDEF().
| void osmscout::oss::Parser::ATTRIBUTE | ( | PartialStyleBase & | style, |
| const StyleDescriptor & | descriptor | ||
| ) |
References ATTRIBUTEVALUE(), osmscout::StyleDescriptor::GetAttribute(), IDENT, and SemErr().
Referenced by BORDERSTYLEATTR(), FILLSTYLEATTR(), ICONSTYLEATTR(), LINESTYLEATTR(), PATHSHIELDSTYLEATTR(), PATHSYMBOLSTYLEATTR(), PATHTEXTSTYLEATTR(), and TEXTSTYLEATTR().
| void osmscout::oss::Parser::ATTRIBUTEVALUE | ( | PartialStyleBase & | style, |
| const StyleAttributeDescriptor & | descriptor | ||
| ) |
References osmscout::Color::Alpha(), COLOR, COLOR_VALUE(), config, CONSTANT, osmscout::MagnificationConverter::Convert(), osmscout::Color::Darken(), errors, osmscout::StyleAttributeDescriptor::GetAttribute(), osmscout::StyleConstantColor::GetColor(), osmscout::StyleEnumAttributeDescriptor::GetEnumValue(), osmscout::StyleConfig::GetLabelProvider(), osmscout::StyleConstantMag::GetMag(), osmscout::StyleAttributeDescriptor::GetName(), osmscout::StyleConfig::GetSymbol(), osmscout::StyleAttributeDescriptor::GetType(), osmscout::StyleConfig::GetTypeConfig(), osmscout::StyleConstantUInt::GetUInt(), osmscout::StyleConstantWidth::GetUnit(), osmscout::StyleConstantWidth::GetWidth(), osmscout::oss::Errors::hasErrors, IDENT, osmscout::Color::Lighten(), osmscout::StyleConstantWidth::m, magnificationConverter, NO_VALUE, NUMBER, SemErr(), osmscout::PartialStyleBase::SetBoolValue(), osmscout::PartialStyleBase::SetColorValue(), osmscout::PartialStyleBase::SetDoubleArrayValue(), osmscout::PartialStyleBase::SetDoubleValue(), osmscout::PartialStyleBase::SetIntValue(), osmscout::PartialStyleBase::SetLabelValue(), osmscout::Magnification::SetLevel(), osmscout::PartialStyleBase::SetMagnificationValue(), osmscout::PartialStyleBase::SetStringValue(), osmscout::PartialStyleBase::SetSymbolValue(), osmscout::PartialStyleBase::SetUIntValue(), STRING, osmscout::StringToNumber(), osmscout::TYPE_BOOL, osmscout::TYPE_COLOR, osmscout::TYPE_DISPLAY_SIZE, osmscout::TYPE_DOUBLE, osmscout::TYPE_ENUM, osmscout::TYPE_INT, osmscout::TYPE_LABEL, osmscout::TYPE_MAGNIFICATION, osmscout::TYPE_MAP_SIZE, osmscout::TYPE_STRING, osmscout::TYPE_SYMBOL, osmscout::TYPE_UDISPLAY_SIZE, osmscout::TYPE_UDOUBLE, osmscout::TYPE_UDOUBLE_ARRAY, osmscout::TYPE_UINT, osmscout::TYPE_UMAP_SIZE, and UDOUBLE().
Referenced by ATTRIBUTE().
| void osmscout::oss::Parser::BORDERSTYLEATTR | ( | BorderPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::BorderStyle::GetDescriptor().
Referenced by AREABORDERSTYLE(), and AREABORDERSYMSTYLE().
| void osmscout::oss::Parser::CIRCLE | ( | Symbol & | symbol | ) |
References osmscout::Symbol::AddPrimitive(), AREASYMBOLSTYLE(), COORD(), osmscout::PartialStyle< S, A >::style, and UDOUBLE().
Referenced by SYMBOLSECTION().
| void osmscout::oss::Parser::COLOR | ( | Color & | color | ) |
| void osmscout::oss::Parser::COLOR_VALUE | ( | Color & | color | ) |
References osmscout::Color::FromHexString(), and SemErr().
Referenced by ATTRIBUTEVALUE(), and COLOR().
| void osmscout::oss::Parser::COLORCONSTDEF | ( | ) |
References osmscout::StyleConfig::AddConstant(), COLOR, config, osmscout::StyleConfig::GetConstantByName(), IDENT, name, SemErr(), and state.
Referenced by CONSTDEF().
| void osmscout::oss::Parser::CONSTANT | ( | StyleConstantRef & | constant | ) |
References config, osmscout::StyleConfig::GetConstantByName(), and SemErr().
| void osmscout::oss::Parser::CONSTBLOCK | ( | bool | state | ) |
References CONSTCONDBLOCK(), CONSTDEF(), and state.
Referenced by CONSTCONDBLOCK(), and CONSTSECTION().
| void osmscout::oss::Parser::CONSTCONDBLOCK | ( | bool | state | ) |
References CONSTBLOCK(), IFCOND(), and state.
Referenced by CONSTBLOCK().
| void osmscout::oss::Parser::CONSTDEF | ( | ) |
References COLORCONSTDEF(), MAGCONSTDEF(), UINTCONSTDEF(), and WIDTHCONSTDEF().
Referenced by CONSTBLOCK().
| void osmscout::oss::Parser::CONSTSECTION | ( | ) |
References CONSTBLOCK().
Referenced by OSS().
| void osmscout::oss::Parser::COORD | ( | Vertex2D & | coord | ) |
References DOUBLE().
Referenced by CIRCLE(), POLYGON(), and RECTANGLE().
|
inline |
Referenced by STRING().
| void osmscout::oss::Parser::DOUBLE | ( | double & | value | ) |
References SemErr(), and StringToDouble().
Referenced by COORD(), and WIDTHCONSTDEF().
| void osmscout::oss::Parser::FILLSTYLEATTR | ( | FillPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::FillStyle::GetDescriptor().
Referenced by AREAFILLSYMSTYLE(), and AREASTYLE().
| void osmscout::oss::Parser::FLAGBLOCK | ( | bool | state | ) |
References FLAGCONDBLOCK(), FLAGDEF(), and state.
Referenced by FLAGCONDBLOCK(), and FLAGSECTION().
| void osmscout::oss::Parser::FLAGCONDBLOCK | ( | bool | state | ) |
References FLAGBLOCK(), IFCOND(), and state.
Referenced by FLAGBLOCK().
| void osmscout::oss::Parser::FLAGDEF | ( | ) |
References osmscout::StyleConfig::AddFlag(), BOOL(), config, osmscout::StyleConfig::HasFlag(), IDENT, name, and state.
Referenced by FLAGBLOCK().
| void osmscout::oss::Parser::FLAGSECTION | ( | ) |
References FLAGBLOCK().
Referenced by OSS().
|
inline |
| void osmscout::oss::Parser::ICONSTYLEATTR | ( | IconPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::IconStyle::GetDescriptor().
Referenced by AREAICONSTYLE(), and NODEICONSTYLE().
| void osmscout::oss::Parser::IDENT | ( | std::string & | value | ) |
| void osmscout::oss::Parser::IFCOND | ( | bool & | state | ) |
References config, osmscout::StyleConfig::GetFlagByName(), osmscout::StyleConfig::HasFlag(), IDENT, SemErr(), and state.
Referenced by CONSTCONDBLOCK(), FLAGCONDBLOCK(), and STYLECONDBLOCK().
| void osmscout::oss::Parser::IMPORT | ( | ) |
References osmscout::AppendFileToDir(), config, errors, filename, osmscout::GetDirectory(), osmscout::StyleConfig::Load(), osmscout::oss::Errors::log, SemErr(), and STRING.
Referenced by IMPORTS().
| void osmscout::oss::Parser::LINESTYLEATTR | ( | LinePartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::LineStyle::GetDescriptor().
Referenced by ROUTESTYLE(), and WAYSTYLE().
| void osmscout::oss::Parser::MAG | ( | Magnification & | magnification | ) |
| void osmscout::oss::Parser::MAGCONSTDEF | ( | ) |
References osmscout::StyleConfig::AddConstant(), config, osmscout::StyleConfig::GetConstantByName(), IDENT, MAG(), name, SemErr(), and state.
Referenced by CONSTDEF().
| void osmscout::oss::Parser::NODEICONSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddNodeIconStyle(), config, ICONSTYLEATTR(), and state.
Referenced by NODESTYLEDEF().
| void osmscout::oss::Parser::NODESTYLEDEF | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References NODEICONSTYLE(), NODETEXTSTYLE(), and state.
Referenced by STYLEDEF().
| void osmscout::oss::Parser::NODETEXTSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddNodeTextStyle(), config, IDENT, state, osmscout::PartialStyle< S, A >::style, and TEXTSTYLEATTR().
Referenced by NODESTYLEDEF().
| void osmscout::oss::Parser::NoteUnresolvedType | ( | const std::string & | name, |
| const std::string & | message | ||
| ) |
Notes a type name that could not be resolved and records the finding with its own position, without logging it: the parse reports the distinct names in one line at its end (see ReportUnresolvedTypes), so a name referenced by many rules costs one entry in that report instead of one log line per reference.
References errors, name, osmscout::oss::Errors::RecordWarning(), state, and unresolvedTypeNames.
Referenced by STYLEFILTER_TYPE(), and WAYGROUP().
| void osmscout::oss::Parser::OSS | ( | ) |
References CONSTSECTION(), FLAGSECTION(), IMPORTS(), state, STYLESECTION(), SYMBOLSECTION(), and WAYORDER().
Referenced by Parse().
| void osmscout::oss::Parser::Parse | ( | ) |
References osmscout::oss::coco_string_create(), OSS(), and ReportUnresolvedTypes().
Referenced by osmscout::StyleConfig::LoadContent().
| void osmscout::oss::Parser::PATHSHIELDSTYLEATTR | ( | PathShieldPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::PathShieldStyle::GetDescriptor().
Referenced by WAYSHIELDSTYLE().
| void osmscout::oss::Parser::PATHSYMBOLSTYLEATTR | ( | PathSymbolPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::PathSymbolStyle::GetDescriptor().
Referenced by AREABORDERSYMBOLSTYLE(), and WAYPATHSYMBOLSTYLE().
| void osmscout::oss::Parser::PATHTEXTSTYLEATTR | ( | PathTextPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::PathTextStyle::GetDescriptor().
Referenced by AREABORDERTEXTSTYLE(), ROUTEPATHTEXTSTYLE(), and WAYPATHTEXTSTYLE().
| void osmscout::oss::Parser::POLYGON | ( | Symbol & | symbol | ) |
References osmscout::Symbol::AddPrimitive(), AREASYMBOLSTYLE(), COORD(), and osmscout::PartialStyle< S, A >::style.
Referenced by SYMBOLSECTION().
| void osmscout::oss::Parser::RECTANGLE | ( | Symbol & | symbol | ) |
References osmscout::Symbol::AddPrimitive(), AREASYMBOLSTYLE(), COORD(), osmscout::PartialStyle< S, A >::style, and UDOUBLE().
Referenced by SYMBOLSECTION().
| void osmscout::oss::Parser::ReportUnresolvedTypes | ( | ) |
Reports the distinct type names this parser could not resolve in one line: the style file, the exact number of distinct names and a bounded, sorted sample (see NoteUnresolvedType).
The line is logged, not recorded as a finding, so the findings a caller receives keep one entry per reference; with debug logging enabled the complete name list is logged as well.
References osmscout::Log::Debug(), errors, filename, osmscout::Log::IsDebug(), osmscout::oss::Errors::log, name, unresolvedTypeNames, and osmscout::Log::Warn().
Referenced by Parse().
| void osmscout::oss::Parser::ROUTEPATHTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddRoutePathTextStyle(), config, PATHTEXTSTYLEATTR(), and state.
Referenced by ROUTESTYLEDEF().
| void osmscout::oss::Parser::ROUTESTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddRouteLineStyle(), config, LINESTYLEATTR(), and state.
Referenced by ROUTESTYLEDEF().
| void osmscout::oss::Parser::ROUTESTYLEDEF | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References ROUTEPATHTEXTSTYLE(), ROUTESTYLE(), and state.
Referenced by STYLEDEF().
| void osmscout::oss::Parser::SemErr | ( | const char * | msg | ) |
References osmscout::oss::Errors::Error(), errors, and state.
Referenced by AddFeatureToFilter(), ATTRIBUTE(), ATTRIBUTEVALUE(), BOOL(), COLOR(), COLOR_VALUE(), COLORCONSTDEF(), CONSTANT(), DOUBLE(), IFCOND(), IMPORT(), MAG(), MAGCONSTDEF(), STYLEFILTER_MAG(), STYLEFILTER_TYPE(), SYMBOLSECTION(), UDOUBLE(), UINT(), UINTCONSTDEF(), UMAP(), WAYGROUP(), and WIDTHCONSTDEF().
| void osmscout::oss::Parser::SemWarning | ( | const char * | msg | ) |
References errors, state, and osmscout::oss::Errors::Warning().
| void osmscout::oss::Parser::SIZECONDITION | ( | SizeConditionRef & | condition | ) |
References UDOUBLE(), and UMAP().
Referenced by STYLEFILTER_SIZE().
| void osmscout::oss::Parser::STRING | ( | std::string & | value | ) |
References Destring().
|
inline |
| void osmscout::oss::Parser::STYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References state, STYLEBLOCK(), STYLEDEF(), and STYLEFILTER().
Referenced by STYLEBLOCK().
| void osmscout::oss::Parser::STYLEBLOCK | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References state, STYLE(), and STYLECONDBLOCK().
Referenced by STYLE(), STYLECONDBLOCK(), and STYLESECTION().
| void osmscout::oss::Parser::STYLECONDBLOCK | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References IFCOND(), state, and STYLEBLOCK().
Referenced by STYLEBLOCK().
| void osmscout::oss::Parser::STYLEDEF | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References AREASTYLEDEF(), NODESTYLEDEF(), ROUTESTYLEDEF(), state, and WAYSTYLEDEF().
Referenced by STYLE().
| void osmscout::oss::Parser::STYLEFILTER | ( | StyleFilter & | filter | ) |
References STYLEFILTER_FEATURE(), STYLEFILTER_GROUP(), STYLEFILTER_MAG(), STYLEFILTER_ONEWAY(), STYLEFILTER_PATH(), STYLEFILTER_SIZE(), and STYLEFILTER_TYPE().
Referenced by STYLE().
| void osmscout::oss::Parser::STYLEFILTER_FEATURE | ( | StyleFilter & | filter | ) |
References osmscout::StyleFilter::SetTypes(), and STYLEFILTER_FEATURE_ENTRY().
Referenced by STYLEFILTER().
| void osmscout::oss::Parser::STYLEFILTER_FEATURE_ENTRY | ( | StyleFilter & | filter, |
| TypeInfoSet & | types | ||
| ) |
References AddFeatureToFilter(), and IDENT.
Referenced by STYLEFILTER_FEATURE().
| void osmscout::oss::Parser::STYLEFILTER_GROUP | ( | StyleFilter & | filter | ) |
References config, osmscout::StyleFilter::FiltersByType(), osmscout::StyleConfig::GetTypeConfig(), osmscout::StyleFilter::HasType(), IDENT, osmscout::TypeInfoSet::IsSet(), osmscout::TypeInfoSet::Remove(), osmscout::TypeInfoSet::Set(), and osmscout::StyleFilter::SetTypes().
Referenced by STYLEFILTER().
| void osmscout::oss::Parser::STYLEFILTER_MAG | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_ONEWAY | ( | StyleFilter & | filter | ) |
References osmscout::StyleFilter::SetOneway().
Referenced by STYLEFILTER().
| void osmscout::oss::Parser::STYLEFILTER_PATH | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_SIZE | ( | StyleFilter & | filter | ) |
References osmscout::StyleFilter::SetSizeCondition(), and SIZECONDITION().
Referenced by STYLEFILTER().
| void osmscout::oss::Parser::STYLEFILTER_TYPE | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLESECTION | ( | ) |
References STYLEBLOCK().
Referenced by OSS().
| void osmscout::oss::Parser::SYMBOLSECTION | ( | ) |
References CIRCLE(), config, osmscout::Symbol::GROUND, IDENT, osmscout::Symbol::MAP, name, POLYGON(), RECTANGLE(), osmscout::StyleConfig::RegisterSymbol(), and SemErr().
Referenced by OSS().
| void osmscout::oss::Parser::TEXTSTYLEATTR | ( | TextPartialStyle & | style | ) |
References ATTRIBUTE(), and osmscout::TextStyle::GetDescriptor().
Referenced by AREATEXTSTYLE(), and NODETEXTSTYLE().
| void osmscout::oss::Parser::UDOUBLE | ( | double & | value | ) |
References SemErr(), and StringToDouble().
Referenced by ATTRIBUTEVALUE(), CIRCLE(), COLOR(), RECTANGLE(), SIZECONDITION(), and UMAP().
| void osmscout::oss::Parser::UINT | ( | size_t & | value | ) |
References config, osmscout::StyleConfig::GetConstantByName(), osmscout::StyleConstantUInt::GetUInt(), SemErr(), and osmscout::StringToNumber().
Referenced by UINTCONSTDEF().
| void osmscout::oss::Parser::UINTCONSTDEF | ( | ) |
References osmscout::StyleConfig::AddConstant(), config, osmscout::StyleConfig::GetConstantByName(), IDENT, name, SemErr(), state, and UINT().
Referenced by CONSTDEF().
| void osmscout::oss::Parser::UMAP | ( | double & | width | ) |
| void osmscout::oss::Parser::WAYGROUP | ( | size_t | priority | ) |
References config, osmscout::StyleConfig::GetTypeConfig(), IDENT, NoteUnresolvedType(), SemErr(), and osmscout::StyleConfig::SetWayPrio().
Referenced by WAYORDER().
| void osmscout::oss::Parser::WAYORDER | ( | ) |
References WAYGROUP().
Referenced by OSS().
| void osmscout::oss::Parser::WAYPATHSYMBOLSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddWayPathSymbolStyle(), config, IDENT, PATHSYMBOLSTYLEATTR(), state, and osmscout::PartialStyle< S, A >::style.
Referenced by WAYSTYLEDEF().
| void osmscout::oss::Parser::WAYPATHTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddWayPathTextStyle(), config, PATHTEXTSTYLEATTR(), and state.
Referenced by WAYSTYLEDEF().
| void osmscout::oss::Parser::WAYSHIELDSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddWayPathShieldStyle(), config, PATHSHIELDSTYLEATTR(), and state.
Referenced by WAYSTYLEDEF().
| void osmscout::oss::Parser::WAYSTYLE | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References osmscout::StyleConfig::AddWayLineStyle(), config, IDENT, LINESTYLEATTR(), state, and osmscout::PartialStyle< S, A >::style.
Referenced by WAYSTYLEDEF().
| void osmscout::oss::Parser::WAYSTYLEDEF | ( | StyleFilter | filter, |
| bool | state | ||
| ) |
References state, WAYPATHSYMBOLSTYLE(), WAYPATHTEXTSTYLE(), WAYSHIELDSTYLE(), and WAYSTYLE().
Referenced by STYLEDEF().
| void osmscout::oss::Parser::WIDTHCONSTDEF | ( | ) |
References osmscout::StyleConfig::AddConstant(), config, DOUBLE(), osmscout::StyleConfig::GetConstantByName(), IDENT, osmscout::StyleConstantWidth::m, osmscout::StyleConstantWidth::mm, name, SemErr(), and state.
Referenced by CONSTDEF().
| StyleConfig& osmscout::oss::Parser::config |
Referenced by AddFeatureToFilter(), AREABORDERSTYLE(), AREABORDERSYMBOLSTYLE(), AREABORDERTEXTSTYLE(), AREAICONSTYLE(), AREASTYLE(), AREATEXTSTYLE(), ATTRIBUTEVALUE(), COLORCONSTDEF(), CONSTANT(), FLAGDEF(), IFCOND(), IMPORT(), MAGCONSTDEF(), NODEICONSTYLE(), NODETEXTSTYLE(), ROUTEPATHTEXTSTYLE(), ROUTESTYLE(), STYLEFILTER_GROUP(), STYLEFILTER_PATH(), STYLEFILTER_TYPE(), SYMBOLSECTION(), UINT(), UINTCONSTDEF(), WAYGROUP(), WAYPATHSYMBOLSTYLE(), WAYPATHTEXTSTYLE(), WAYSHIELDSTYLE(), WAYSTYLE(), and WIDTHCONSTDEF().
| Errors* osmscout::oss::Parser::errors |
Referenced by ATTRIBUTEVALUE(), IMPORT(), osmscout::StyleConfig::LoadContent(), NoteUnresolvedType(), Parser(), ReportUnresolvedTypes(), SemErr(), SemWarning(), UMAP(), and ~Parser().
| std::string osmscout::oss::Parser::filename |
Referenced by IMPORT(), and ReportUnresolvedTypes().
| MagnificationConverter osmscout::oss::Parser::magnificationConverter |
Referenced by ATTRIBUTEVALUE(), and MAG().
| bool osmscout::oss::Parser::state |
Referenced by AREABORDERSTYLE(), AREABORDERSYMBOLSTYLE(), AREABORDERTEXTSTYLE(), AREAICONSTYLE(), AREASTYLE(), AREASTYLEDEF(), AREATEXTSTYLE(), COLORCONSTDEF(), CONSTBLOCK(), CONSTCONDBLOCK(), FLAGBLOCK(), FLAGCONDBLOCK(), FLAGDEF(), IFCOND(), MAGCONSTDEF(), NODEICONSTYLE(), NODESTYLEDEF(), NODETEXTSTYLE(), NoteUnresolvedType(), OSS(), ROUTEPATHTEXTSTYLE(), ROUTESTYLE(), ROUTESTYLEDEF(), SemErr(), SemWarning(), STYLE(), STYLEBLOCK(), STYLECONDBLOCK(), STYLEDEF(), UINTCONSTDEF(), WAYPATHSYMBOLSTYLE(), WAYPATHTEXTSTYLE(), WAYSHIELDSTYLE(), WAYSTYLE(), WAYSTYLEDEF(), and WIDTHCONSTDEF().
| std::set<std::string> osmscout::oss::Parser::unresolvedTypeNames |
Distinct type names that could not be resolved against the type configuration while this parser ran; reported once at the end of the parse (see Parser::ReportUnresolvedTypes) instead of once per occurrence.
Referenced by NoteUnresolvedType(), and ReportUnresolvedTypes().