osurs  0.0.1
io.h
Go to the documentation of this file.
1 
12 #ifndef OSURS_IO_H_
13 #define OSURS_IO_H_
14 
15 #include "osurs/reserve.h"
16 
17 // io/import
18 
26 int import_network(Network *network, const char *filename);
27 
35 int import_reservations(Network *network, const char *filename);
36 
37 // io/export
38 
46 int export_network(Network *network, const char *filename);
47 
55 int export_reservations(Network *network, const char *filename);
56 
57 // io/matsim
58 
67 int import_matsim(Network *network, const char *schedule_file,
68  const char *vehicle_file);
69 
70 // io/print
71 
78 void print_node(Node *node, int indent);
79 
86 void print_composition(Composition *composition, int indent);
87 
94 void print_vehicle(Vehicle *vehicle, int indent);
95 
102 void print_stop(Stop *stop, int indent);
103 
110 void print_trip(Trip *trip, int indent);
111 
118 void print_route(Route *route, int indent);
119 
125 void print_network(Network *network);
126 
132 void print_connection(Connection *connection);
133 
140 void print_reservation(Reservation *reservation, int indent);
141 
148 void print_seat(Seat *seat, int indent);
149 
156 void print_seat_collection(SeatCollection *collection, int indent);
157 
158 #endif // OSURS_IO_H_
int import_reservations(Network *network, const char *filename)
Import reservations from xml.
Definition: import.c:62
int import_matsim(Network *network, const char *schedule_file, const char *vehicle_file)
Definition: matsim.c:38
void print_route(Route *route, int indent)
Print route.
Definition: print.c:75
void print_vehicle(Vehicle *vehicle, int indent)
Print vehicle.
Definition: print.c:27
void print_stop(Stop *stop, int indent)
Print stop.
Definition: print.c:45
int import_network(Network *network, const char *filename)
Import a network to xml.
Definition: import.c:37
int export_reservations(Network *network, const char *filename)
Export reservations of a network to xml.
Definition: export.c:200
void print_seat_collection(SeatCollection *collection, int indent)
Print seat collection.
Definition: print.c:185
void print_network(Network *network)
Print network.
Definition: print.c:94
int export_network(Network *network, const char *filename)
Export a network to xml.
Definition: export.c:16
void print_seat(Seat *seat, int indent)
Print seat.
Definition: print.c:40
void print_composition(Composition *composition, int indent)
Print composition.
Definition: print.c:22
void print_reservation(Reservation *reservation, int indent)
Print reservation.
Definition: print.c:32
void print_node(Node *node, int indent)
Print node.
Definition: print.c:16
void print_trip(Trip *trip, int indent)
Print trip.
Definition: print.c:54
void print_connection(Connection *connection)
Print connection.
Definition: print.c:147
Connection routing, checking seat availability and reservation.
A composition.
Definition: types.h:117
A connection.
Definition: types.h:142
A network.
Definition: types.h:130
A node.
Definition: types.h:38
A reservation.
Definition: types.h:163
A route.
Definition: types.h:91
A seat collection.
Definition: types.h:190
A seat.
Definition: types.h:178
A stop.
Definition: types.h:52
A trip.
Definition: types.h:71
A vehicle.
Definition: types.h:106