SUMO - Simulation of Urban MObility
SUMOSAXHandler.cpp
Go to the documentation of this file.
1
/****************************************************************************/
9
// SAX-handler base for SUMO-files
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.dlr.de/
12
// Copyright (C) 2002-2017 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
23
24
// ===========================================================================
25
// included modules
26
// ===========================================================================
27
#ifdef _MSC_VER
28
#include <
windows_config.h
>
29
#else
30
#include <
config.h
>
31
#endif
32
33
#include <string>
34
#include <iostream>
35
#include <
utils/xml/GenericSAXHandler.h
>
36
#include "
SUMOXMLDefinitions.h
"
37
#include "
SUMOSAXHandler.h
"
38
39
40
// ===========================================================================
41
// method definitions
42
// ===========================================================================
43
SUMOSAXHandler::SUMOSAXHandler
(
const
std::string& file)
44
:
GenericSAXHandler
(
SUMOXMLDefinitions
::tags,
SUMO_TAG_NOTHING
,
45
SUMOXMLDefinitions
::attrs,
SUMO_ATTR_NOTHING
, file) {}
46
47
48
SUMOSAXHandler::~SUMOSAXHandler
() {}
49
50
51
/****************************************************************************/
52
SUMOSAXHandler::SUMOSAXHandler
SUMOSAXHandler(const std::string &file="")
Constructor.
Definition:
SUMOSAXHandler.cpp:43
windows_config.h
config.h
SUMO_TAG_NOTHING
invalid tag
Definition:
SUMOXMLDefinitions.h:51
GenericSAXHandler
A handler which converts occuring elements and attributes into enums.
Definition:
GenericSAXHandler.h:75
SUMOSAXHandler::~SUMOSAXHandler
virtual ~SUMOSAXHandler()
Destructor.
Definition:
SUMOSAXHandler.cpp:48
SUMO_ATTR_NOTHING
invalid attribute
Definition:
SUMOXMLDefinitions.h:329
SUMOXMLDefinitions
class for maintaining associations between enums and xml-strings
Definition:
SUMOXMLDefinitions.h:1077
GenericSAXHandler.h
SUMOSAXHandler.h
SUMOXMLDefinitions.h
src
utils
xml
SUMOSAXHandler.cpp
Generated on Mon Nov 20 2017 19:17:21 for SUMO - Simulation of Urban MObility by
1.8.13