GRASS GIS 8 Programmer's Manual
8.5.0dev(2024)-36359e2344
|
Go to the source code of this file.
Functions | |
int | I_find_group (const char *group) |
does group exist? More... | |
int | I_find_group2 (const char *group, const char *mapset) |
Does the group exists? More... | |
int | I_find_group_file (const char *group, const char *file) |
Searches for a group file in the current mapset. More... | |
int | I_find_group_file2 (const char *group, const char *mapset, const char *file) |
Searches for a group file in the specified mapset. More... | |
int | I_find_subgroup (const char *group, const char *subgroup) |
Searches for a subgroup in the current mapset. More... | |
int | I_find_subgroup2 (const char *group, const char *subgroup, const char *mapset) |
Searches for a subgroup in specified mapset or any mapset if mapset is not set. More... | |
int | I_find_subgroup_file (const char *group, const char *subgroup, const char *file) |
Searches for a subgroup file in the current mapset. More... | |
int | I_find_subgroup_file2 (const char *group, const char *subgroup, const char *mapset, const char *file) |
Searches for a subgroup file in the specified mapset. More... | |
const char * | I_find_signature (I_SIGFILE_TYPE type, char *name, const char *mapset) |
Find mapset containing signature file. More... | |
const char * | I_find_signature2 (I_SIGFILE_TYPE type, const char *name, const char *mapset) |
Find mapset containing signature (look but don't touch) More... | |
int I_find_group | ( | const char * | group | ) |
does group exist?
Returns 1 if the specified group exists in the current mapset; 0 otherwise. Use I_find_group2 to search in all or a specific mapset.
group |
Definition at line 21 of file imagery/find.c.
References G_find_file2(), G_mapset(), and NULL.
Referenced by I_find_group_file(), I_find_subgroup(), I_find_subgroup_file(), I_get_subgroup(), and I_put_subgroup().
int I_find_group2 | ( | const char * | group, |
const char * | mapset | ||
) |
Does the group exists?
Finds a group in specified mapset or any mapset if mapset is not set. Internally uses G_find_file2().
group | |
mapset |
Definition at line 40 of file imagery/find.c.
References G_find_file2(), and NULL.
Referenced by I_find_group_file2(), I_find_subgroup2(), I_find_subgroup_file2(), and list_subgroups().
int I_find_group_file | ( | const char * | group, |
const char * | file | ||
) |
Searches for a group file in the current mapset.
group | |
file |
Definition at line 52 of file imagery/find.c.
References file, G_find_file2_misc(), G_mapset(), I_find_group(), and NULL.
int I_find_group_file2 | ( | const char * | group, |
const char * | mapset, | ||
const char * | file | ||
) |
Searches for a group file in the specified mapset.
group | |
file |
Definition at line 69 of file imagery/find.c.
References file, G_find_file2_misc(), I_find_group2(), and NULL.
Referenced by fopen_group_file_old().
const char* I_find_signature | ( | I_SIGFILE_TYPE | type, |
char * | name, | ||
const char * | mapset | ||
) |
Find mapset containing signature file.
Looks for the signature name of type type in the database. The mapset parameter can either be the empty string "", which means search all the mapsets in the users current mapset search path (see Mapset_Search_Path for more details about the search path) or it can be a specific mapset name, which means look for the signature only in this one mapset (for example, in the current mapset). If found, the mapset where the signature lives is returned. If not found, the NULL pointer is returned.
Note: If the user specifies a fully qualified signature name which exists, then I_find_signature() modifies name by removing the "@<i>mapset</i>". Use I_find_signature2 if altering passed in name is not desired.
type | I_SIGFILE_TYPE |
name | of signature |
mapset | set NULL to search in all mapsets |
Definition at line 204 of file imagery/find.c.
const char* I_find_signature2 | ( | I_SIGFILE_TYPE | type, |
const char * | name, | ||
const char * | mapset | ||
) |
Find mapset containing signature (look but don't touch)
Looks for the signature name of type type in the database. The mapset parameter can either be the empty string "", which means search all the mapsets in the users current mapset search path (see Mapset_Search_Path for more details about the search path) or it can be a specific mapset name, which means look for the signature only in this one mapset (for example, in the current mapset). If found, the mapset where the signature lives is returned. If not found, the NULL pointer is returned.
Note: The passed name argument is not altered. Use I_find_signature if stripping mapset part from the name is desired.
type | I_SIGFILE_TYPE |
name | of signature |
mapset | set NULL to search in all mapsets |
Definition at line 240 of file imagery/find.c.
int I_find_subgroup | ( | const char * | group, |
const char * | subgroup | ||
) |
Searches for a subgroup in the current mapset.
group | |
subgroup |
Definition at line 86 of file imagery/find.c.
References G_debug(), G_find_file2_misc(), G_mapset(), GNAME_MAX, HOST_DIRSEP, I_find_group(), and NULL.
int I_find_subgroup2 | ( | const char * | group, |
const char * | subgroup, | ||
const char * | mapset | ||
) |
Searches for a subgroup in specified mapset or any mapset if mapset is not set.
group | |
subgroup | |
mapset |
Definition at line 110 of file imagery/find.c.
References G_debug(), G_find_file2_misc(), GNAME_MAX, HOST_DIRSEP, I_find_group2(), and NULL.
int I_find_subgroup_file | ( | const char * | group, |
const char * | subgroup, | ||
const char * | file | ||
) |
Searches for a subgroup file in the current mapset.
group | |
subgroup | |
file |
Definition at line 134 of file imagery/find.c.
References file, G_debug(), G_find_file2_misc(), G_mapset(), GNAME_MAX, HOST_DIRSEP, I_find_group(), and NULL.
int I_find_subgroup_file2 | ( | const char * | group, |
const char * | subgroup, | ||
const char * | mapset, | ||
const char * | file | ||
) |
Searches for a subgroup file in the specified mapset.
group | |
subgroup | |
mapset | |
file |
Definition at line 162 of file imagery/find.c.
References file, G_debug(), G_find_file2_misc(), GNAME_MAX, HOST_DIRSEP, I_find_group2(), and NULL.
Referenced by fopen_subgroup_file_old().