30 const char *filename, *band_ref;
34 G_debug(1,
"No band reference detected");
40 if (!filename || !band_ref) {
41 G_debug(1,
"Invalid band reference identifier");
45 G_debug(1,
"Band reference <%s> (%s)", band_ref, filename);
61 const char *filename,
const char *band_reference)
70 G_debug(1,
"Error writing band reference file");
struct Key_Value * G_fread_key_value(FILE *)
Read key/values pairs from file.
int G__read_band_reference(FILE *fd, struct Key_Value **key_val)
Read band reference identifier from file (internal use only).
void G_set_key_value(const char *, const char *, struct Key_Value *)
Set value for given key.
int G_fwrite_key_value(FILE *, const struct Key_Value *)
Write key/value pairs to file.
int G__write_band_reference(FILE *fd, const char *filename, const char *band_reference)
Write band reference identifier to file (internal use only).
struct Key_Value * G_create_key_value(void)
Allocate and initialize Key_Value structure.
int G_debug(int, const char *,...) __attribute__((format(printf
void G_free_key_value(struct Key_Value *)
Free allocated Key_Value structure.
const char * G_find_key_value(const char *, const struct Key_Value *)
Find given key (case sensitive)