Eclipse SUMO - Simulation of Urban MObility
Loading...
Searching...
No Matches
NIImporter_OpenStreetMap::EdgesHandler Class Reference

A class which extracts OSM-edges from a parsed OSM-file. More...

#include <NIImporter_OpenStreetMap.h>

Inheritance diagram for NIImporter_OpenStreetMap::EdgesHandler:
[legend]
Collaboration diagram for NIImporter_OpenStreetMap::EdgesHandler:
[legend]

Public Member Functions

void characters (const XMLCh *const chars, const XERCES3_SIZE_t length)
 The inherited method called when characters occurred.
 EdgesHandler (const std::map< long long int, NIOSMNode * > &osmNodes, std::map< long long int, Edge * > &toFill, std::map< long long int, Edge * > &platformShapes, const NBTypeCont &tc)
 Constructor.
void endElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname)
 The inherited method called when a tag is being closed.
const std::string & getFileName () const
 returns the current file name
void registerParent (const int tag, GenericSAXHandler *handler)
 Assigning a parent handler which is enabled when the specified tag is closed.
void setFileName (const std::string &name)
 Sets the current file name.
void startElement (const XMLCh *const uri, const XMLCh *const localname, const XMLCh *const qname, const XERCES_CPP_NAMESPACE::Attributes &attrs)
 The inherited method called when a new tag opens.
 ~EdgesHandler () override
 Destructor.

inherited from GenericSAXHandler

const std::map< long long int, NIOSMNode * > & myOSMNodes
 The previously parsed nodes.
std::map< long long int, Edge * > & myEdgeMap
 A map of built edges.
std::map< long long int, Edge * > & myPlatformShapesMap
 A map of built edges.
Edge * myCurrentEdge = nullptr
 The currently built edge.
std::map< std::string, double > mySpeedMap
 A map of non-numeric speed descriptions to their numeric values.
const NBTypeCont & myTypeCont
void myStartElement (int element, const SUMOSAXAttributes &attrs) override
 Called on the opening of a tag;.
void myEndElement (int element) override
 Called when a closing tag occurs.
double interpretSpeed (const std::string &key, std::string value)
int interpretChangeType (const std::string &value) const
void interpretLaneUse (const std::string &value, SUMOVehicleClass svc, const bool forward) const
bool interpretPlacement (const std::string &value, NIImporter_OpenStreetMap::PlacementType &placement, int &laneIndex) const
void addType (const std::string &singleTypeID)
 EdgesHandler (const EdgesHandler &s)
 invalidated copy constructor
EdgesHandler & operator= (const EdgesHandler &s)
 invalidated assignment operator

attributes parsing

AttrMap myPredefinedTags
std::vector< std::string > myPredefinedTagsMML
 the map from ids to their string representation
typedef std::vector< XMLCh * > AttrMap

elements parsing

TagMap myTagMap
std::vector< std::string > myCharactersVector
 A list of character strings obtained so far to build the complete characters string at the end.
GenericSAXHandler * myParentHandler
 The handler to give control back to.
int myParentIndicator
 The tag indicating that control should be given back.
std::string myFileName
 The name of the currently parsed file.
std::string myExpectedRoot
 The root element to expect, empty string disables the check.
bool myCollectCharacterData = false
 whether the reader should collect character data
bool myRootSeen = false
 whether the reader has already seen the root element
int mySection = -1
 The tag indicating the current section to parse.
bool mySectionSeen = false
 whether the reader has already seen the begin of the section
bool mySectionEnded = false
 whether the reader has already seen the end of the section
bool mySectionOpen = false
 whether an element of the current section is open
std::pair< int, SUMOSAXAttributes * > myNextSectionStart
typedef std::map< std::string, int > TagMap

SAX ErrorHandler callbacks

void warning (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-warnings.
void error (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors.
void fatalError (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Handler for XML-errors.
void setSection (const int element, const bool seen)
bool sectionFinished () const
std::pair< int, SUMOSAXAttributes * > retrieveNextSectionStart ()
void needsCharacterData (const bool value=true)
std::string buildErrorMessage (const XERCES_CPP_NAMESPACE::SAXParseException &exception)
 Builds an error message.
virtual void myCharacters (int element, const std::string &chars)
 Callback method for characters to implement by derived classes.
void callParentEnd (int element)
 signal endElement to the parent handler (special case for MSCalibrator)
XMLCh * convert (const std::string &name) const
 converts from c++-string into unicode
int convertTag (const std::string &tag) const
 Converts a tag from its string into its numerical representation.

Detailed Description

A class which extracts OSM-edges from a parsed OSM-file.

Definition at line 526 of file NIImporter_OpenStreetMap.h.

Member Typedef Documentation

◆ AttrMap

typedef std::vector<XMLCh*> GenericSAXHandler::AttrMap
privateinherited

Definition at line 296 of file GenericSAXHandler.h.

◆ TagMap

typedef std::map<std::string, int> GenericSAXHandler::TagMap
privateinherited

Definition at line 310 of file GenericSAXHandler.h.

Constructor & Destructor Documentation

◆ EdgesHandler() [1/2]

NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler ( const std::map< long long int, NIOSMNode * > & osmNodes,
std::map< long long int, Edge * > & toFill,
std::map< long long int, Edge * > & platformShapes,
const NBTypeCont & tc )

Constructor.

Parameters
[in]osmNodesThe previously parsed (osm-)nodes
[in,out]toFillThe edges container to fill with read edges

Definition at line 1759 of file NIImporter_OpenStreetMap.cpp.

References OptionsCont::getFloat(), OptionsCont::getOptions(), NIImporter_OpenStreetMap::MAXSPEED_UNGIVEN, myEdgeMap, myOSMNodes, myPlatformShapesMap, mySpeedMap, myTypeCont, StringUtils::parseSpeed(), and SUMOSAXHandler::SUMOSAXHandler().

Referenced by EdgesHandler(), and operator=().

Here is the caller graph for this function:

◆ ~EdgesHandler()

NIImporter_OpenStreetMap::EdgesHandler::~EdgesHandler ( )
overridedefault

Destructor.

References invalid_return< std::string >::value.

◆ EdgesHandler() [2/2]

NIImporter_OpenStreetMap::EdgesHandler::EdgesHandler ( const EdgesHandler & s)
private

invalidated copy constructor

References EdgesHandler().

Member Function Documentation

◆ addType()

void NIImporter_OpenStreetMap::EdgesHandler::addType ( const std::string & singleTypeID)
protected

Definition at line 2356 of file NIImporter_OpenStreetMap.cpp.

References NIImporter_OpenStreetMap::compoundTypeSeparator, StringTokenizer::getVector(), joinToStringSorting(), and myCurrentEdge.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ buildErrorMessage()

std::string GenericSAXHandler::buildErrorMessage ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
protectedinherited

Builds an error message.

The error message includes the file name and the line/column information as supported by the given SAXParseException

Parameters
[in]exceptionThe name of the currently processed file
Returns
A string describing the given exception

Definition at line 205 of file GenericSAXHandler.cpp.

References getFileName(), StringUtils::startsWith(), TL, and XMLSubSys::transcode().

Referenced by error(), fatalError(), and warning().

Here is the caller graph for this function:

◆ callParentEnd()

void GenericSAXHandler::callParentEnd ( int element)
protectedinherited

signal endElement to the parent handler (special case for MSCalibrator)

Definition at line 259 of file GenericSAXHandler.cpp.

References myParentHandler.

Referenced by MSCalibrator::myEndElement().

Here is the caller graph for this function:

◆ characters()

void GenericSAXHandler::characters ( const XMLCh *const chars,
const XERCES3_SIZE_t length )
inherited

The inherited method called when characters occurred.

The retrieved characters are converted into a string and appended into a private buffer. They are reported as soon as the element ends.

Todo

recheck/describe what happens with characters when a new element is opened

describe characters processing in the class' head

Definition at line 186 of file GenericSAXHandler.cpp.

References myCharactersVector, myCollectCharacterData, and XMLSubSys::transcode().

◆ convert()

XMLCh * GenericSAXHandler::convert ( const std::string & name) const
privateinherited

converts from c++-string into unicode

Todo
recheck encoding
Parameters
[in]nameThe string to convert
Returns
The string converted into a XMLCh-string

Definition at line 86 of file GenericSAXHandler.cpp.

Referenced by GenericSAXHandler().

Here is the caller graph for this function:

◆ convertTag()

int GenericSAXHandler::convertTag ( const std::string & tag) const
privateinherited

Converts a tag from its string into its numerical representation.

Returns the enum-representation stored for the given tag. If the tag is not known, SUMO_TAG_NOTHING is returned.

Parameters
[in]tagThe string to convert
Returns
The int-value that represents the string, SUMO_TAG_NOTHING if the named attribute is not known

Definition at line 195 of file GenericSAXHandler.cpp.

References myTagMap, and SUMO_TAG_NOTHING.

Referenced by endElement(), and startElement().

Here is the caller graph for this function:

◆ endElement()

void GenericSAXHandler::endElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname )
inherited

The inherited method called when a tag is being closed.

This method calls the user-implemented methods myCharacters with the previously collected and converted characters.

Then, myEndElement is called, supplying it the qname converted to its enum- and string-representations.

Todo

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 134 of file GenericSAXHandler.cpp.

References convertTag(), myCharacters(), myCharactersVector, myEndElement(), myParentHandler, myParentIndicator, mySection, mySectionOpen, XMLSubSys::setHandler(), SUMO_TAG_INCLUDE, SUMO_TAG_NOTHING, and XMLSubSys::transcode().

◆ error()

void GenericSAXHandler::error ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Parameters
[in]exceptionThe occurred exception to process
Exceptions
ProcessErrorOn any call

Definition at line 236 of file GenericSAXHandler.cpp.

References buildErrorMessage().

Referenced by MSRouteHandler::addFlowTransportable(), MSRouteHandler::addTransportable(), MSRouteHandler::closeTransportable(), NIImporter_OpenDrive::geomFromSpiral(), and MSRouteHandler::interpretDepartPosLat().

Here is the caller graph for this function:

◆ fatalError()

void GenericSAXHandler::fatalError ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-errors.

The message is built using buildErrorMessage and thrown within a ProcessError.

Exceptions
ProcessErrorOn any call
Parameters
[in]exceptionThe occurred exception to process

Definition at line 242 of file GenericSAXHandler.cpp.

References buildErrorMessage().

◆ getFileName()

◆ interpretChangeType()

int NIImporter_OpenStreetMap::EdgesHandler::interpretChangeType ( const std::string & value) const
protected

Definition at line 2399 of file NIImporter_OpenStreetMap.cpp.

References NIImporter_OpenStreetMap::CHANGE_NO, NIImporter_OpenStreetMap::CHANGE_NO_LEFT, NIImporter_OpenStreetMap::CHANGE_NO_RIGHT, StringTokenizer::getVector(), and invalid_return< std::string >::value.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ interpretLaneUse()

void NIImporter_OpenStreetMap::EdgesHandler::interpretLaneUse ( const std::string & value,
SUMOVehicleClass svc,
const bool forward ) const
protected

Definition at line 2458 of file NIImporter_OpenStreetMap.cpp.

References StringTokenizer::getVector(), invalid_return< std::string >::value, MAX2(), myCurrentEdge, SVC_IGNORING, TL, and WRITE_WARNINGF.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ interpretPlacement()

bool NIImporter_OpenStreetMap::EdgesHandler::interpretPlacement ( const std::string & value,
NIImporter_OpenStreetMap::PlacementType & placement,
int & laneIndex ) const
protected

Definition at line 2424 of file NIImporter_OpenStreetMap.cpp.

References StringTokenizer::getVector(), invalid_return< std::string >::value, NIImporter_OpenStreetMap::LEFT_OF, NIImporter_OpenStreetMap::MIDDLE_OF, NIImporter_OpenStreetMap::NONE, StringUtils::prune(), NIImporter_OpenStreetMap::RIGHT_OF, and StringUtils::toInt().

Referenced by myStartElement().

Here is the caller graph for this function:

◆ interpretSpeed()

double NIImporter_OpenStreetMap::EdgesHandler::interpretSpeed ( const std::string & key,
std::string value )
protected

Definition at line 2375 of file NIImporter_OpenStreetMap.cpp.

References invalid_return< std::string >::value, NIImporter_OpenStreetMap::MAXSPEED_UNGIVEN, myCurrentEdge, mySpeedMap, StringUtils::parseSpeed(), toString(), and WRITE_WARNING.

Referenced by myStartElement().

Here is the caller graph for this function:

◆ myCharacters()

void GenericSAXHandler::myCharacters ( int element,
const std::string & chars )
protectedvirtualinherited

Callback method for characters to implement by derived classes.

Called by "endElement" (see there).

Parameters
[in]elementThe opened element, given as a int
[in]charsThe complete embedded character string @exceptions ProcessError These method may throw a ProcessError if something fails

Reimplemented in NIImporter_ITSUMO::Handler, and NIImporter_OpenDrive.

Definition at line 252 of file GenericSAXHandler.cpp.

Referenced by endElement().

Here is the caller graph for this function:

◆ myEndElement()

void NIImporter_OpenStreetMap::EdgesHandler::myEndElement ( int element)
overrideprotectedvirtual

Called when a closing tag occurs.

Parameters
[in]elementID of the currently opened element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myEndElement

Reimplemented from GenericSAXHandler.

Definition at line 2484 of file NIImporter_OpenStreetMap.cpp.

References myCurrentEdge, myEdgeMap, myPlatformShapesMap, and SUMO_TAG_WAY.

◆ myStartElement()

void NIImporter_OpenStreetMap::EdgesHandler::myStartElement ( int element,
const SUMOSAXAttributes & attrs )
overrideprotectedvirtual

Called on the opening of a tag;.

Parameters
[in]elementID of the currently opened element
[in]attrsAttributes within the currently opened element
Exceptions
ProcessErrorIf something fails
See also
GenericSAXHandler::myStartElement

Reimplemented from GenericSAXHandler.

Definition at line 1861 of file NIImporter_OpenStreetMap.cpp.

References addType(), StringUtils::endsWith(), SUMOSAXAttributes::get(), SUMOSAXAttributes::getOpt(), StringTokenizer::getVector(), interpretChangeType(), interpretLaneUse(), interpretPlacement(), interpretSpeed(), invalid_return< std::string >::value, LEFT, NIImporter_OpenStreetMap::MAXSPEED_UNGIVEN, NIImporter_OpenStreetMap::mergeTurnSigns(), MIN2(), NIImporter_OpenStreetMap::myAllAttributes, myCurrentEdge, NIImporter_OpenStreetMap::myExtraAttributes, myOSMNodes, myTypeCont, NODIR, NIImporter_OpenStreetMap::PARKING_BOTH, NIImporter_OpenStreetMap::PARKING_LEFT, NIImporter_OpenStreetMap::PARKING_RIGHT, StringUtils::parseDist(), PARTLEFT, PARTRIGHT, StringUtils::prune(), RIGHT, StringUtils::startsWith(), STRAIGHT, SUMO_ATTR_ACTION, SUMO_ATTR_ID, SUMO_ATTR_K, SUMO_ATTR_REF, SUMO_ATTR_V, SUMO_TAG_ND, SUMO_TAG_TAG, SUMO_TAG_WAY, SVC_AUTHORITY, SVC_BICYCLE, SVC_BUS, SVC_EMERGENCY, SVC_PASSENGER, SVC_PEDESTRIAN, SVC_PRIVATE, SVC_PUBLIC_CLASSES, SVC_TAXI, TL, StringUtils::toBool(), StringUtils::toInt(), toString(), TURN, NBEdge::TURN_SIGN_SHIFT_BICYCLE, NBEdge::TURN_SIGN_SHIFT_BUS, NBEdge::TURN_SIGN_SHIFT_TAXI, NIImporter_OpenStreetMap::WAY_BACKWARD, NIImporter_OpenStreetMap::WAY_BOTH, NIImporter_OpenStreetMap::WAY_FORWARD, NIImporter_OpenStreetMap::WAY_NONE, NIImporter_OpenStreetMap::WAY_PREFER_BACKWARD, NIImporter_OpenStreetMap::WAY_PREFER_FORWARD, NIImporter_OpenStreetMap::WAY_UNKNOWN, and WRITE_WARNINGF.

◆ needsCharacterData()

void GenericSAXHandler::needsCharacterData ( const bool value = true)
inlineinherited

Definition at line 219 of file GenericSAXHandler.h.

References invalid_return< std::string >::value, and myCollectCharacterData.

Referenced by NIImporter_ITSUMO::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), and NIImporter_OpenDrive::myCharacters().

Here is the caller graph for this function:

◆ operator=()

EdgesHandler & NIImporter_OpenStreetMap::EdgesHandler::operator= ( const EdgesHandler & s)
private

invalidated assignment operator

References EdgesHandler().

◆ registerParent()

void GenericSAXHandler::registerParent ( const int tag,
GenericSAXHandler * handler )
inherited

Assigning a parent handler which is enabled when the specified tag is closed.

Definition at line 178 of file GenericSAXHandler.cpp.

References GenericSAXHandler(), myParentHandler, myParentIndicator, and XMLSubSys::setHandler().

Referenced by NLTriggerBuilder::parseAndBuildCalibrator(), NLTriggerBuilder::parseAndBuildLaneSpeedTrigger(), and NLTriggerBuilder::parseAndBuildRerouter().

Here is the caller graph for this function:

◆ retrieveNextSectionStart()

std::pair< int, SUMOSAXAttributes * > GenericSAXHandler::retrieveNextSectionStart ( )
inlineinherited

Definition at line 212 of file GenericSAXHandler.h.

References myNextSectionStart.

◆ sectionFinished()

bool GenericSAXHandler::sectionFinished ( ) const
inlineinherited

Definition at line 208 of file GenericSAXHandler.h.

References mySectionEnded.

◆ setFileName()

void GenericSAXHandler::setFileName ( const std::string & name)
inherited

Sets the current file name.

Parameters
[in]nameThe name of the currently processed file
Todo
Hmmm - this is as unsafe as having a direct access to the variable; recheck

Definition at line 74 of file GenericSAXHandler.cpp.

References myFileName.

Referenced by NIImporter_SUMO::_loadNetwork(), MSStateHandler::MSStateTimeHandler::getTime(), GUISettingsHandler::GUISettingsHandler(), NIImporter_OpenStreetMap::load(), NIImporter_Vissim::load(), NITypeLoader::load(), PCNetProjectionLoader::load(), loadNet(), ROLoader::loadNet(), NIImporter_ITSUMO::loadNetwork(), NIImporter_MATSim::loadNetwork(), NIImporter_OpenDrive::loadNetwork(), main(), and XMLSubSys::runParser().

Here is the caller graph for this function:

◆ setSection()

void GenericSAXHandler::setSection ( const int element,
const bool seen )
inlineinherited

Definition at line 201 of file GenericSAXHandler.h.

References mySection, mySectionEnded, mySectionOpen, and mySectionSeen.

◆ startElement()

void GenericSAXHandler::startElement ( const XMLCh *const uri,
const XMLCh *const localname,
const XMLCh *const qname,
const XERCES_CPP_NAMESPACE::Attributes & attrs )
inherited

The inherited method called when a new tag opens.

The method parses the supplied XMLCh*-qname using the internal name/enum-map to obtain the enum representation of the attribute name.

Then, "myStartElement" is called supplying the enumeration value, the string-representation of the name and the attributes.

Todo

recheck/describe encoding of the string-representation

do not generate and report the string-representation

Definition at line 99 of file GenericSAXHandler.cpp.

References convertTag(), FileHelpers::getConfigurationRelative(), getFileName(), SUMOSAXAttributesImpl_Xerces::getString(), FileHelpers::isAbsolute(), myCharactersVector, myExpectedRoot, myNextSectionStart, myPredefinedTags, myPredefinedTagsMML, myRootSeen, mySection, mySectionEnded, mySectionOpen, mySectionSeen, myStartElement(), XMLSubSys::runParser(), SUMO_ATTR_HREF, SUMO_TAG_INCLUDE, TL, XMLSubSys::transcode(), and WRITE_WARNINGF.

◆ warning()

void GenericSAXHandler::warning ( const XERCES_CPP_NAMESPACE::SAXParseException & exception)
inherited

Handler for XML-warnings.

The message is built using buildErrorMessage and reported to the warning-instance of the MsgHandler.

Parameters
[in]exceptionThe occurred exception to process

Definition at line 230 of file GenericSAXHandler.cpp.

References buildErrorMessage(), and WRITE_WARNING.

Field Documentation

◆ myCharactersVector

std::vector<std::string> GenericSAXHandler::myCharactersVector
privateinherited

A list of character strings obtained so far to build the complete characters string at the end.

Definition at line 317 of file GenericSAXHandler.h.

Referenced by characters(), endElement(), and startElement().

◆ myCollectCharacterData

bool GenericSAXHandler::myCollectCharacterData = false
privateinherited

whether the reader should collect character data

Definition at line 332 of file GenericSAXHandler.h.

Referenced by characters(), and needsCharacterData().

◆ myCurrentEdge

Edge* NIImporter_OpenStreetMap::EdgesHandler::myCurrentEdge = nullptr
private

The currently built edge.

Definition at line 587 of file NIImporter_OpenStreetMap.h.

Referenced by addType(), interpretLaneUse(), interpretSpeed(), myEndElement(), and myStartElement().

◆ myEdgeMap

std::map<long long int, Edge*>& NIImporter_OpenStreetMap::EdgesHandler::myEdgeMap
private

A map of built edges.

Definition at line 581 of file NIImporter_OpenStreetMap.h.

Referenced by EdgesHandler(), and myEndElement().

◆ myExpectedRoot

std::string GenericSAXHandler::myExpectedRoot
privateinherited

The root element to expect, empty string disables the check.

Definition at line 329 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), and startElement().

◆ myFileName

std::string GenericSAXHandler::myFileName
privateinherited

The name of the currently parsed file.

Definition at line 326 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), getFileName(), and setFileName().

◆ myNextSectionStart

std::pair<int, SUMOSAXAttributes*> GenericSAXHandler::myNextSectionStart
privateinherited

◆ myOSMNodes

const std::map<long long int, NIOSMNode*>& NIImporter_OpenStreetMap::EdgesHandler::myOSMNodes
private

The previously parsed nodes.

Definition at line 578 of file NIImporter_OpenStreetMap.h.

Referenced by EdgesHandler(), and myStartElement().

◆ myParentHandler

GenericSAXHandler* GenericSAXHandler::myParentHandler
privateinherited

The handler to give control back to.

Definition at line 320 of file GenericSAXHandler.h.

Referenced by callParentEnd(), endElement(), GenericSAXHandler(), and registerParent().

◆ myParentIndicator

int GenericSAXHandler::myParentIndicator
privateinherited

The tag indicating that control should be given back.

Definition at line 323 of file GenericSAXHandler.h.

Referenced by endElement(), GenericSAXHandler(), and registerParent().

◆ myPlatformShapesMap

std::map<long long int, Edge*>& NIImporter_OpenStreetMap::EdgesHandler::myPlatformShapesMap
private

A map of built edges.

Definition at line 584 of file NIImporter_OpenStreetMap.h.

Referenced by EdgesHandler(), and myEndElement().

◆ myPredefinedTags

AttrMap GenericSAXHandler::myPredefinedTags
privateinherited

Definition at line 299 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), startElement(), and ~GenericSAXHandler().

◆ myPredefinedTagsMML

std::vector<std::string> GenericSAXHandler::myPredefinedTagsMML
privateinherited

the map from ids to their string representation

Definition at line 302 of file GenericSAXHandler.h.

Referenced by GenericSAXHandler(), and startElement().

◆ myRootSeen

bool GenericSAXHandler::myRootSeen = false
privateinherited

whether the reader has already seen the root element

Definition at line 335 of file GenericSAXHandler.h.

Referenced by startElement().

◆ mySection

int GenericSAXHandler::mySection = -1
privateinherited

The tag indicating the current section to parse.

Definition at line 338 of file GenericSAXHandler.h.

Referenced by endElement(), setSection(), and startElement().

◆ mySectionEnded

bool GenericSAXHandler::mySectionEnded = false
privateinherited

whether the reader has already seen the end of the section

Definition at line 344 of file GenericSAXHandler.h.

Referenced by sectionFinished(), setSection(), and startElement().

◆ mySectionOpen

bool GenericSAXHandler::mySectionOpen = false
privateinherited

whether an element of the current section is open

Definition at line 347 of file GenericSAXHandler.h.

Referenced by endElement(), setSection(), and startElement().

◆ mySectionSeen

bool GenericSAXHandler::mySectionSeen = false
privateinherited

whether the reader has already seen the begin of the section

Definition at line 341 of file GenericSAXHandler.h.

Referenced by setSection(), and startElement().

◆ mySpeedMap

std::map<std::string, double> NIImporter_OpenStreetMap::EdgesHandler::mySpeedMap
private

A map of non-numeric speed descriptions to their numeric values.

Definition at line 590 of file NIImporter_OpenStreetMap.h.

Referenced by EdgesHandler(), and interpretSpeed().

◆ myTagMap

TagMap GenericSAXHandler::myTagMap
privateinherited

Definition at line 313 of file GenericSAXHandler.h.

Referenced by convertTag(), and GenericSAXHandler().

◆ myTypeCont

const NBTypeCont& NIImporter_OpenStreetMap::EdgesHandler::myTypeCont
private

Definition at line 592 of file NIImporter_OpenStreetMap.h.

Referenced by EdgesHandler(), and myStartElement().


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