osurs
0.0.1
|
Input and output of networks and its structures. More...
#include "osurs/reserve.h"
Go to the source code of this file.
Functions | |
int | import_network (Network *network, const char *filename) |
Import a network to xml. More... | |
int | import_reservations (Network *network, const char *filename) |
Import reservations from xml. More... | |
int | export_network (Network *network, const char *filename) |
Export a network to xml. More... | |
int | export_reservations (Network *network, const char *filename) |
Export reservations of a network to xml. More... | |
int | import_matsim (Network *network, const char *schedule_file, const char *vehicle_file) |
void | print_node (Node *node, int indent) |
Print node. More... | |
void | print_composition (Composition *composition, int indent) |
Print composition. More... | |
void | print_vehicle (Vehicle *vehicle, int indent) |
Print vehicle. More... | |
void | print_stop (Stop *stop, int indent) |
Print stop. More... | |
void | print_trip (Trip *trip, int indent) |
Print trip. More... | |
void | print_route (Route *route, int indent) |
Print route. More... | |
void | print_network (Network *network) |
Print network. More... | |
void | print_connection (Connection *connection) |
Print connection. More... | |
void | print_reservation (Reservation *reservation, int indent) |
Print reservation. More... | |
void | print_seat (Seat *seat, int indent) |
Print seat. More... | |
void | print_seat_collection (SeatCollection *collection, int indent) |
Print seat collection. More... | |
Input and output of networks and its structures.
Printing osurs structures, importing and exporting networks, vehicles and reservations.
int export_network | ( | Network * | network, |
const char * | filename | ||
) |
Export a network to xml.
network | The network to export. |
filename | The file to create. |
int export_reservations | ( | Network * | network, |
const char * | filename | ||
) |
Export reservations of a network to xml.
network | The network to export the reservations. |
filename | The file to create. |
int import_matsim | ( | Network * | network, |
const char * | schedule_file, | ||
const char * | vehicle_file | ||
) |
network | |
schedule_file | |
vehicle_file |
int import_network | ( | Network * | network, |
const char * | filename | ||
) |
Import a network to xml.
network | The empty network to import the content to. |
filename | The file to import. |
int import_reservations | ( | Network * | network, |
const char * | filename | ||
) |
Import reservations from xml.
network | The network to import the reservations content to. |
filename | The file to import. |
void print_composition | ( | Composition * | composition, |
int | indent | ||
) |
Print composition.
composition | The composition struct to print. |
indent | The indent for printing. |
void print_connection | ( | Connection * | connection | ) |
Print connection.
connection | The connection struct to print. |
void print_network | ( | Network * | network | ) |
Print network.
network | The network struct to print. |
void print_node | ( | Node * | node, |
int | indent | ||
) |
Print node.
node | The node struct to print. |
indent | The indent for printing. |
void print_reservation | ( | Reservation * | reservation, |
int | indent | ||
) |
Print reservation.
reservation | The reservation struct to print. |
indent | The indent for printing. |
void print_route | ( | Route * | route, |
int | indent | ||
) |
Print route.
route | The route struct to print. |
indent | The indent for printing. |
void print_seat | ( | Seat * | seat, |
int | indent | ||
) |
Print seat.
seat | The seat struct to print. |
indent | The indent for printing. |
void print_seat_collection | ( | SeatCollection * | collection, |
int | indent | ||
) |
Print seat collection.
collection | The seat collection struct to print. |
indent | The indent for printing. |
void print_stop | ( | Stop * | stop, |
int | indent | ||
) |
Print stop.
stop | The stop struct to print. |
indent | The indent for printing. |
void print_trip | ( | Trip * | trip, |
int | indent | ||
) |
Print trip.
trip | The trip struct to print. |
indent | The indent for printing. |
void print_vehicle | ( | Vehicle * | vehicle, |
int | indent | ||
) |
Print vehicle.
vehicle | The vehicle struct to print. |
indent | The indent for printing. |