37 myAdditionalHandler(net, allowUndoRedo, overwrite),
38 myDemandHandler(file, net, allowUndoRedo, overwrite),
39 myMeanDataHandler(net, allowUndoRedo, overwrite) {
145 if (
myQueue.back().isNetwork()) {
147 }
else if (
myQueue.back().isAdditional()) {
152 }
else if (
myQueue.back().isDemand()) {
157 }
else if (
myQueue.back().isMeanData()) {
177 return (myType == Type::NETWORK);
183 return (myType == Type::ADDITIONAL);
189 return (myType == Type::DEMAND);
195 return (myType == Type::DATA);
201 return (myType == Type::MEANDATA);
SumoXMLTag
Numbers representing SUMO-XML - element names.
@ SUMO_TAG_INTERVAL
an aggreagated-output interval
@ SUMO_TAG_FLOW
a flow definition using from and to edges or a route
@ SUMO_TAG_PARAM
parameter associated to a certain key
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
void endParseAttributes()
end parse attributes
bool isErrorCreatingElement() const
get flag for mark if a element wasn't created
bool postParserTasks()
run post parser tasks
bool isAdditionalFile() const
check if the parser file is a additional file
void beginTag(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
start element
bool isRouteFile() const
check if the parser file is a route file
~GNEGeneralHandler()
Destructor.
std::list< TagType > myQueue
queue with the inserted tags
bool isMeanDataFile() const
check if the parser file is a meanData file
GNEGeneralHandler(GNENet *net, const std::string &file, const bool allowUndoRedo, const bool overwrite)
Constructor.
bool postParserTasks()
run post parser tasks
GNEAdditionalHandler myAdditionalHandler
additional handler
bool isErrorCreatingElement() const
get flag for check if a element wasn't created
TagType::Type fileType
flag for set file type
GNEMeanDataHandler myMeanDataHandler
meanData handler
GNERouteHandler myDemandHandler
demand handler
bool postParserTasks()
run post parser tasks
A NBNetBuilder extended by visualisation and editing capabilities.
bool postParserTasks()
run post parser tasks
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
void endParseAttributes()
end parse attributes
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
void endParseAttributes()
end parse attributes
Encapsulated SAX-Attributes.
bool isDemand() const
is network element
bool isData() const
is network element
bool isMeanData() const
is network element
TagType(SumoXMLTag tag, Type type)
constructor
bool isNetwork() const
is network element
bool isAdditional() const
is network element