22 #ifndef SAXWeightsHandler_h
23 #define SAXWeightsHandler_h
152 const std::string& file);
161 const std::string& file);
bool myHadAttribute
Information whether the attribute has been found for the current edge.
EdgeFloatTimeLineRetriever & operator=(const EdgeFloatTimeLineRetriever &)
Interface for a class which obtains read weights for named edges.
EdgeFloatTimeLineRetriever & myDestination
The class that shall be called when new data is avaiable.
SUMOReal myAggValue
aggregated value over the lanes read within the current edge
SUMOReal myCurrentTimeBeg
the begin of the time period that is currently processed
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
virtual ~EdgeFloatTimeLineRetriever()
Destructor.
An XML-handler for network weights.
std::string myAttributeName
The attribute name that shall be parsed.
SAX-handler base for SUMO-files.
~SAXWeightsHandler()
Destructor.
std::string myCurrentEdgeID
the edge which is currently being processed
ToRetrieveDefinition & operator=(const ToRetrieveDefinition &)
Invalidated assignment operator.
SUMOReal myCurrentTimeEnd
the end of the time period that is currently processed
virtual void addEdgeWeight(const std::string &id, SUMOReal val, SUMOReal beg, SUMOReal end) const =0
Adds a weight for a given edge and time period.
void tryParse(const SUMOSAXAttributes &attrs, bool isEdge)
Parses the efforts of a lane for the previously read times.
Encapsulated SAX-Attributes.
SAXWeightsHandler & operator=(const SAXWeightsHandler &src)
we made the assignment operator invalid
void myEndElement(int elemente)
Called when a closing tag occurs.
std::vector< ToRetrieveDefinition * > myDefinitions
List of definitions what shall be read and whereto stored while parsing the file. ...
bool myAmEdgeBased
Information whether edge values shall be used (lane value if false)
A basic edge for routing applications.
int myNoLanes
The number of lanes read for the current edge.
Complete definition about what shall be retrieved and where to store it.
The router's network representation.
A storage for options typed value containers)
ToRetrieveDefinition(const std::string &attributeName, bool edgeBased, EdgeFloatTimeLineRetriever &destination)
Constructor.
EdgeFloatTimeLineRetriever()
Constructor.
~ToRetrieveDefinition()
Destructor.
SAXWeightsHandler(const std::vector< ToRetrieveDefinition * > &defs, const std::string &file)
Constructor.