|
GRASS Programmer's Manual
6.5.svn(2014)-r66266
|
#include <string.h>#include <stdio.h>#include <stdlib.h>#include <grass/glocale.h>#include "G3d_intern.h"
Go to the source code of this file.
Functions | |
| void | SimpleErrorMessage (FILE *fd, const char *name, const char *mapset) |
| int | G3d_readHistory (const char *name, const char *mapset, struct History *hist) |
| read raster3d History file More... | |
| int | G3d_writeHistory (const char *name, struct History *hist) |
| write raster3d History file More... | |
| int G3d_readHistory | ( | const char * | name, |
| const char * | mapset, | ||
| struct History * | hist | ||
| ) |
read raster3d History file
This routine reads the History file for the raster3d file name in mapset into the History structure. A diagnostic message is printed and -1 is returned if there is an error reading the History file. Otherwise, 0 is returned. A warning message is printed if the file is incorrect.
| name | |
| mapset | |
| history |
Definition at line 63 of file g3dhistory.c.
References buf2, buff, fclose(), fd, G__name_is_fully_qualified(), G_ascii_check(), G_fopen_old(), G_getl(), G_zero(), SimpleErrorMessage(), sprintf(), xmapset, and xname.
| int G3d_writeHistory | ( | const char * | name, |
| struct History * | hist | ||
| ) |
write raster3d History file
This routine writes the History file for the raster3d file name in the current mapset from the History structure. A diagnostic message is printed and -1 is returned if there is an error writing the History file. Otherwise, 0 is returned. Note. The history structure should first be initialized using G_short_history.
| name | |
| history |
Definition at line 162 of file g3dhistory.c.
References buf, buf2, fclose(), fd, G__name_is_fully_qualified(), G_fopen_new(), sprintf(), xmapset, and xname.
| void SimpleErrorMessage | ( | FILE * | fd, |
| const char * | name, | ||
| const char * | mapset | ||
| ) |
Definition at line 37 of file g3dhistory.c.
References fclose(), G_warning(), and NULL.
Referenced by G3d_readHistory().