navit
0.5.3-trunk
|
State for the XML parser. More...
Data Fields | |
GList * | messages |
GList * | tagstack |
int | is_valid |
int | is_opened |
struct traffic_point * | at |
struct traffic_point * | from |
struct traffic_point * | to |
struct traffic_point * | via |
struct traffic_point * | not_via |
struct traffic_location * | location |
char * | location_txt_data |
GList * | si |
GList * | events |
State for the XML parser.
Several members of this struct are used to cache traffic data model objects until they can be incorporated in a message.
All struct traffic_point
members are reset to NULL when the location
member is set. Likewise, the si
member is reset to NULL when a new event is added. The location
and events
members are reset to NULL when a message is created.
struct traffic_point* xml_state::at |
The point for a point location, NULL for linear locations.
Referenced by traffic_xml_end().
GList* xml_state::events |
The events for the next message.
Referenced by traffic_xml_end().
struct traffic_point* xml_state::from |
The start of a linear location, or a point before at
.
Referenced by traffic_xml_end().
int xml_state::is_opened |
True if we have just opened an element; false if child elements have been opened and closed since
Referenced by event_class_new(), traffic_xml_end(), and traffic_xml_start().
int xml_state::is_valid |
Whether tagstack
represents a hierarchy of elements we recognize
Referenced by event_class_new(), traffic_xml_end(), and traffic_xml_start().
struct traffic_location* xml_state::location |
The location to which the next message refers.
Referenced by traffic_xml_end().
char* xml_state::location_txt_data |
Persisted location data in txtfile map format.
Referenced by traffic_xml_end().
GList* xml_state::messages |
Messages read so far
Referenced by traffic_get_messages_from_parsed_xml(), and traffic_xml_end().
struct traffic_point* xml_state::not_via |
A point NOT between from
and to
. Required on ring roads unless via
is used; cannot be used together with at
.
Referenced by traffic_xml_end().
GList* xml_state::si |
Supplementary information items for the next event.
Referenced by traffic_xml_end(), and traffic_xml_start().
GList* xml_state::tagstack |
Currently open tags (order is bottom to top)
Referenced by event_class_new(), traffic_xml_end(), traffic_xml_is_tagstack_valid(), and traffic_xml_start().
struct traffic_point* xml_state::to |
The end of a linear location, or a point after at
.
Referenced by traffic_xml_end().
struct traffic_point* xml_state::via |
A point between from
and to
. Required on ring roads unless not_via
is used; cannot be used together with at
.
Referenced by traffic_xml_end().