GRASS GIS 7 Programmer's Manual  7.5.svn(2017)-r71933
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
xdrtable.c File Reference

DBMI Library (base) - external data representation (table) More...

#include <grass/dbmi.h>
#include <grass/glocale.h>
#include "macros.h"
Include dependency graph for xdrtable.c:

Go to the source code of this file.

Functions

int db__send_table_definition (dbTable *table)
 Send table definition. More...
 
int db__recv_table_definition (dbTable **table)
 Receive table definition. More...
 
int db__send_table_data (dbTable *table)
 Send table data. More...
 
int db__recv_table_data (dbTable *table)
 Receive table data. More...
 

Detailed Description

DBMI Library (base) - external data representation (table)

(C) 1999-2009, 2011 by the GRASS Development Team

This program is free software under the GNU General Public License (>=v2). Read the file COPYING that comes with GRASS for details.

Author
Joel Jones (CERL/UIUC), Radim Blazek, Brad Douglas, Markus Neteler
Doxygenized by Martin Landa <landa.martin gmail.com> (2011)

Definition in file xdrtable.c.

Function Documentation

int db__recv_table_data ( dbTable table)

Receive table data.

Parameters
table
Returns

Definition at line 101 of file xdrtable.c.

References _, db_error(), DB_FAILED, db_get_table_column(), DB_OK, DB_RECV_COLUMN_VALUE, DB_RECV_INT, and _db_table::numColumns.

int db__recv_table_definition ( dbTable **  table)
int db__send_table_data ( dbTable table)

Send table data.

Parameters
table
Returns

Definition at line 81 of file xdrtable.c.

References db_get_table_column(), DB_OK, DB_SEND_COLUMN_VALUE, DB_SEND_INT, and _db_table::numColumns.

int db__send_table_definition ( dbTable table)

Send table definition.

Parameters
tablepointer to dbTable
Returns

Definition at line 26 of file xdrtable.c.

References _db_table::columns, DB_OK, DB_SEND_COLUMN_DEFINITION, DB_SEND_INT, DB_SEND_STRING, _db_table::description, _db_table::numColumns, _db_table::priv_delete, _db_table::priv_insert, and _db_table::tableName.