GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Vector library - history manipulation. More...
Go to the source code of this file.
Functions | |
int | Vect_hist_command (struct Map_info *Map) |
Write command info to history file. More... | |
int | Vect_hist_write (struct Map_info *Map, const char *str) |
Write string to history file. More... | |
char * | Vect_hist_read (char *s, int size, struct Map_info *Map) |
Reads one line from history file without newline character. More... | |
void | Vect_hist_rewind (struct Map_info *Map) |
Rewind history file. More... | |
int | Vect_hist_copy (struct Map_info *In, struct Map_info *Out) |
Copy history from one map to another. More... | |
Vector library - history manipulation.
Higher level functions for reading/writing/manipulating vectors.
(C) 2001-2009 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.
Definition in file hist.c.
int Vect_hist_command | ( | struct Map_info * | Map | ) |
Write command info to history file.
Map | pointer to Map_info structure |
Definition at line 29 of file hist.c.
References G_date(), G_debug(), G_gisdbase(), G_location(), G_mapset(), G_recreate_command(), G_whoami(), GPATH_MAX, and Vect_hist_write().
Copy history from one map to another.
In | input vector map | |
[out] | Out | output vector map |
Definition at line 131 of file hist.c.
References G_debug(), G_fseek(), G_ftell(), Map_info::hist_fp, NULL, and Vect_hist_write().
Referenced by Vect_close().
char* Vect_hist_read | ( | char * | s, |
int | size, | ||
struct Map_info * | Map | ||
) |
void Vect_hist_rewind | ( | struct Map_info * | Map | ) |
Rewind history file.
Map | vector map |
Definition at line 114 of file hist.c.
References G_debug(), Map_info::hist_fp, and NULL.
int Vect_hist_write | ( | struct Map_info * | Map, |
const char * | str | ||
) |
Write string to history file.
Map | pointer to Map_info structure |
str | string to write |
Definition at line 65 of file hist.c.
References G_debug(), and Map_info::hist_fp.
Referenced by Vect_hist_command(), and Vect_hist_copy().