GRASS 8 Programmer's Manual 8.6.0dev(2026)-f6f2c534ea
Loading...
Searching...
No Matches
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.
 
int db__recv_table_definition (dbTable **table)
 Receive table definition.
 
int db__send_table_data (dbTable *table)
 Send table data.
 
int db__recv_table_data (dbTable *table)
 Receive table data.
 

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

◆ db__recv_table_data()

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.

◆ db__recv_table_definition()

int db__recv_table_definition ( dbTable **  table)

Receive table definition.

Parameters
[out]table
Returns

Definition at line 51 of file xdrtable.c.

References db_alloc_table(), db_get_error_code(), DB_OK, DB_RECV_COLUMN_DEFINITION, DB_RECV_INT, DB_RECV_STRING, NULL, and t.

◆ db__send_table_data()

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.

◆ db__send_table_definition()

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.