37 myAdditionalHandler(net, allowUndoRedo, overwrite),
38 myDemandHandler(file, net, allowUndoRedo, overwrite),
39 myMeanDataHandler(net, allowUndoRedo, overwrite) {
131 if (
myQueue.back().isNetwork()) {
133 }
else if (
myQueue.back().isAdditional()) {
138 }
else if (
myQueue.back().isDemand()) {
143 }
else if (
myQueue.back().isMeanData()) {
163 return (myType == Type::NETWORK);
169 return (myType == Type::ADDITIONAL);
175 return (myType == Type::DEMAND);
181 return (myType == Type::DATA);
187 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 check if a element wasn't created
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.
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
A NBNetBuilder extended by visualisation and editing capabilities.
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
void endParseAttributes()
end parse attributes
bool isErrorCreatingElement() const
get flag for check if a element wasn't created
bool beginParseAttributes(SumoXMLTag tag, const SUMOSAXAttributes &attrs)
begin parse attributes
bool isErrorCreatingElement() const
get flag for check if a element wasn't created
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