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-sim.org/
11
// Copyright (C) 2002-2014 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
#include <xercesc/sax2/SAX2XMLReader.hpp>
36
37
38
// ===========================================================================
39
// class declarations
40
// ===========================================================================
41
class
GenericSAXHandler
;
42
class
SUMOSAXHandler
;
43
class
SUMOSAXReader
;
44
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
73
class
XMLSubSys
{
74
public
:
83
static
void
init
();
84
85
94
static
void
setValidation
(
const
std::string& validationScheme,
const
std::string& netValidationScheme);
95
96
102
static
void
close
();
103
104
116
static
SUMOSAXReader
*
getSAXReader
(
SUMOSAXHandler
& handler);
117
118
126
static
void
setHandler
(
GenericSAXHandler
& handler);
127
128
147
static
bool
runParser
(
GenericSAXHandler
& handler,
148
const
std::string& file,
const
bool
isNet =
false
);
149
150
151
private
:
153
static
std::vector<SUMOSAXReader*>
myReaders
;
154
156
static
unsigned
int
myNextFreeReader
;
157
159
static
XERCES_CPP_NAMESPACE::SAX2XMLReader::ValSchemes
myValidationScheme
;
160
162
static
XERCES_CPP_NAMESPACE::SAX2XMLReader::ValSchemes
myNetValidationScheme
;
163
164
};
165
166
167
#endif
168
169
/****************************************************************************/
170
tmp
buildd
sumo-0.21.0+dfsg
src
utils
xml
XMLSubSys.h
Generated on Thu Nov 20 2014 19:49:59 for SUMO - Simulation of Urban MObility by
1.8.1.2