portable.c File Reference

#include <string.h>
#include <grass/gis.h>
#include <grass/portable.h>
#include <grass/Vect.h>

Include dependency graph for portable.c:

Go to the source code of this file.

Functions

int dig__fread_port_D (double *buf, int cnt, GVFILE *fp)
int dig__fread_port_F (float *buf, int cnt, GVFILE *fp)
int dig__fread_port_L (long *buf, int cnt, GVFILE *fp)
int dig__fread_port_I (int *buf, int cnt, GVFILE *fp)
int dig__fread_port_S (short *buf, int cnt, GVFILE *fp)
int dig__fread_port_C (char *buf, int cnt, GVFILE *fp)
int dig__fread_port_P (plus_t *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_D (double *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_F (float *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_L (long *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_I (int *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_S (short *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_P (plus_t *buf, int cnt, GVFILE *fp)
int dig__fwrite_port_C (char *buf, int cnt, GVFILE *fp)
void dig_init_portable (struct Port_info *port, int byte_order)
int dig_set_cur_port (struct Port_info *port)
int dig__byte_order_out ()

Variables

Port_info * Cur_Head


Function Documentation

int dig__byte_order_out (  ) 

Definition at line 696 of file portable.c.

References DOUBLE_ORDER.

Referenced by V1_open_new_nat(), Vect_cidx_save(), Vect_save_spatial_index(), and Vect_save_topo().

int dig__fread_port_C ( char *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 358 of file portable.c.

References dig_fread().

Referenced by dig__read_head(), dig_Rd_P_line(), dig_Rd_Plus_head(), dig_Rd_spindx_head(), dig_read_cidx_head(), main(), V1_delete_line_nat(), and Vect__Read_line_nat().

int dig__fread_port_D ( double *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 60 of file portable.c.

References Cur_Head, and dig_fread().

Referenced by dig_Rd_P_area(), dig_Rd_P_isle(), dig_Rd_P_line(), dig_Rd_P_node(), dig_Rd_Plus_head(), main(), and rtree_read_branch().

int dig__fread_port_F ( float *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 96 of file portable.c.

References Cur_Head, and dig_fread().

Referenced by dig_Rd_P_node(), and main().

int dig__fread_port_I ( int *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 208 of file portable.c.

References Cur_Head, dig_fread(), INT_ORDER, and NATIVE_INT.

Referenced by dig__fread_port_P(), dig_Rd_P_line(), dig_read_cidx(), dig_read_cidx_head(), main(), rtree_read_branch(), rtree_read_node(), and Vect__Read_line_nat().

int dig__fread_port_L ( long *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 133 of file portable.c.

References Cur_Head, dig_fread(), LONG_ORDER, and NATIVE_LONG.

Referenced by dig__read_head(), dig_Rd_P_line(), dig_Rd_Plus_head(), dig_Rd_spindx_head(), dig_read_cidx_head(), and main().

int dig__fread_port_P ( plus_t *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 371 of file portable.c.

References dig__fread_port_I().

Referenced by dig_Rd_P_area(), dig_Rd_P_isle(), dig_Rd_P_line(), dig_Rd_P_node(), and dig_Rd_Plus_head().

int dig__fread_port_S ( short *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 283 of file portable.c.

References Cur_Head, dig_fread(), NATIVE_SHORT, and SHORT_ORDER.

Referenced by main(), and Vect__Read_line_nat().

int dig__fwrite_port_C ( char *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 601 of file portable.c.

References dig_fwrite().

Referenced by dig__write_head(), dig_Wr_P_line(), dig_Wr_Plus_head(), dig_Wr_spindx_head(), dig_write_cidx_head(), main(), V1__rewrite_line_nat(), and V1_delete_line_nat().

int dig__fwrite_port_D ( double *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 385 of file portable.c.

References Cur_Head, and dig_fwrite().

Referenced by dig_Wr_P_area(), dig_Wr_P_isle(), dig_Wr_P_line(), dig_Wr_P_node(), dig_Wr_Plus_head(), main(), rtree_write_branch(), and V1__rewrite_line_nat().

int dig__fwrite_port_F ( float *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 416 of file portable.c.

References Cur_Head, and dig_fwrite().

Referenced by dig_Wr_P_node(), and main().

int dig__fwrite_port_I ( int *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 494 of file portable.c.

References Cur_Head, dig_fwrite(), and NATIVE_INT.

Referenced by dig__fwrite_port_P(), dig_Wr_P_line(), dig_write_cidx(), dig_write_cidx_head(), main(), rtree_write_branch(), rtree_write_node(), and V1__rewrite_line_nat().

int dig__fwrite_port_L ( long *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 446 of file portable.c.

References Cur_Head, dig_fwrite(), and NATIVE_LONG.

Referenced by dig__write_head(), dig_Wr_P_line(), dig_Wr_Plus_head(), dig_Wr_spindx_head(), dig_write_cidx_head(), and main().

int dig__fwrite_port_P ( plus_t *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 593 of file portable.c.

References dig__fwrite_port_I().

Referenced by dig_Wr_P_area(), dig_Wr_P_isle(), dig_Wr_P_line(), dig_Wr_P_node(), and dig_Wr_Plus_head().

int dig__fwrite_port_S ( short *  buf,
int  cnt,
GVFILE *  fp 
)

Definition at line 543 of file portable.c.

References Cur_Head, dig_fwrite(), and NATIVE_SHORT.

Referenced by main(), and V1__rewrite_line_nat().

void dig_init_portable ( struct Port_info *  port,
int  byte_order 
)

Definition at line 613 of file portable.c.

References DOUBLE_ORDER, FALSE, FLOAT_ORDER, INT_ORDER, LONG_ORDER, SHORT_ORDER, and TRUE.

Referenced by dig__read_head(), dig_Rd_Plus_head(), dig_Rd_spindx_head(), dig_read_cidx_head(), main(), V1_open_new_nat(), V1_open_old_nat(), Vect_cidx_save(), Vect_save_spatial_index(), and Vect_save_topo().

int dig_set_cur_port ( struct Port_info *  port  ) 

Definition at line 689 of file portable.c.

References Cur_Head.

Referenced by dig__read_head(), dig__write_head(), dig_load_plus(), dig_Rd_Plus_head(), dig_Rd_spindx_head(), dig_read_cidx(), dig_read_cidx_head(), dig_read_spidx(), dig_Wr_Plus_head(), dig_Wr_spindx_head(), dig_write_cidx(), dig_write_cidx_head(), dig_write_plus_file(), dig_write_spidx(), main(), V1__rewrite_line_nat(), V1_delete_line_nat(), and Vect__Read_line_nat().


Variable Documentation

struct Port_info* Cur_Head

Definition at line 25 of file portable.c.

Referenced by dig__fread_port_D(), dig__fread_port_F(), dig__fread_port_I(), dig__fread_port_L(), dig__fread_port_S(), dig__fwrite_port_D(), dig__fwrite_port_F(), dig__fwrite_port_I(), dig__fwrite_port_L(), dig__fwrite_port_S(), and dig_set_cur_port().


Generated on Fri Nov 21 11:03:01 2008 for GRASS by  doxygen 1.5.1