GRASS GIS 8 Programmer's Manual  8.2.2dev(2023)-3d2c704037
ref.c
Go to the documentation of this file.
1 
2 /****************************************************************************
3  *
4  * MODULE: imagery library
5  * AUTHOR(S): Original author(s) name(s) unknown - written by CERL
6  * PURPOSE: Image processing library
7  * COPYRIGHT: (C) 1999, 2005 by the GRASS Development Team
8  *
9  * This program is free software under the GNU General Public
10  * License (>=v2). Read the file COPYING that comes with GRASS
11  * for details.
12  *
13  *****************************************************************************/
14 
15 /***********************************************************
16 * I_fopen_group_ref_new (group)
17 * I_fopen_group_ref_old (group)
18 *
19 * fopen() the imagery group reference file (containing the number
20 * of files and the names of the cell files which comprise
21 * the group)
22 **********************************************************/
23 #include <grass/imagery.h>
24 
25 FILE *I_fopen_group_ref_new(const char *group)
26 {
27  return I_fopen_group_file_new(group, "REF");
28 }
29 
30 FILE *I_fopen_group_ref_old(const char *group)
31 {
32  return I_fopen_group_file_old(group, "REF");
33 }
34 
35 FILE *I_fopen_group_ref_old2(const char *group, const char *mapset)
36 {
37  return I_fopen_group_file_old2(group, mapset, "REF");
38 }
39 
40 /*
41  FILE *
42  I_fopen_group_ref_append (
43  const char *group)
44  {
45  return I_fopen_group_file_append (group, "REF");
46  }
47  */
48 
49 FILE *I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
50 {
51  return I_fopen_subgroup_file_new(group, subgroup, "REF");
52 }
53 
54 FILE *I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
55 {
56  FILE *fd;
57 
58  fd = I_fopen_subgroup_file_old(group, subgroup, "REF");
59  return fd;
60 }
61 
62 FILE *I_fopen_subgroup_ref_old2(const char *group, const char *subgroup, const char *mapset)
63 {
64  FILE *fd;
65 
66  fd = I_fopen_subgroup_file_old2(group, subgroup, mapset, "REF");
67  return fd;
68 }
69 
FILE * I_fopen_group_file_old(const char *, const char *)
Open group file for reading.
Definition: fopen.c:105
FILE * I_fopen_subgroup_ref_new(const char *group, const char *subgroup)
Definition: ref.c:49
FILE * I_fopen_group_ref_old(const char *group)
Definition: ref.c:30
FILE * I_fopen_subgroup_file_old(const char *, const char *, const char *)
Definition: fopen.c:171
FILE * I_fopen_group_file_new(const char *, const char *)
Definition: fopen.c:70
FILE * I_fopen_subgroup_ref_old2(const char *group, const char *subgroup, const char *mapset)
Definition: ref.c:62
FILE * I_fopen_group_ref_old2(const char *group, const char *mapset)
Definition: ref.c:35
FILE * I_fopen_group_file_old2(const char *, const char *, const char *)
Open group file for reading.
Definition: fopen.c:121
FILE * I_fopen_group_ref_new(const char *group)
Definition: ref.c:25
FILE * I_fopen_subgroup_file_new(const char *, const char *, const char *)
Definition: fopen.c:127
FILE * I_fopen_subgroup_file_old2(const char *, const char *, const char *, const char *)
Definition: fopen.c:177
FILE * I_fopen_subgroup_ref_old(const char *group, const char *subgroup)
Definition: ref.c:54