libosmscout  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups
osmscout::oss::Parser Class Reference

#include <Parser.h>

Public Types

typedef std::list< BorderStyleRefBorderStyleList
 
typedef std::list< FillStyleRefFillStyleList
 
typedef std::list< IconStyleRefIconStyleList
 
typedef std::list< LineStyleRefLineStyleList
 
typedef std::list
< PathShieldStyleRef
PathShieldStyleList
 
typedef std::list
< PathTextStyleRef
PathTextStyleList
 
typedef std::list< TextStyleRefTextStyleList
 
enum  ValueType {
  ValueType::NO_VALUE, ValueType::IDENT, ValueType::STRING, ValueType::COLOR,
  ValueType::NUMBER, ValueType::CONSTANT
}
 

Public Member Functions

void AddFeatureToFilter (StyleFilter &filter, const std::string &featureName, 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 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 OSS ()
 
void Parse ()
 
 Parser (Scanner *scanner, StyleConfig &config)
 
void PATHSHIELDSTYLEATTR (PathShieldPartialStyle &style)
 
void PATHSYMBOLSTYLEATTR (PathSymbolPartialStyle &style)
 
void PATHTEXTSTYLEATTR (PathTextPartialStyle &style)
 
void POLYGON (Symbol &symbol)
 
void RECTANGLE (Symbol &symbol)
 
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_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 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)
 
 ~Parser ()
 

Public Attributes

StyleConfigconfig
 
Errorserrors
 
MagnificationConverter magnificationConverter
 
bool state
 

Member Typedef Documentation

Member Enumeration Documentation

Enumerator
NO_VALUE 
IDENT 
STRING 
COLOR 
NUMBER 
CONSTANT 

Constructor & Destructor Documentation

osmscout::oss::Parser::Parser ( Scanner scanner,
StyleConfig config 
)

References errors.

osmscout::oss::Parser::~Parser ( )

References errors.

Member Function Documentation

void osmscout::oss::Parser::AddFeatureToFilter ( StyleFilter filter,
const std::string &  featureName,
TypeInfoSet &  resultTypes 
)
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)

References BORDERSTYLEATTR().

Referenced by AREASYMBOLSTYLE().

void osmscout::oss::Parser::AREABORDERTEXTSTYLE ( StyleFilter  filter,
bool  state 
)
void osmscout::oss::Parser::AREAFILLSYMSTYLE ( FillPartialStyle fillStyle)

References FILLSTYLEATTR().

Referenced by AREASYMBOLSTYLE().

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 
)

References AREABORDERSYMSTYLE(), and AREAFILLSYMSTYLE().

Referenced by CIRCLE(), POLYGON(), and RECTANGLE().

void osmscout::oss::Parser::AREATEXTSTYLE ( StyleFilter  filter,
bool  state 
)
void osmscout::oss::Parser::ATTRIBUTEVALUE ( PartialStyleBase style,
const StyleAttributeDescriptor descriptor 
)

References 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::oss::Errors::hasErrors, IDENT(), osmscout::Color::Lighten(), 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::BOOL ( bool &  value)

References SemErr().

Referenced by FLAGDEF().

void osmscout::oss::Parser::BORDERSTYLEATTR ( BorderPartialStyle style)
void osmscout::oss::Parser::COLOR_VALUE ( Color color)
void osmscout::oss::Parser::CONSTANT ( StyleConstantRef constant)
void osmscout::oss::Parser::CONSTBLOCK ( bool  state)

References CONSTCONDBLOCK(), and CONSTDEF().

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(), and UINTCONSTDEF().

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().

std::string osmscout::oss::Parser::Destring ( const char *  str)
inline

Referenced by STRING().

void osmscout::oss::Parser::DOUBLE ( double &  value)

References SemErr(), and StringToDouble().

Referenced by COORD().

void osmscout::oss::Parser::FILLSTYLEATTR ( FillPartialStyle style)
void osmscout::oss::Parser::FLAGBLOCK ( bool  state)

References FLAGCONDBLOCK(), and FLAGDEF().

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 ( )
void osmscout::oss::Parser::FLAGSECTION ( )

References FLAGBLOCK().

Referenced by OSS().

size_t osmscout::oss::Parser::GetHexDigitValue ( char  c)
inline
void osmscout::oss::Parser::ICONSTYLEATTR ( IconPartialStyle style)
void osmscout::oss::Parser::IFCOND ( bool &  state)
void osmscout::oss::Parser::LINESTYLEATTR ( LinePartialStyle style)
void osmscout::oss::Parser::NODEICONSTYLE ( StyleFilter  filter,
bool  state 
)
void osmscout::oss::Parser::NODESTYLEDEF ( StyleFilter  filter,
bool  state 
)

References NODEICONSTYLE(), and NODETEXTSTYLE().

Referenced by STYLEDEF().

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::SemWarning ( const char *  msg)
void osmscout::oss::Parser::SIZECONDITION ( SizeConditionRef condition)

References SemErr(), and UDOUBLE().

Referenced by STYLEFILTER_SIZE().

void osmscout::oss::Parser::STRING ( std::string &  value)

References Destring().

Referenced by ATTRIBUTEVALUE().

bool osmscout::oss::Parser::StringToDouble ( const char *  string,
double &  value 
)
inline

Referenced by DOUBLE(), and UDOUBLE().

void osmscout::oss::Parser::STYLE ( StyleFilter  filter,
bool  state 
)

References STYLEBLOCK(), STYLEDEF(), and STYLEFILTER().

Referenced by STYLEBLOCK().

void osmscout::oss::Parser::STYLEBLOCK ( StyleFilter  filter,
bool  state 
)

References 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(), and WAYSTYLEDEF().

Referenced by STYLE().

void osmscout::oss::Parser::STYLEFILTER ( StyleFilter filter)
void osmscout::oss::Parser::STYLEFILTER_FEATURE ( StyleFilter filter)
void osmscout::oss::Parser::STYLEFILTER_ONEWAY ( StyleFilter filter)
void osmscout::oss::Parser::STYLEFILTER_SIZE ( StyleFilter filter)
void osmscout::oss::Parser::STYLESECTION ( )

References STYLEBLOCK().

Referenced by OSS().

void osmscout::oss::Parser::SYMBOLSECTION ( )
void osmscout::oss::Parser::TEXTSTYLEATTR ( TextPartialStyle style)
void osmscout::oss::Parser::UDOUBLE ( double &  value)
void osmscout::oss::Parser::WAYGROUP ( size_t  priority)
void osmscout::oss::Parser::WAYORDER ( )

References WAYGROUP().

Referenced by OSS().

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 
)

Member Data Documentation

MagnificationConverter osmscout::oss::Parser::magnificationConverter

Referenced by ATTRIBUTEVALUE(), and MAG().


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