![]() |
vrpRouting
0.3
|
#include "c_common/vroom/time_windows_input.h"
Go to the source code of this file.
Functions | |
static void | db_get_time_windows (char *time_windows_sql, Vroom_time_window_t **time_windows, size_t *total_time_windows, Column_info_t *info, const int column_count, bool is_shipment, bool is_plain) |
static void | fetch_time_windows (HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t *info, Vroom_time_window_t *time_window, bool is_shipment, bool is_plain) |
void | get_vroom_shipments_time_windows (char *sql, Vroom_time_window_t **rows, size_t *total_rows, bool is_plain) |
Reads the VROOM shipments time windows. More... | |
void | get_vroom_time_windows (char *sql, Vroom_time_window_t **rows, size_t *total_rows, bool is_plain) |
Reads the VROOM time windows. More... | |
|
static |
Definition at line 121 of file time_windows_input.c.
References fetch_time_windows(), PGR_DBG, pgr_fetch_column_info(), pgr_SPI_cursor_open(), pgr_SPI_prepare(), and time_msg().
Referenced by get_vroom_shipments_time_windows(), and get_vroom_time_windows().
|
static |
Definition at line 71 of file time_windows_input.c.
References get_Duration(), get_Idx(), get_Kind(), get_PositiveTTimestamp(), Vroom_time_window_t::id, Vroom_time_window_t::kind, Vroom_time_window_t::tw_close, and Vroom_time_window_t::tw_open.
Referenced by db_get_time_windows().
void get_vroom_shipments_time_windows | ( | char * | sql, |
Vroom_time_window_t ** | rows, | ||
size_t * | total_rows, | ||
bool | is_plain | ||
) |
Reads the VROOM shipments time windows.
[in] | sql | SQL query to execute |
[out] | rows | C Container that holds the data |
[out] | total_rows | Total rows recieved |
Definition at line 239 of file time_windows_input.c.
References ANY_INTEGER, CHAR1, Column_info_t::colNumber, db_get_time_windows(), Column_info_t::eType, INTEGER, Column_info_t::name, Column_info_t::strict, TIMESTAMP, and Column_info_t::type.
Referenced by process().
void get_vroom_time_windows | ( | char * | sql, |
Vroom_time_window_t ** | rows, | ||
size_t * | total_rows, | ||
bool | is_plain | ||
) |
Reads the VROOM time windows.
[in] | sql | SQL query to execute |
[out] | rows | C Container that holds the data |
[out] | total_rows | Total rows recieved |
Definition at line 204 of file time_windows_input.c.
References ANY_INTEGER, Column_info_t::colNumber, db_get_time_windows(), Column_info_t::eType, INTEGER, Column_info_t::name, Column_info_t::strict, TIMESTAMP, and Column_info_t::type.
Referenced by process().