[][src]Module transit_model::netex_utils

Some utils to work with the NeTEx format, especially the frames.

Enums

FrameType

Type of NeTEx frame.

Functions

get_only_frame

Extract a frame of type frame_type from the map of frames. This function fails if none or more than one frame is found.

get_value_in_keylist

Returns the value from its key in a <KeyList> XML element (standard element of NeTEx format). You can convert the result into the type you want.

parse_frames_by_type

Returns a map of all frames (pointer to an Element) per FrameType. The input parameter must be an Element (XML element) that contains frames. Usually, it will be an element call <frames> in NeTEx standard.

Type Definitions

Frames

Map of frames, categorized by FrameType. Multiple frames of the same type can exist, they're stored in a Vec.