PGROUTING  3.2
get_check_data.h
Go to the documentation of this file.
1 /*PGR-GNU*****************************************************************
2 File: get_check_data.h
3 
4 Copyright (c) 2015 Celia Virginia Vergara Castillo
6 
7 ------
8 
9 This program is free software; you can redistribute it and/or modify
10 it under the terms of the GNU General Public License as published by
11 the Free Software Foundation; either version 2 of the License, or
12 (at your option) any later version.
13 
14 This program is distributed in the hope that it will be useful,
15 but WITHOUT ANY WARRANTY; without even the implied warranty of
16 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 GNU General Public License for more details.
18 
19 You should have received a copy of the GNU General Public License
20 along with this program; if not, write to the Free Software
21 Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 
23  ********************************************************************PGR-GNU*/
24 
25 #ifndef INCLUDE_C_COMMON_GET_CHECK_DATA_H_
26 #define INCLUDE_C_COMMON_GET_CHECK_DATA_H_
27 #pragma once
28 
30 #include "c_types/column_info_t.h"
31 
41 bool column_found(int colNumber);
42 
55  Column_info_t info[],
56  int info_size);
57 
69 
81 
93 
106 
119 
135 char pgr_SPI_getChar(
136  HeapTuple *tuple,
137  TupleDesc *tupdesc,
138  Column_info_t info,
139  bool strict,
140  char default_value);
141 
158 int64_t*
160  HeapTuple *tuple,
161  TupleDesc *tupdesc,
162  Column_info_t info,
163  uint64_t *the_size);
164 
179 int64_t pgr_SPI_getBigInt(
180  HeapTuple *tuple,
181  TupleDesc *tupdesc,
182  Column_info_t info);
183 
198 double pgr_SPI_getFloat8(
199  HeapTuple *tuple,
200  TupleDesc *tupdesc,
201  Column_info_t info);
213 char* pgr_SPI_getText(
214  HeapTuple *tuple,
215  TupleDesc *tupdesc,
216  Column_info_t info);
217 
218 
219 #endif // INCLUDE_C_COMMON_GET_CHECK_DATA_H_
column_found
bool column_found(int colNumber)
Function will check whether the colNumber represent any specific column or NULL (SPI_ERROR_NOATTRIBUT...
Definition: get_check_data.c:36
postgres_connection.h
pgr_check_char_type
void pgr_check_char_type(Column_info_t info)
The function check whether column type is CHAR or not.
Definition: get_check_data.c:113
pgr_check_any_integer_type
void pgr_check_any_integer_type(Column_info_t info)
The function check whether column type is ANY-INTEGER or not.
Definition: get_check_data.c:127
pgr_SPI_getText
char * pgr_SPI_getText(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)
Function returns the string representation of the value of specified column.
Definition: get_check_data.c:293
pgr_SPI_getBigInt
int64_t pgr_SPI_getBigInt(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)
Function returns the value of specified column in integer type.
Definition: get_check_data.c:216
pgr_check_any_integerarray_type
void pgr_check_any_integerarray_type(Column_info_t info)
The function check whether column type is ANY-INTEGER-ARRAY or not.
Definition: get_check_data.c:138
pgr_check_boolean_type
void pgr_check_boolean_type(Column_info_t info)
pgr_SPI_getBigIntArr
int64_t * pgr_SPI_getBigIntArr(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, uint64_t *the_size)
Function returns the values of specified columns in array.
Definition: get_check_data.c:196
pgr_check_text_type
void pgr_check_text_type(Column_info_t info)
The function check whether column type is TEXT or not.
Definition: get_check_data.c:120
pgr_SPI_getFloat8
double pgr_SPI_getFloat8(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)
Function returns the value of specified column in double type.
Definition: get_check_data.c:246
column_info_t.h
pgr_fetch_column_info
void pgr_fetch_column_info(Column_info_t info[], int info_size)
Function tells expected type of each column and then check the correspondence type of each column.
Definition: get_check_data.c:78
pgr_check_any_numerical_type
void pgr_check_any_numerical_type(Column_info_t info)
The function check whether column type is ANY-NUMERICAL.
Definition: get_check_data.c:148
Column_info_t
Definition: column_info_t.h:49
pgr_SPI_getChar
char pgr_SPI_getChar(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, bool strict, char default_value)
Function return the value of specified column in char type.
Definition: get_check_data.c:170