osurs
0.0.1
|
Command line interface for converting transit schedules and printing networks. More...
Functions | |
int | convert_schedule (const char *schedule_file, const char *vehicle_file, const char *network_file) |
Convert a transit schedule from the Matsim format to the osurs format. More... | |
int | print_network_from_file (const char *network_file, const char *reservations_file) |
Print the network from a file to stdout. More... | |
int | main (int argc, char *argv[]) |
Main function for the command line interface. More... | |
Command line interface for converting transit schedules and printing networks.
This file contains functions for converting transit schedules from the Matsim format to the osurs format, and for printing the network from a file to stdout. The file also contains the main function for the command line interface, which allows the user to specify commands and arguments to invoke these functions.
int convert_schedule | ( | const char * | schedule_file, |
const char * | vehicle_file, | ||
const char * | network_file | ||
) |
Convert a transit schedule from the Matsim format to the osurs format.
schedule_file | The Matsim schedule file to convert. |
vehicle_file | The Matsim vehicle file to convert. |
network_file | The output osurs network file. |
int main | ( | int | argc, |
char * | argv[] | ||
) |
Main function for the command line interface.
Usage: cli [command] [arguments]
Available commands: convert [matsim_schedule_file] [matsim_vehicle_file] [osurs_network_file] print [osurs_network_file] [optional osurs_reservations_file]
argc | Number of arguments. |
argv | Array of arguments. |
int print_network_from_file | ( | const char * | network_file, |
const char * | reservations_file | ||
) |
Print the network from a file to stdout.
network_file | The osurs network file to print. |
reservations_file | The osurs reservations file to print. |