cif 0.1.0

A CIF parser


To use this package, run the following command in your project's root directory:

Manual usage
Put the following dependency into your project's dependences section:

CIF

A parser for Common Interface File (CIF) files as used by Network Rail for transfering schedules from the Integrated Train Planning System (ITPS) to downstream users. This parser targets version 29 of CIF end user specification.

Format

A CIF file is composed of fixed length (80 bytes) records, the first two bytes denote what the record type is.

Layout

  • Header (HD)
  • TIPLOC changes
    • Insertions (TI)
    • Amendments (TA)
    • Deletions (TD)
  • Associations (AA)
  • Schedule
    • Basic schedule (BS)
    • Basic schedule extra details (BX)
    • Train specific note - not currently used (TN)
    • Origin location (LO)
    • Intermediate location (LI)
    • Changes en Route - optional, preceeds LI (CR)
    • Terminating location (LT)
    • Location specific note - optionally follows LO, LI and LT records - not currently used (LN)
  • Trailer record (ZZ)

Installation

TODO

Usage

An individual record can be parsed by passing the record as a string to the constructor of the object, for instance to parse a header record:

import cif : Header;

void main()
{
    auto header = Header("HDTPS.UCFCATE.PD1712080812172003DFTTISV       FA081217091218                    ");
}
Authors:
  • Scott Raine
Dependencies:
none
Versions:
0.1.1 2017-Dec-18
0.1.0 2017-Dec-18
~master 2017-Dec-18
Show all 3 versions
Download Stats:
  • 0 downloads today

  • 0 downloads this week

  • 0 downloads this month

  • 11 downloads total

Score:
0.3
Short URL:
cif.dub.pm