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