GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-602118adcc
|
Imagery Library - List subgroup. More...
Go to the source code of this file.
Functions | |
char ** | list_subgroups (const char *group, const char *mapset, int *subgs_num) |
char ** | I_list_subgroups (const char *group, int *subgs_num) |
Get list of subgroups which a group contatins. More... | |
char ** | I_list_subgroups2 (const char *group, const char *mapset, int *subgs_num) |
Get list of subgroups which a group contatins. More... | |
int | I_list_subgroup (const char *group, const char *subgroup, const struct Ref *ref, FILE *fd) |
Prints maps in a subgroup (fancy version) More... | |
int | I_list_subgroup_simple (const struct Ref *ref, FILE *fd) |
Prints maps in a subgroup (simple version) More... | |
Imagery Library - List subgroup.
(C) 2001-2008,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.
Definition in file list_subgp.c.
int I_list_subgroup | ( | const char * | group, |
const char * | subgroup, | ||
const struct Ref * | ref, | ||
FILE * | fd | ||
) |
Prints maps in a subgroup (fancy version)
group | group name |
subgroup | subgroup name |
ref | group reference (set with I_get_subgroup_ref()) |
fd | where to print (typically stdout) |
Definition at line 81 of file list_subgp.c.
References _, Ref::file, I__list_group_name_fit(), Ref_Files::mapset, max, Ref_Files::name, and Ref::nfiles.
int I_list_subgroup_simple | ( | const struct Ref * | ref, |
FILE * | fd | ||
) |
Prints maps in a subgroup (simple version)
Same as I_list_subgroup(), but without all the fancy stuff. Prints one map per line in map@mapset form.
ref | group reference (set with I_get_subgroup_ref()) |
fd | where to print (typically stdout) |
Definition at line 134 of file list_subgp.c.
References I_list_group_simple().
char** I_list_subgroups | ( | const char * | group, |
int * | subgs_num | ||
) |
Get list of subgroups which a group contatins.
group | group name | |
[out] | subgs_num | number of subgroups which the group contains |
Definition at line 52 of file list_subgp.c.
References G_mapset(), and list_subgroups().
char** I_list_subgroups2 | ( | const char * | group, |
const char * | mapset, | ||
int * | subgs_num | ||
) |
Get list of subgroups which a group contatins.
group | group name | |
mapset | mapset name | |
[out] | subgs_num | number of subgroups which the group contains |
Definition at line 67 of file list_subgp.c.
References list_subgroups().
char** list_subgroups | ( | const char * | group, |
const char * | mapset, | ||
int * | subgs_num | ||
) |
Definition at line 18 of file list_subgp.c.
References G_file_name(), G_ls2(), G_lstat(), GPATH_MAX, I_find_group2(), and NULL.
Referenced by I_list_subgroups(), and I_list_subgroups2().