Expand description
§Model Railroad Time Table generating program
The Time Table library is a port of the Time Table V2 program that is part of the Model Railroad System. That program is partly in C++ (low-level data structures) and part in Tcl/Tk (GUI main program). This is mostly just a port of the C++ code. This program was inspired by chapter 8 of the book How to Operate Your Model Railroad by Bruce A. Chubb. I strongly recommend reading this chapter fully before using this program. This program implements the methods described in this chapter, in an automated fashion.
The time tables this library creates are LaTeX source. You will need to install the LaTeX system to process the LaTeX source into a PDF file that can then be printed.
There are two example programs. One loads the time table for the fantasy model railroad I have wanted to build but never managed to. The other is a a time table I created to test center station (bi-directional) table generation.
- Library Junction and Bench Station This is my fantasy model railroad.
- Valley Flyer This is the “real” weekend Amtrak Valley Flyer schedule between Greenfield, MA and Springfield, MA.
Modules§
- cab
- Cab class and support types.
- primio
- Primitive I/O – Read functions for selected “primitive” types
- station
- Station and support classes.
- train
- The train class implements a running train and lists the stations it passes (and possibly stops at).
Structs§
- Station
Times - Station times class, used by the LaTeX generator methods.
- Time
Table System - This is the main Time Table Class.
Enums§
Functions§
- String
List From String - Convert a flat string to a list of strings.
- String
List ToString - Convert a list of strings to a flat string.
Type Aliases§
- Double
Vector - A Vector of doubles.
- Option
Hash Map - Option hash map, used for Print options.
- String
List - List of strings.
- Train
List - List of trains.
- Train
Station Times - Map of station times, indexed by train number.
- Train
Times AtStation - Map of maps of station times, indexed by station index.