PGROUTING  2.4
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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
5 vicky_vergara@hotmail.com
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 SRC_COMMON_SRC_GET_CHECK_DATA_H_
26 #define SRC_COMMON_SRC_GET_CHECK_DATA_H_
27 #pragma once
28 
29 bool column_found(int colNumber);
30 
32  Column_info_t info[],
33  int info_size);
34 
40 
41 
42 char pgr_SPI_getChar(
43  HeapTuple *tuple,
44  TupleDesc *tupdesc,
45  Column_info_t info,
46  bool strict,
47  char default_value);
48 
49 int64_t pgr_SPI_getBigInt(
50  HeapTuple *tuple,
51  TupleDesc *tupdesc,
52  Column_info_t info);
53 
54 double pgr_SPI_getFloat8(
55  HeapTuple *tuple,
56  TupleDesc *tupdesc,
57  Column_info_t info);
58 
59 char* pgr_SPI_getText(
60  HeapTuple *tuple,
61  TupleDesc *tupdesc,
62  Column_info_t info);
63 
64 char* pgr_stradd(const char *a, const char *b);
65 
66 #endif // SRC_COMMON_SRC_GET_CHECK_DATA_H_
char * pgr_stradd(const char *a, const char *b)
void pgr_check_boolean_type(Column_info_t info)
void pgr_check_text_type(Column_info_t info)
void pgr_check_any_integer_type(Column_info_t info)
char pgr_SPI_getChar(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info, bool strict, char default_value)
void pgr_check_any_numerical_type(Column_info_t info)
void pgr_check_char_type(Column_info_t info)
char * pgr_SPI_getText(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)
under development
void pgr_fetch_column_info(Column_info_t info[], int info_size)
double pgr_SPI_getFloat8(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)
bool column_found(int colNumber)
int64_t pgr_SPI_getBigInt(HeapTuple *tuple, TupleDesc *tupdesc, Column_info_t info)