osurs  0.0.1
Data Fields
reservation_t Struct Reference

A reservation. More...

#include <types.h>

Collaboration diagram for reservation_t:
Collaboration graph
[legend]

Data Fields

char id [37]
 
int res_id
 
int seats
 
struct stop_torig
 
struct stop_tdest
 
struct trip_ttrip
 

Detailed Description

A reservation.

A reservation is a booked connection. The booked seats have to be smaller or equal to the available seats.

Field Documentation

◆ dest

struct stop_t* reservation_t::dest

The orig stop of the reservation.

◆ id

char reservation_t::id[37]

Automatically generated UUID of the reservation.

◆ orig

struct stop_t* reservation_t::orig

The orig stop of the reservation.

◆ res_id

int reservation_t::res_id

Reservation id.

◆ seats

int reservation_t::seats

Reserved seats.

◆ trip

struct trip_t* reservation_t::trip

The trip on which the reservation is placed.


The documentation for this struct was generated from the following file: