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
SUMOSAXAttributesImpl_Binary.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Encapsulated Xerces-SAX-attributes
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2013 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
#ifndef SUMOSAXAttributesImpl_Binary_h
23
#define SUMOSAXAttributesImpl_Binary_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <map>
36
#include <set>
37
#include "
SUMOSAXAttributes.h
"
38
39
40
// ===========================================================================
41
// class declarations
42
// ===========================================================================
43
class
BinaryInputDevice
;
44
45
46
// ===========================================================================
47
// class definitions
48
// ===========================================================================
55
class
SUMOSAXAttributesImpl_Binary
:
public
SUMOSAXAttributes
{
56
public
:
63
SUMOSAXAttributesImpl_Binary
(
const
std::map<int, std::string>& predefinedTagsMML,
64
const
std::string& objectType,
65
BinaryInputDevice
* in);
66
67
69
virtual
~SUMOSAXAttributesImpl_Binary
();
70
71
72
73
76
82
bool
hasAttribute
(
int
id
)
const
;
83
84
100
bool
getBool
(
int
id
)
const
;
101
102
118
int
getInt
(
int
id
)
const
;
119
120
136
SUMOLong
getLong
(
int
id
)
const
;
137
138
151
std::string
getString
(
int
id
)
const
;
152
165
std::string
getStringSecure
(
int
id
,
166
const
std::string& def)
const
;
167
168
184
SUMOReal
getFloat
(
int
id
)
const
;
185
186
190
bool
hasAttribute
(
const
std::string&
id
)
const
;
191
192
208
SUMOReal
getFloat
(
const
std::string&
id
)
const
;
209
210
220
std::string
getStringSecure
(
const
std::string&
id
,
221
const
std::string& def)
const
;
222
//}
223
224
231
SumoXMLEdgeFunc
getEdgeFunc
(
bool
& ok)
const
;
232
233
240
SumoXMLNodeType
getNodeType
(
bool
& ok)
const
;
241
242
249
RGBColor
getColor
()
const
;
250
251
257
PositionVector
getShape
(
int
attr)
const
;
258
259
265
Boundary
getBoundary
(
int
attr)
const
;
266
272
std::vector<std::string>
getStringVector
(
int
attr)
const
;
273
279
std::vector<SUMOReal>
getFloatVector
(
int
attr)
const
;
280
281
289
std::string
getName
(
int
attr)
const
;
290
291
296
void
serialize
(std::ostream& os)
const
;
297
298
299
private
:
301
const
std::map<int, std::string>&
myAttrIds
;
302
304
std::set<int>
myAttrs
;
305
307
std::map<int, char>
myCharValues
;
308
310
std::map<int, int>
myIntValues
;
311
313
std::map<int, SUMOReal>
myFloatValues
;
314
316
std::map<int, std::string>
myStringValues
;
317
319
std::map<int, PositionVector>
myPositionVectors
;
320
321
322
private
:
324
SUMOSAXAttributesImpl_Binary
(
const
SUMOSAXAttributesImpl_Binary
& src);
325
327
SUMOSAXAttributesImpl_Binary
&
operator=
(
const
SUMOSAXAttributesImpl_Binary
& src);
328
329
330
};
331
332
333
#endif
334
335
/****************************************************************************/
336
home
gladk
tmp
05
sumo-0.17.1~dfsg
src
utils
xml
SUMOSAXAttributesImpl_Binary.h
Generated on Sun Jun 16 2013 07:08:32 for SUMO - Simulation of Urban MObility by
1.8.1.2