GRASS GIS 7 Programmer's Manual  7.7.svn(2018)-r73561
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
sigsetfile.c File Reference

Imagery Library - Signature file functions (statistics for i.smap) More...

#include <string.h>
#include <grass/gis.h>
#include <grass/imagery.h>
#include <grass/glocale.h>
Include dependency graph for sigsetfile.c:

Go to the source code of this file.

Functions

FILE * I_fopen_sigset_file_new (const char *group, const char *subgroup, const char *name)
 Create new signiture file in given group/subgroup. More...
 
FILE * I_fopen_sigset_file_old (const char *group, const char *subgroup, const char *name)
 Open existing signiture file. More...
 

Detailed Description

Imagery Library - Signature file functions (statistics for i.smap)

(C) 2001-2011, 2013 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
USA CERL

Definition in file sigsetfile.c.

Function Documentation

FILE* I_fopen_sigset_file_new ( const char *  group,
const char *  subgroup,
const char *  name 
)

Create new signiture file in given group/subgroup.

Note: Prints warning on error and returns NULL.

Parameters
groupname of group
subgroupname of subgroup
namename of signiture file
Returns
pointer to FILE
NULL on error

Definition at line 32 of file sigsetfile.c.

References _, fd, G__make_mapset_element_misc(), G_fopen_new_misc(), G_mapset(), G_name_is_fully_qualified(), G_warning(), GMAPSET_MAX, GNAME_MAX, GPATH_MAX, and NULL.

FILE* I_fopen_sigset_file_old ( const char *  group,
const char *  subgroup,
const char *  name 
)

Open existing signiture file.

Parameters
groupname of group (may be fully qualified)
subgroupname of subgroup
namename of signiture file
Returns
pointer to FILE*
NULL on error

Definition at line 74 of file sigsetfile.c.

References fd, G_fopen_old_misc(), G_unqualified_name(), GMAPSET_MAX, GNAME_MAX, GPATH_MAX, and NULL.