31 myAdditionalHandler(net, file, allowUndoRedo),
32 myDemandHandler(net, file, allowUndoRedo),
33 myMeanDataHandler(net, file, allowUndoRedo) {
156 }
else if (forceOverwrite) {
160 }
else if (forceRemain) {
171 if (
myQueue.back().isNetwork()) {
173 }
else if (
myQueue.back().isAdditional()) {
178 }
else if (
myQueue.back().isDemand()) {
183 }
else if (
myQueue.back().isMeanData()) {
203 return (myType == Type::NETWORK);
209 return (myType == Type::ADDITIONAL);
215 return (myType == Type::DEMAND);
221 return (myType == Type::DATA);
227 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
void forceRemainElements()
force remain elements (used if we're reloading elements)
bool isForceRemainElements() const
force remain elements (used if we're reloading elements)
bool isForceOverwriteElements() const
force overwritte elements (used if we're reloading elements)
void abortLoading()
abort loading
bool isAbortLoading() const
abort loading
bool isErrorCreatingElement() const
get flag for mark if a element wasn't created
void forceOverwriteElements()
force overwritte elements (used if we're reloading elements)
bool postParserTasks()
run post parser tasks
GNEGeneralHandler(GNENet *net, const std::string &file, const bool allowUndoRedo)
Constructor.
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
void forceOverwriteElements()
force overwritte elements (used if we're reloading elements)
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