|
libosmscout 1.1.1
|
#include <libosmscout-map/include/osmscoutmap/oss/Parser.h>

Public Types | |
| enum class | ValueType { NO_VALUE , IDENT , STRING , COLOR , NUMBER , CONSTANT } |
Public Member Functions | |
| std::string | Destring (const char *str) |
| bool | StringToDouble (const char *string, double &value) |
| size_t | GetHexDigitValue (char c) |
| void | AddFeatureToFilter (StyleFilter &filter, const std::string &featureName, const std::string &flagName, TypeInfoSet &resultTypes) |
| Parser (Scanner *scanner, const std::string &filename, StyleConfig &config, osmscout::ColorPostprocessor colorPostprocessor=nullptr, const Log &log=osmscout::log) | |
| ~Parser () | |
| void | SemErr (const char *msg) |
| void | SemWarning (const char *msg) |
| void | OSS () |
| void | IMPORTS () |
| void | FLAGSECTION () |
| void | WAYORDER () |
| void | CONSTSECTION () |
| void | SYMBOLSECTION () |
| void | STYLESECTION () |
| void | IMPORT () |
| void | STRING (std::string &value) |
| void | FLAGBLOCK (bool state) |
| void | FLAGDEF () |
| void | FLAGCONDBLOCK (bool state) |
| void | IFCOND (bool &state) |
| void | IDENT (std::string &value) |
| void | BOOL (bool &value) |
| void | WAYGROUP (size_t priority) |
| void | POLYGON (Symbol &symbol) |
| void | RECTANGLE (Symbol &symbol) |
| void | CIRCLE (Symbol &symbol) |
| void | AREAFILLSYMSTYLE (FillPartialStyle &fillStyle) |
| void | FILLSTYLEATTR (FillPartialStyle &style) |
| void | AREABORDERSYMSTYLE (BorderPartialStyle &borderStyle) |
| void | BORDERSTYLEATTR (BorderPartialStyle &style) |
| void | AREASYMBOLSTYLE (FillPartialStyle &fillStyle, BorderPartialStyle &borderStyle) |
| void | COORD (Vertex2D &coord) |
| void | UDOUBLE (double &value) |
| void | DOUBLE (double &value) |
| void | CONSTBLOCK (bool state) |
| void | CONSTCONDBLOCK (bool state) |
| void | CONSTDEF () |
| void | COLORCONSTDEF () |
| void | MAGCONSTDEF () |
| void | UINTCONSTDEF () |
| void | WIDTHCONSTDEF () |
| void | COLOR (Color &color) |
| void | MAG (Magnification &magnification) |
| void | UINT (size_t &value) |
| void | STYLEBLOCK (StyleFilter filter, bool state) |
| void | STYLE (StyleFilter filter, bool state) |
| void | STYLECONDBLOCK (StyleFilter filter, bool state) |
| void | STYLEFILTER (StyleFilter &filter) |
| void | STYLEDEF (StyleFilter filter, bool state) |
| void | STYLEFILTER_GROUP (StyleFilter &filter) |
| void | STYLEFILTER_FEATURE (StyleFilter &filter) |
| void | STYLEFILTER_PATH (StyleFilter &filter) |
| void | STYLEFILTER_TYPE (StyleFilter &filter) |
| void | STYLEFILTER_MAG (StyleFilter &filter) |
| void | STYLEFILTER_ONEWAY (StyleFilter &filter) |
| void | STYLEFILTER_SIZE (StyleFilter &filter) |
| void | STYLEFILTER_FEATURE_ENTRY (StyleFilter &filter, TypeInfoSet &types) |
| void | SIZECONDITION (SizeConditionRef &condition) |
| void | UMAP (double &width) |
| void | NODESTYLEDEF (StyleFilter filter, bool state) |
| void | WAYSTYLEDEF (StyleFilter filter, bool state) |
| void | AREASTYLEDEF (StyleFilter filter, bool state) |
| void | ROUTESTYLEDEF (StyleFilter filter, bool state) |
| void | NODETEXTSTYLE (StyleFilter filter, bool state) |
| void | NODEICONSTYLE (StyleFilter filter, bool state) |
| void | TEXTSTYLEATTR (TextPartialStyle &style) |
| void | ICONSTYLEATTR (IconPartialStyle &style) |
| void | WAYSTYLE (StyleFilter filter, bool state) |
| void | WAYPATHTEXTSTYLE (StyleFilter filter, bool state) |
| void | WAYPATHSYMBOLSTYLE (StyleFilter filter, bool state) |
| void | WAYSHIELDSTYLE (StyleFilter filter, bool state) |
| void | LINESTYLEATTR (LinePartialStyle &style) |
| void | ROUTEPATHTEXTSTYLE (StyleFilter filter, bool state) |
| void | PATHTEXTSTYLEATTR (PathTextPartialStyle &style) |
| void | PATHSYMBOLSTYLEATTR (PathSymbolPartialStyle &style) |
| void | PATHSHIELDSTYLEATTR (PathShieldPartialStyle &style) |
| void | AREASTYLE (StyleFilter filter, bool state) |
| void | AREATEXTSTYLE (StyleFilter filter, bool state) |
| void | AREAICONSTYLE (StyleFilter filter, bool state) |
| void | AREABORDERSTYLE (StyleFilter filter, bool state) |
| void | AREABORDERTEXTSTYLE (StyleFilter filter, bool state) |
| void | AREABORDERSYMBOLSTYLE (StyleFilter filter, bool state) |
| void | ROUTESTYLE (StyleFilter filter, bool state) |
| void | ATTRIBUTE (PartialStyleBase &style, const StyleDescriptor &descriptor) |
| void | ATTRIBUTEVALUE (PartialStyleBase &style, const StyleAttributeDescriptor &descriptor) |
| void | COLOR_VALUE (Color &color) |
| void | CONSTANT (StyleConstantRef &constant) |
| void | Parse () |
Public Attributes | |
| Errors * | errors |
| std::string | filename |
| StyleConfig & | config |
| MagnificationConverter | magnificationConverter |
| bool | state |
|
strong |
| osmscout::oss::Parser::Parser | ( | Scanner * | scanner, |
| const std::string & | filename, | ||
| StyleConfig & | config, | ||
| osmscout::ColorPostprocessor | colorPostprocessor = nullptr, | ||
| const Log & | log = osmscout::log ) |
| osmscout::oss::Parser::~Parser | ( | ) |
|
inline |
| void osmscout::oss::Parser::AREABORDERSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREABORDERSYMBOLSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREABORDERSYMSTYLE | ( | BorderPartialStyle & | borderStyle | ) |
| void osmscout::oss::Parser::AREABORDERTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREAFILLSYMSTYLE | ( | FillPartialStyle & | fillStyle | ) |
| void osmscout::oss::Parser::AREAICONSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREASTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREASTYLEDEF | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::AREASYMBOLSTYLE | ( | FillPartialStyle & | fillStyle, |
| BorderPartialStyle & | borderStyle ) |
| void osmscout::oss::Parser::AREATEXTSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::ATTRIBUTE | ( | PartialStyleBase & | style, |
| const StyleDescriptor & | descriptor ) |
| void osmscout::oss::Parser::ATTRIBUTEVALUE | ( | PartialStyleBase & | style, |
| const StyleAttributeDescriptor & | descriptor ) |
| void osmscout::oss::Parser::BOOL | ( | bool & | value | ) |
| void osmscout::oss::Parser::BORDERSTYLEATTR | ( | BorderPartialStyle & | style | ) |
| void osmscout::oss::Parser::CIRCLE | ( | Symbol & | symbol | ) |
| void osmscout::oss::Parser::COLOR | ( | Color & | color | ) |
| void osmscout::oss::Parser::COLOR_VALUE | ( | Color & | color | ) |
| void osmscout::oss::Parser::COLORCONSTDEF | ( | ) |
| void osmscout::oss::Parser::CONSTANT | ( | StyleConstantRef & | constant | ) |
| void osmscout::oss::Parser::CONSTBLOCK | ( | bool | state | ) |
| void osmscout::oss::Parser::CONSTCONDBLOCK | ( | bool | state | ) |
| void osmscout::oss::Parser::CONSTDEF | ( | ) |
| void osmscout::oss::Parser::CONSTSECTION | ( | ) |
| void osmscout::oss::Parser::COORD | ( | Vertex2D & | coord | ) |
|
inline |
| void osmscout::oss::Parser::DOUBLE | ( | double & | value | ) |
| void osmscout::oss::Parser::FILLSTYLEATTR | ( | FillPartialStyle & | style | ) |
| void osmscout::oss::Parser::FLAGBLOCK | ( | bool | state | ) |
| void osmscout::oss::Parser::FLAGCONDBLOCK | ( | bool | state | ) |
| void osmscout::oss::Parser::FLAGDEF | ( | ) |
| void osmscout::oss::Parser::FLAGSECTION | ( | ) |
|
inline |
| void osmscout::oss::Parser::ICONSTYLEATTR | ( | IconPartialStyle & | style | ) |
| void osmscout::oss::Parser::IDENT | ( | std::string & | value | ) |
| void osmscout::oss::Parser::IFCOND | ( | bool & | state | ) |
| void osmscout::oss::Parser::IMPORT | ( | ) |
| void osmscout::oss::Parser::IMPORTS | ( | ) |
| void osmscout::oss::Parser::LINESTYLEATTR | ( | LinePartialStyle & | style | ) |
| void osmscout::oss::Parser::MAG | ( | Magnification & | magnification | ) |
| void osmscout::oss::Parser::MAGCONSTDEF | ( | ) |
| void osmscout::oss::Parser::NODEICONSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::NODESTYLEDEF | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::NODETEXTSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::OSS | ( | ) |
| void osmscout::oss::Parser::Parse | ( | ) |
| void osmscout::oss::Parser::PATHSHIELDSTYLEATTR | ( | PathShieldPartialStyle & | style | ) |
| void osmscout::oss::Parser::PATHSYMBOLSTYLEATTR | ( | PathSymbolPartialStyle & | style | ) |
| void osmscout::oss::Parser::PATHTEXTSTYLEATTR | ( | PathTextPartialStyle & | style | ) |
| void osmscout::oss::Parser::POLYGON | ( | Symbol & | symbol | ) |
| void osmscout::oss::Parser::RECTANGLE | ( | Symbol & | symbol | ) |
| void osmscout::oss::Parser::ROUTEPATHTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::ROUTESTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::ROUTESTYLEDEF | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::SemErr | ( | const char * | msg | ) |
| void osmscout::oss::Parser::SemWarning | ( | const char * | msg | ) |
| void osmscout::oss::Parser::SIZECONDITION | ( | SizeConditionRef & | condition | ) |
| void osmscout::oss::Parser::STRING | ( | std::string & | value | ) |
|
inline |
| void osmscout::oss::Parser::STYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::STYLEBLOCK | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::STYLECONDBLOCK | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::STYLEDEF | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::STYLEFILTER | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_FEATURE | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_FEATURE_ENTRY | ( | StyleFilter & | filter, |
| TypeInfoSet & | types ) |
| void osmscout::oss::Parser::STYLEFILTER_GROUP | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_MAG | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_ONEWAY | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_PATH | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_SIZE | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLEFILTER_TYPE | ( | StyleFilter & | filter | ) |
| void osmscout::oss::Parser::STYLESECTION | ( | ) |
| void osmscout::oss::Parser::SYMBOLSECTION | ( | ) |
| void osmscout::oss::Parser::TEXTSTYLEATTR | ( | TextPartialStyle & | style | ) |
| void osmscout::oss::Parser::UDOUBLE | ( | double & | value | ) |
| void osmscout::oss::Parser::UINT | ( | size_t & | value | ) |
| void osmscout::oss::Parser::UINTCONSTDEF | ( | ) |
| void osmscout::oss::Parser::UMAP | ( | double & | width | ) |
| void osmscout::oss::Parser::WAYGROUP | ( | size_t | priority | ) |
| void osmscout::oss::Parser::WAYORDER | ( | ) |
| void osmscout::oss::Parser::WAYPATHSYMBOLSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::WAYPATHTEXTSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::WAYSHIELDSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::WAYSTYLE | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::WAYSTYLEDEF | ( | StyleFilter | filter, |
| bool | state ) |
| void osmscout::oss::Parser::WIDTHCONSTDEF | ( | ) |
| StyleConfig& osmscout::oss::Parser::config |
| Errors* osmscout::oss::Parser::errors |
| std::string osmscout::oss::Parser::filename |
| MagnificationConverter osmscout::oss::Parser::magnificationConverter |
| bool osmscout::oss::Parser::state |