21 #ifndef SAXWeightsHandler_h 22 #define SAXWeightsHandler_h 97 double val,
double beg,
double end)
const = 0;
151 const std::string& file);
160 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.
void myStartElement(int element, const SUMOSAXAttributes &attrs)
Called on the opening of a tag;.
virtual ~EdgeFloatTimeLineRetriever()
Destructor.
double myCurrentTimeBeg
the begin of the time period that is currently processed
An XML-handler for network weights.
std::string myAttributeName
The attribute name that shall be parsed.
virtual void addEdgeWeight(const std::string &id, double val, double beg, double end) const =0
Adds a weight for a given edge and time period.
SAX-handler base for SUMO-files.
~SAXWeightsHandler()
Destructor.
std::string myCurrentEdgeID
the edge which is currently being processed
void tryParse(const SUMOSAXAttributes &attrs, bool isEdge)
Parses the efforts of a lane for the previously read times.
Encapsulated SAX-Attributes.
double myCurrentTimeEnd
the end of the time period that is currently processed
SAXWeightsHandler(const std::vector< ToRetrieveDefinition *> &defs, const std::string &file)
Constructor.
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)
EdgeFloatTimeLineRetriever()
Constructor.
double myAggValue
aggregated value over the lanes read within the current edge