osurs  0.0.1
Functions
getter.c File Reference

Access network structures. More...

#include <stdio.h>
#include <string.h>
#include "osurs/network.h"
Include dependency graph for getter.c:

Functions

Nodeget_node (Network *network, const char *id)
 Get the node struct. More...
 
Vehicleget_vehicle (Network *network, const char *id)
 Get the vehicle struct. More...
 
Compositionget_composition (Network *network, const char *id)
 Get the composition struct. More...
 
Routeget_route (Network *network, const char *id)
 Get the route struct. More...
 
Tripget_trip (Route *route, const char *id)
 Get the trip struct. More...
 

Detailed Description

Access network structures.

Date
: 2022-09-30
Author
: Merlin Unterfinger

Function Documentation

◆ get_composition()

Composition* get_composition ( Network network,
const char *  id 
)

Get the composition struct.

Parameters
networkAn network to get the composition from.
idThe identifier of the composition.
Returns
Returns the composition.

◆ get_node()

Node* get_node ( Network network,
const char *  id 
)

Get the node struct.

Parameters
networkAn network to get the node from.
idThe identifier of the node.
Returns
Returns the node.

◆ get_route()

Route* get_route ( Network network,
const char *  id 
)

Get the route struct.

Parameters
networkAn network to get the route from.
idThe identifier of the route.
Returns
Returns the route.

◆ get_trip()

Trip* get_trip ( Route route,
const char *  id 
)

Get the trip struct.

Parameters
routeA route to get the trip from.
idThe identifier of the trip.
Returns
Trip* Returns the trip.

◆ get_vehicle()

Vehicle* get_vehicle ( Network network,
const char *  id 
)

Get the vehicle struct.

Parameters
networkAn network to get the vehicle from.
idThe identifier of the vehicle.
Returns
Returns the vehicle.