GRASS 8 Programmer's Manual 8.6.0dev(2026)-1d1e47ad9d
Loading...
Searching...
No Matches
list_subgp.c File Reference

Imagery Library - List subgroup. More...

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

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 contains.
 
char ** I_list_subgroups2 (const char *group, const char *mapset, int *subgs_num)
 Get list of subgroups which a group contains.
 
int I_list_subgroup (const char *group, const char *subgroup, const struct Ref *ref, FILE *fd)
 Prints maps in a subgroup (fancy version)
 
int I_list_subgroup_simple (const struct Ref *ref, FILE *fd)
 Prints maps in a subgroup (simple version)
 

Detailed Description

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.

Author
USA CERL

Definition in file list_subgp.c.

Function Documentation

◆ I_list_subgroup()

int I_list_subgroup ( const char group,
const char subgroup,
const struct Ref ref,
FILE fd 
)

Prints maps in a subgroup (fancy version)

Parameters
groupgroup name
subgroupsubgroup name
refgroup reference (set with I_get_subgroup_ref())
fdwhere to print (typically stdout)
Returns
0

Definition at line 79 of file list_subgp.c.

References _, AMI_STREAM< T >::AMI_STREAM(), UntypedStream::buf, I__list_group_name_fit(), max, and AMI_STREAM< T >::name().

◆ I_list_subgroup_simple()

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.

Parameters
refgroup reference (set with I_get_subgroup_ref())
fdwhere to print (typically stdout)
Returns
0

Definition at line 132 of file list_subgp.c.

References I_list_group_simple().

◆ I_list_subgroups()

char ** I_list_subgroups ( const char group,
int subgs_num 
)

Get list of subgroups which a group contains.

Parameters
groupgroup name
[out]subgs_numnumber of subgroups which the group contains
Returns
array of subgroup names

Definition at line 51 of file list_subgp.c.

References G_mapset(), and list_subgroups().

◆ I_list_subgroups2()

char ** I_list_subgroups2 ( const char group,
const char mapset,
int subgs_num 
)

Get list of subgroups which a group contains.

Parameters
groupgroup name
mapsetmapset name
[out]subgs_numnumber of subgroups which the group contains
Returns
array of subgroup names

Definition at line 65 of file list_subgp.c.

References list_subgroups().

◆ list_subgroups()

char ** list_subgroups ( const char group,
const char mapset,
int subgs_num 
)