GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <string.h>
#include <grass/gis.h>
#include <grass/Vect.h>
Go to the source code of this file.
Functions | |
void | port_init (void) |
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 | |
int | nat_dbl |
int | nat_flt |
int | nat_lng |
int | nat_int |
int | nat_shrt |
int | dbl_order |
int | flt_order |
int | lng_order |
int | int_order |
int | shrt_order |
unsigned char | dbl_cnvrt [sizeof(double)] |
unsigned char | flt_cnvrt [sizeof(float)] |
unsigned char | lng_cnvrt [sizeof(long)] |
unsigned char | int_cnvrt [sizeof(int)] |
unsigned char | shrt_cnvrt [sizeof(short)] |
struct Port_info * | Cur_Head |
int dig__byte_order_out | ( | ) |
Definition at line 646 of file portable.c.
References dbl_order.
Referenced by V1_open_new_nat(), V2_close_ogr(), Vect_cidx_save(), Vect_save_spatial_index(), and Vect_save_topo().
Definition at line 347 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(), V1_restore_line_nat(), and V2_open_old_ogr().
Definition at line 75 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().
Definition at line 106 of file portable.c.
References Cur_Head, and dig_fread().
Referenced by dig_Rd_P_node(), and main().
Definition at line 207 of file portable.c.
References Cur_Head, dig_fread(), int, int_order, and nat_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 V2_open_old_ogr().
Definition at line 137 of file portable.c.
References Cur_Head, dig_fread(), lng_order, and nat_lng.
Referenced by dig__read_head(), dig_Rd_P_line(), dig_Rd_Plus_head(), dig_Rd_spindx_head(), dig_read_cidx_head(), main(), and V2_open_old_ogr().
Definition at line 359 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().
Definition at line 277 of file portable.c.
References Cur_Head, dig_fread(), nat_shrt, and shrt_order.
Referenced by main().
Definition at line 558 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(), V1_delete_line_nat(), V1_restore_line_nat(), and V2_close_ogr().
Definition at line 370 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().
Definition at line 396 of file portable.c.
References Cur_Head, and dig_fwrite().
Referenced by dig_Wr_P_node(), and main().
Definition at line 465 of file portable.c.
References Cur_Head, dig_fwrite(), int, int_order, and nat_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(), V1__rewrite_line_nat(), and V2_close_ogr().
Definition at line 422 of file portable.c.
References Cur_Head, dig_fwrite(), lng_order, and nat_lng.
Referenced by dig__write_head(), dig_Wr_P_line(), dig_Wr_Plus_head(), dig_Wr_spindx_head(), dig_write_cidx_head(), main(), and V2_close_ogr().
Definition at line 552 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().
Definition at line 508 of file portable.c.
References Cur_Head, dig_fwrite(), nat_shrt, and shrt_order.
Referenced by main(), and V1__rewrite_line_nat().
void dig_init_portable | ( | struct Port_info * | port, |
int | byte_order | ||
) |
Definition at line 568 of file portable.c.
References dbl_cnvrt, dbl_order, FALSE, flt_cnvrt, flt_order, int_cnvrt, int_order, lng_cnvrt, lng_order, port_init(), shrt_cnvrt, shrt_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(), V2_close_ogr(), V2_open_old_ogr(), Vect_cidx_save(), Vect_save_spatial_index(), and Vect_save_topo().
int dig_set_cur_port | ( | struct Port_info * | port | ) |
Definition at line 640 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(), V1_restore_line_nat(), V2_close_ogr(), and V2_open_old_ogr().
void port_init | ( | void | ) |
Definition at line 148 of file port_init.c.
References dbl_cnvrt, dbl_order, flt_cnvrt, flt_order, G_fatal_error(), int_cnvrt, int_order, lng_cnvrt, lng_order, nat_dbl, nat_flt, nat_int, nat_lng, nat_shrt, shrt_cnvrt, and shrt_order.
Referenced by dig_init_portable().
struct Port_info* Cur_Head |
Definition at line 42 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().
unsigned char dbl_cnvrt[sizeof(double)] |
Definition at line 91 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
int dbl_order |
Definition at line 85 of file port_init.c.
Referenced by dig__byte_order_out(), dig_init_portable(), main(), and port_init().
unsigned char flt_cnvrt[sizeof(float)] |
Definition at line 92 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
int flt_order |
Definition at line 86 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
unsigned char int_cnvrt[sizeof(int)] |
Definition at line 94 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
int int_order |
Definition at line 88 of file port_init.c.
Referenced by dig__fread_port_I(), dig__fwrite_port_I(), dig_init_portable(), main(), and port_init().
unsigned char lng_cnvrt[sizeof(long)] |
Definition at line 93 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
int lng_order |
Definition at line 87 of file port_init.c.
Referenced by dig__fread_port_L(), dig__fwrite_port_L(), dig_init_portable(), main(), and port_init().
int nat_dbl |
Definition at line 79 of file port_init.c.
Referenced by main(), and port_init().
int nat_flt |
Definition at line 80 of file port_init.c.
Referenced by main(), and port_init().
int nat_int |
Definition at line 82 of file port_init.c.
Referenced by dig__fread_port_I(), dig__fwrite_port_I(), main(), and port_init().
int nat_lng |
Definition at line 81 of file port_init.c.
Referenced by dig__fread_port_L(), dig__fwrite_port_L(), main(), and port_init().
int nat_shrt |
Definition at line 83 of file port_init.c.
Referenced by dig__fread_port_S(), dig__fwrite_port_S(), main(), and port_init().
unsigned char shrt_cnvrt[sizeof(short)] |
Definition at line 95 of file port_init.c.
Referenced by dig_init_portable(), main(), and port_init().
int shrt_order |
Definition at line 89 of file port_init.c.
Referenced by dig__fread_port_S(), dig__fwrite_port_S(), dig_init_portable(), main(), and port_init().