SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
XMLSubSys.h
Go to the documentation of this file.
1
/****************************************************************************/
8
// Utility methods for initialising, closing and using the XML-subsystem
9
/****************************************************************************/
10
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
11
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
12
/****************************************************************************/
13
//
14
// This file is part of SUMO.
15
// SUMO is free software: you can redistribute it and/or modify
16
// it under the terms of the GNU General Public License as published by
17
// the Free Software Foundation, either version 3 of the License, or
18
// (at your option) any later version.
19
//
20
/****************************************************************************/
21
#ifndef XMLSubSys_h
22
#define XMLSubSys_h
23
24
25
// ===========================================================================
26
// included modules
27
// ===========================================================================
28
#ifdef _MSC_VER
29
#include <
windows_config.h
>
30
#else
31
#include <
config.h
>
32
#endif
33
34
#include <vector>
35
36
37
// ===========================================================================
38
// class declarations
39
// ===========================================================================
40
class
GenericSAXHandler
;
41
class
SUMOSAXHandler
;
42
class
SUMOSAXReader
;
43
44
45
// ===========================================================================
46
// class definitions
47
// ===========================================================================
72
class
XMLSubSys
{
73
public
:
82
static
void
init
();
83
84
92
static
void
setValidation
(
bool
enableValidation);
93
94
100
static
void
close
();
101
102
114
static
SUMOSAXReader
*
getSAXReader
(
SUMOSAXHandler
& handler);
115
116
124
static
void
setHandler
(
GenericSAXHandler
& handler);
125
126
144
static
bool
runParser
(
GenericSAXHandler
& handler,
145
const
std::string& file);
146
147
148
private
:
150
static
std::vector<SUMOSAXReader*>
myReaders
;
151
153
static
unsigned
int
myNextFreeReader
;
154
156
static
bool
myEnableValidation
;
157
158
};
159
160
161
#endif
162
163
/****************************************************************************/
164
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
utils
xml
XMLSubSys.h
Generated on Sun Jun 16 2013 07:08:41 for SUMO - Simulation of Urban MObility by
1.8.1.2