Eclipse SUMO - Simulation of Urban MObility
SUMOSAXHandler.cpp
Go to the documentation of this file.
1 /****************************************************************************/
2 // Eclipse SUMO, Simulation of Urban MObility; see https://eclipse.org/sumo
3 // Copyright (C) 2002-2019 German Aerospace Center (DLR) and others.
4 // This program and the accompanying materials
5 // are made available under the terms of the Eclipse Public License v2.0
6 // which accompanies this distribution, and is available at
7 // http://www.eclipse.org/legal/epl-v20.html
8 // SPDX-License-Identifier: EPL-2.0
9 /****************************************************************************/
16 // SAX-handler base for SUMO-files
17 /****************************************************************************/
18 
19 
20 // ===========================================================================
21 // included modules
22 // ===========================================================================
23 #include <config.h>
24 
25 #include <string>
26 #include <iostream>
28 #include "SUMOXMLDefinitions.h"
29 #include "SUMOSAXHandler.h"
30 
31 
32 // ===========================================================================
33 // method definitions
34 // ===========================================================================
35 SUMOSAXHandler::SUMOSAXHandler(const std::string& file, const std::string& expectedRoot)
37  SUMOXMLDefinitions::attrs, SUMO_ATTR_NOTHING, file, expectedRoot) {}
38 
39 
41 
42 
43 /****************************************************************************/
44 
GenericSAXHandler.h
SUMOXMLDefinitions
class for maintaining associations between enums and xml-strings
Definition: SUMOXMLDefinitions.h:1349
SUMOSAXHandler.h
SUMO_TAG_NOTHING
@ SUMO_TAG_NOTHING
invalid tag
Definition: SUMOXMLDefinitions.h:43
SUMO_ATTR_NOTHING
@ SUMO_ATTR_NOTHING
invalid attribute
Definition: SUMOXMLDefinitions.h:374
config.h
SUMOSAXHandler::SUMOSAXHandler
SUMOSAXHandler(const std::string &file="", const std::string &expectedRoot="")
Constructor.
Definition: SUMOSAXHandler.cpp:35
GenericSAXHandler
A handler which converts occuring elements and attributes into enums.
Definition: GenericSAXHandler.h:67
SUMOXMLDefinitions.h
SUMOSAXHandler::~SUMOSAXHandler
virtual ~SUMOSAXHandler()
Destructor.
Definition: SUMOSAXHandler.cpp:40