navit  0.5.3-trunk
xml_state Struct Reference

State for the XML parser. More...

Data Fields

GListmessages
 
GListtagstack
 
int is_valid
 
int is_opened
 
struct traffic_pointat
 
struct traffic_pointfrom
 
struct traffic_pointto
 
struct traffic_pointvia
 
struct traffic_pointnot_via
 
struct traffic_locationlocation
 
char * location_txt_data
 
GListsi
 
GListevents
 

Detailed Description

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.

Field Documentation

◆ at

struct traffic_point* xml_state::at

The point for a point location, NULL for linear locations.

Referenced by traffic_xml_end().

◆ events

GList* xml_state::events

The events for the next message.

Referenced by traffic_xml_end().

◆ from

struct traffic_point* xml_state::from

The start of a linear location, or a point before at.

Referenced by traffic_xml_end().

◆ is_opened

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().

◆ is_valid

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().

◆ location

struct traffic_location* xml_state::location

The location to which the next message refers.

Referenced by traffic_xml_end().

◆ location_txt_data

char* xml_state::location_txt_data

Persisted location data in txtfile map format.

Referenced by traffic_xml_end().

◆ messages

GList* xml_state::messages

Messages read so far

Referenced by traffic_get_messages_from_parsed_xml(), and traffic_xml_end().

◆ not_via

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().

◆ si

GList* xml_state::si

Supplementary information items for the next event.

Referenced by traffic_xml_end(), and traffic_xml_start().

◆ tagstack

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().

◆ to

struct traffic_point* xml_state::to

The end of a linear location, or a point after at.

Referenced by traffic_xml_end().

◆ via

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().


The documentation for this struct was generated from the following file: