libosmscout
0.1
|
#include <Parser.h>
Public Member Functions | |
std::string | Destring (const char *str) |
void | FEATURE () |
void | FEATUREDESCS (Feature &feature) |
void | FEATURES () |
void | GRADE () |
void | GRADES () |
void | GROUPS (TypeInfo &typeInfo) |
void | IDENT (std::string &value) |
void | IMPORT () |
void | IMPORTS () |
void | LANES (TypeInfo &typeInfo) |
void | MAXSPEED () |
void | MAXSPEEDS () |
void | OST () |
void | Parse () |
Parser (Scanner *scanner, const std::string &filename, TypeConfig &config) | |
void | PATH (TypeInfo &typeInfo) |
void | SemErr (const char *msg) |
void | SPECIALTYPE (TypeInfo &typeInfo) |
void | STRING (std::string &value) |
void | TAGANDCOND (TagConditionRef &condition) |
void | TAGBINCOND (TagConditionRef &condition) |
void | TAGBOOLCOND (TagConditionRef &condition) |
void | TAGCONDITION (TagConditionRef &condition) |
void | TAGEQUALSCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGEXISTSCOND (TagConditionRef &condition) |
void | TAGGREATERCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGGREATEREQUALCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGISINCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGLESSCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGLESSEQUALCOND (const std::string &tagName, TagConditionRef &condition) |
void | TAGNOTEQUALSCOND (const std::string &tagName, TagConditionRef &condition) |
void | TYPE () |
void | TYPEDESCS (TypeInfo &typeInfo) |
void | TYPEFEATURE (TypeInfo &typeInfo) |
void | TYPEKIND (unsigned char &types) |
void | TYPEKINDS (unsigned char &types) |
void | TYPEOPTION (TypeInfo &typeInfo) |
void | TYPEOPTIONS (TypeInfo &typeInfo) |
void | TYPES () |
void | UINT (size_t &value) |
void | UINT8 (uint8_t &value) |
~Parser () | |
Public Attributes | |
Errors * | errors |
osmscout::ost::Parser::Parser | ( | Scanner * | scanner, |
const std::string & | filename, | ||
TypeConfig & | config | ||
) |
References errors.
osmscout::ost::Parser::~Parser | ( | ) |
References errors.
|
inline |
Referenced by STRING(), TAGBINCOND(), TAGEXISTSCOND(), and TAGISINCOND().
void osmscout::ost::Parser::FEATURE | ( | ) |
References FEATUREDESCS(), osmscout::TypeConfig::GetFeature(), IDENT(), and SemErr().
Referenced by FEATURES().
void osmscout::ost::Parser::FEATUREDESCS | ( | Feature & | feature | ) |
References osmscout::Feature::AddDescription(), IDENT(), and STRING().
Referenced by FEATURE().
void osmscout::ost::Parser::GRADE | ( | ) |
References osmscout::TypeConfig::RegisterSurfaceToGradeMapping(), SemErr(), STRING(), and UINT().
Referenced by GRADES().
void osmscout::ost::Parser::GROUPS | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::AddGroup(), and IDENT().
Referenced by TYPE().
void osmscout::ost::Parser::IDENT | ( | std::string & | value | ) |
Referenced by FEATURE(), FEATUREDESCS(), GROUPS(), TYPE(), TYPEDESCS(), and TYPEFEATURE().
void osmscout::ost::Parser::IMPORT | ( | ) |
References osmscout::AppendFileToDir(), osmscout::GetDirectory(), osmscout::TypeConfig::LoadFromOSTFile(), SemErr(), and STRING().
Referenced by IMPORTS().
void osmscout::ost::Parser::LANES | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::SetIsPath(), osmscout::TypeInfo::SetLanes(), osmscout::TypeInfo::SetOnewayLanes(), and UINT8().
Referenced by TYPEOPTION().
void osmscout::ost::Parser::MAXSPEED | ( | ) |
References osmscout::TypeConfig::RegisterMaxSpeedAlias(), SemErr(), STRING(), and UINT().
Referenced by MAXSPEEDS().
void osmscout::ost::Parser::MAXSPEEDS | ( | ) |
References MAXSPEED().
Referenced by OST().
void osmscout::ost::Parser::OST | ( | ) |
References FEATURES(), GRADES(), IMPORTS(), MAXSPEEDS(), and TYPES().
Referenced by Parse().
void osmscout::ost::Parser::Parse | ( | ) |
References osmscout::ost::coco_string_create(), and OST().
Referenced by osmscout::TypeConfig::LoadFromOSTFile().
void osmscout::ost::Parser::PATH | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::CanRouteBicycle(), osmscout::TypeInfo::CanRouteCar(), osmscout::TypeInfo::CanRouteFoot(), and osmscout::TypeInfo::SetIsPath().
Referenced by TYPEOPTION().
void osmscout::ost::Parser::SemErr | ( | const char * | msg | ) |
References osmscout::ost::Errors::Error(), and errors.
Referenced by FEATURE(), GRADE(), IMPORT(), MAXSPEED(), TYPEFEATURE(), UINT(), and UINT8().
void osmscout::ost::Parser::SPECIALTYPE | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::SetMultipolygon(), osmscout::TypeInfo::SetRoute(), and osmscout::TypeInfo::SetRouteMaster().
Referenced by TYPE().
void osmscout::ost::Parser::STRING | ( | std::string & | value | ) |
References Destring().
Referenced by FEATUREDESCS(), GRADE(), IMPORT(), MAXSPEED(), TAGEQUALSCOND(), TAGGREATERCOND(), TAGGREATEREQUALCOND(), TAGLESSCOND(), TAGLESSEQUALCOND(), TAGNOTEQUALSCOND(), and TYPEDESCS().
void osmscout::ost::Parser::TAGANDCOND | ( | TagConditionRef & | condition | ) |
References osmscout::TagBoolCondition::boolAnd, and TAGBOOLCOND().
Referenced by TAGCONDITION().
void osmscout::ost::Parser::TAGBINCOND | ( | TagConditionRef & | condition | ) |
References Destring(), TAGEQUALSCOND(), TAGGREATERCOND(), TAGGREATEREQUALCOND(), TAGISINCOND(), TAGLESSCOND(), TAGLESSEQUALCOND(), and TAGNOTEQUALSCOND().
Referenced by TAGBOOLCOND().
void osmscout::ost::Parser::TAGBOOLCOND | ( | TagConditionRef & | condition | ) |
References TAGBINCOND(), TAGCONDITION(), and TAGEXISTSCOND().
Referenced by TAGANDCOND().
void osmscout::ost::Parser::TAGCONDITION | ( | TagConditionRef & | condition | ) |
References osmscout::TagBoolCondition::boolOr, and TAGANDCOND().
Referenced by TAGBOOLCOND(), and TYPE().
void osmscout::ost::Parser::TAGEQUALSCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorEqual, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGEXISTSCOND | ( | TagConditionRef & | condition | ) |
References Destring(), osmscout::TypeConfig::GetTagRegistry(), and osmscout::TagRegistry::RegisterTag().
Referenced by TAGBOOLCOND().
void osmscout::ost::Parser::TAGGREATERCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorGreater, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGGREATEREQUALCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorGreaterEqual, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGISINCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References Destring(), osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorEqual, and osmscout::TagRegistry::RegisterTag().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGLESSCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorLess, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGLESSEQUALCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorLessEqual, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TAGNOTEQUALSCOND | ( | const std::string & | tagName, |
TagConditionRef & | condition | ||
) |
References osmscout::TypeConfig::GetTagRegistry(), osmscout::operatorNotEqual, osmscout::TagRegistry::RegisterTag(), STRING(), and UINT().
Referenced by TAGBINCOND().
void osmscout::ost::Parser::TYPE | ( | ) |
References GROUPS(), IDENT(), osmscout::TypeConfig::RegisterType(), SPECIALTYPE(), TAGCONDITION(), TYPEDESCS(), TYPEFEATURE(), TYPEKINDS(), and TYPEOPTIONS().
Referenced by TYPES().
void osmscout::ost::Parser::TYPEDESCS | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::AddDescription(), IDENT(), and STRING().
Referenced by TYPE().
void osmscout::ost::Parser::TYPEFEATURE | ( | TypeInfo & | typeInfo | ) |
References osmscout::TypeInfo::AddFeature(), osmscout::TypeConfig::GetFeature(), osmscout::TypeInfo::HasFeature(), IDENT(), and SemErr().
Referenced by TYPE().
void osmscout::ost::Parser::TYPEKIND | ( | unsigned char & | types | ) |
References osmscout::TypeInfo::typeArea, osmscout::TypeInfo::typeNode, osmscout::TypeInfo::typeRelation, and osmscout::TypeInfo::typeWay.
Referenced by TYPEKINDS().
void osmscout::ost::Parser::TYPEKINDS | ( | unsigned char & | types | ) |
References TYPEKIND().
Referenced by TYPE().
void osmscout::ost::Parser::TYPEOPTION | ( | TypeInfo & | typeInfo | ) |
References LANES(), PATH(), osmscout::TypeInfo::SetIgnoreSeaLand(), osmscout::TypeInfo::SetIndexAsAddress(), osmscout::TypeInfo::SetIndexAsLocation(), osmscout::TypeInfo::SetIndexAsPOI(), osmscout::TypeInfo::SetIndexAsRegion(), osmscout::TypeInfo::SetMergeAreas(), osmscout::TypeInfo::SetOptimizeLowZoom(), and osmscout::TypeInfo::SetPinWay().
Referenced by TYPEOPTIONS().
void osmscout::ost::Parser::TYPEOPTIONS | ( | TypeInfo & | typeInfo | ) |
References TYPEOPTION().
Referenced by TYPE().
void osmscout::ost::Parser::UINT | ( | size_t & | value | ) |
References SemErr(), and osmscout::StringToNumber().
Referenced by GRADE(), MAXSPEED(), TAGEQUALSCOND(), TAGGREATERCOND(), TAGGREATEREQUALCOND(), TAGLESSCOND(), TAGLESSEQUALCOND(), and TAGNOTEQUALSCOND().
void osmscout::ost::Parser::UINT8 | ( | uint8_t & | value | ) |
References SemErr(), and osmscout::StringToNumber().
Referenced by LANES().
Errors* osmscout::ost::Parser::errors |
Referenced by osmscout::TypeConfig::LoadFromOSTFile(), Parser(), SemErr(), and ~Parser().