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
/****************************************************************************/
17
// SAX-handler base for SUMO-files
18
/****************************************************************************/
19
20
21
// ===========================================================================
22
// included modules
23
// ===========================================================================
24
#include <
config.h
>
25
26
#include <string>
27
#include <iostream>
28
#include <
utils/xml/GenericSAXHandler.h
>
29
#include "
SUMOXMLDefinitions.h
"
30
#include "
SUMOSAXHandler.h
"
31
32
33
// ===========================================================================
34
// method definitions
35
// ===========================================================================
36
SUMOSAXHandler::SUMOSAXHandler
(
const
std::string& file,
const
std::string& expectedRoot)
37
:
GenericSAXHandler
(
SUMOXMLDefinitions
::tags,
SUMO_TAG_NOTHING
,
38
SUMOXMLDefinitions
::attrs,
SUMO_ATTR_NOTHING
, file, expectedRoot) {}
39
40
41
SUMOSAXHandler::~SUMOSAXHandler
() {}
42
43
44
/****************************************************************************/
45
GenericSAXHandler.h
SUMOXMLDefinitions
class for maintaining associations between enums and xml-strings
Definition:
SUMOXMLDefinitions.h:1344
SUMOSAXHandler.h
SUMO_TAG_NOTHING
invalid tag
Definition:
SUMOXMLDefinitions.h:44
SUMO_ATTR_NOTHING
invalid attribute
Definition:
SUMOXMLDefinitions.h:375
config.h
SUMOSAXHandler::SUMOSAXHandler
SUMOSAXHandler(const std::string &file="", const std::string &expectedRoot="")
Constructor.
Definition:
SUMOSAXHandler.cpp:36
GenericSAXHandler
A handler which converts occuring elements and attributes into enums.
Definition:
GenericSAXHandler.h:68
SUMOXMLDefinitions.h
SUMOSAXHandler::~SUMOSAXHandler
virtual ~SUMOSAXHandler()
Destructor.
Definition:
SUMOSAXHandler.cpp:41
src
utils
xml
SUMOSAXHandler.cpp
Generated on Wed Jan 15 2020 15:04:13 for Eclipse SUMO - Simulation of Urban MObility by
1.8.16