28 #ifndef UVES_PROPERTYLIST_H
29 #define UVES_PROPERTYLIST_H
41 #define uves_propertylist cpl_propertylist
43 #define uves_vector_save(a, b, c, d, e) \
44 cpl_vector_save(a, b, c, d, e)
45 #define uves_image_save(a, b, c, d, e) \
46 cpl_image_save(a, b, c, d, e)
47 #define uves_imagelist_save(a, b, c, d, e) \
48 cpl_imagelist_save(a, b, c, d, e)
49 #define uves_table_save(a, b, c, d, e) \
50 cpl_table_save(a, b, c, d, e)
51 #define uves_dfs_setup_product_header(a, b, c, d, e, f, g) \
52 cpl_dfs_setup_product_header(a, b, c, d, e, f, g)
55 #define uves_propertylist_new() \
56 cpl_propertylist_new()
57 #define uves_propertylist_duplicate(a) \
58 cpl_propertylist_duplicate(a)
59 #define uves_propertylist_delete(a) \
60 cpl_propertylist_delete(a)
61 #define uves_propertylist_get_size(a) \
62 cpl_propertylist_get_size(a)
63 #define uves_propertylist_is_empty(a) \
64 cpl_propertylist_is_empty(a)
65 #define uves_propertylist_get_type(a, b) \
66 cpl_propertylist_get_type(a, b)
67 #define uves_propertylist_contains(a, b) \
68 cpl_propertylist_contains(a, b)
69 #define my_uves_propertylist_contains(a, b) \
70 cpl_propertylist_contains(a, b)
72 #define uves_propertylist_set_comment(a, b, c) \
73 cpl_propertylist_set_comment(a, b, c)
74 #define uves_propertylist_set_char(a, b, c) \
75 cpl_propertylist_set_char(a, b, c)
76 #define uves_propertylist_set_bool(a, b, c) \
77 cpl_propertylist_set_bool(a, b, c)
78 #define uves_propertylist_set_int(a, b, c) \
79 cpl_propertylist_set_int(a, b, c)
80 #define uves_propertylist_set_long(a, b, c) \
81 cpl_propertylist_set_long(a, b, c)
82 #define uves_propertylist_set_float(a, b, c) \
83 cpl_propertylist_set_float(a, b, c)
84 #define uves_propertylist_set_double(a, b, c) \
85 cpl_propertylist_set_double(a, b, c)
86 #define uves_propertylist_set_string(a, b, c) \
87 cpl_propertylist_set_string(a, b, c)
88 #define uves_propertylist_get_const(a, b) \
89 cpl_propertylist_get(a, b)
90 #define uves_propertylist_get(a, b) \
91 cpl_propertylist_get(a, b)
92 #define uves_propertylist_get_comment(a, b) \
93 cpl_propertylist_get_comment(a, b)
94 #define uves_propertylist_get_char(a, b) \
95 cpl_propertylist_get_char(a, b)
96 #define uves_propertylist_get_bool(a, b) \
97 cpl_propertylist_get_bool(a, b)
98 #define uves_propertylist_get_int(a, b) \
99 cpl_propertylist_get_int(a, b)
100 #define uves_propertylist_get_long(a, b) \
101 cpl_propertylist_get_long(a, b)
102 #define uves_propertylist_get_float(a, b) \
103 cpl_propertylist_get_float(a, b)
104 #define uves_propertylist_get_double(a, b) \
105 cpl_propertylist_get_double(a, b)
106 #define uves_propertylist_get_string(a, b) \
107 cpl_propertylist_get_string(a, b)
108 #define uves_propertylist_insert_char(a, b, c, d) \
109 cpl_propertylist_insert_char(a, b, c, d)
110 #define uves_propertylist_insert_bool(a, b, c, d) \
111 cpl_propertylist_insert_bool(a, b, c, d)
112 #define uves_propertylist_insert_int(a, b, c, d) \
113 cpl_propertylist_insert_int(a, b, c, d)
114 #define uves_propertylist_insert_long(a, b, c, d) \
115 cpl_propertylist_insert_long(a, b, c, d)
116 #define uves_propertylist_insert_float(a, b, c, d) \
117 cpl_propertylist_insert_float(a, b, c, d)
118 #define uves_propertylist_insert_double(a, b, c, d) \
119 cpl_propertylist_insert_double(a, b, c, d)
120 #define uves_propertylist_insert_string(a, b, c, d) \
121 cpl_propertylist_insert_string(a, b, c, d)
122 #define uves_propertylist_insert_after_char(a, b, c, d) \
123 cpl_propertylist_insert_after_char(a, b, c, d)
124 #define uves_propertylist_insert_after_bool(a, b, c, d) \
125 cpl_propertylist_insert_after_bool(a, b, c, d)
126 #define uves_propertylist_insert_after_int(a, b, c, d) \
127 cpl_propertylist_insert_after_int(a, b, c, d)
128 #define uves_propertylist_insert_after_long(a, b, c, d) \
129 cpl_propertylist_insert_after_long(a, b, c, d)
130 #define uves_propertylist_insert_after_float(a, b, c, d) \
131 cpl_propertylist_insert_after_float(a, b, c, d)
132 #define uves_propertylist_insert_after_double(a, b, c, d) \
133 cpl_propertylist_insert_after_double(a, b, c, d)
134 #define uves_propertylist_insert_after_string(a, b, c, d) \
135 cpl_propertylist_insert_after_string(a, b, c, d)
136 #define uves_propertylist_prepend_char(a, b, c) \
137 cpl_propertylist_prepend_char(a, b, c)
138 #define uves_propertylist_prepend_bool(a, b, c) \
139 cpl_propertylist_prepend_bool(a, b, c)
140 #define uves_propertylist_prepend_int(a, b, c) \
141 cpl_propertylist_prepend_int(a, b, c)
142 #define uves_propertylist_prepend_long(a, b, c) \
143 cpl_propertylist_prepend_long(a, b, c)
144 #define uves_propertylist_prepend_float(a, b, c) \
145 cpl_propertylist_prepend_float(a, b, c)
146 #define uves_propertylist_prepend_double(a, b, c) \
147 cpl_propertylist_prepend_double(a, b, c)
148 #define uves_propertylist_prepend_string(a, b, c) \
149 cpl_propertylist_prepend_string(a, b, c)
150 #define uves_propertylist_append_char(a, b, c) \
151 cpl_propertylist_append_char(a, b, c)
152 #define uves_propertylist_append_bool(a, b, c) \
153 cpl_propertylist_append_bool(a, b, c)
154 #define uves_propertylist_append_int(a, b, c) \
155 cpl_propertylist_append_int(a, b, c)
156 #define uves_propertylist_append_long(a, b, c) \
157 cpl_propertylist_append_long(a, b, c)
158 #define uves_propertylist_append_float(a, b, c) \
159 cpl_propertylist_append_float(a, b, c)
160 #define uves_propertylist_append_double(a, b, c) \
161 cpl_propertylist_append_double(a, b, c)
162 #define uves_propertylist_append_string(a, b, c) \
163 cpl_propertylist_append_string(a, b, c)
164 #define uves_propertylist_append(a, b) \
165 cpl_propertylist_append(a, b)
166 #define uves_propertylist_erase(a, b) \
167 cpl_propertylist_erase(a, b)
168 #define uves_propertylist_erase_regexp(a, b, c) \
169 cpl_propertylist_erase_regexp(a, b, c)
170 #define uves_propertylist_empty(a) \
171 cpl_propertylist_empty(a)
172 #define uves_propertylist_update_char(a, b, c) \
173 cpl_propertylist_update_char(a, b, c)
174 #define uves_propertylist_update_bool(a, b, c) \
175 cpl_propertylist_update_bool(a, b, c)
176 #define uves_propertylist_update_int(a, b, c) \
177 cpl_propertylist_update_int(a, b, c)
178 #define uves_propertylist_update_long(a, b, c) \
179 cpl_propertylist_update_long(a, b, c)
180 #define uves_propertylist_update_float(a, b, c) \
181 cpl_propertylist_update_float(a, b, c)
182 #define uves_propertylist_update_double(a, b, c) \
183 cpl_propertylist_update_double(a, b, c)
184 #define uves_propertylist_update_string(a, b, c) \
185 cpl_propertylist_update_string(a, b, c)
186 #define uves_propertylist_copy_property(a, b, c) \
187 cpl_propertylist_copy_property(a, b, c)
188 #define uves_propertylist_copy_property_regexp(a, b, c, d) \
189 cpl_propertylist_copy_property_regexp(a, b, c, d)
190 #define uves_propertylist_load(a, b) \
191 cpl_propertylist_load(a, b)
192 #define uves_propertylist_load_regexp(a, b, c, d) \
193 cpl_propertylist_load_regexp(a, b, c, d)
194 #define uves_propertylist_to_fits(a) \
195 cpl_propertylist_to_fits(a)
196 #define uves_propertylist_from_fits(a) \
197 cpl_propertylist_from_fits(a)
217 cpl_error_code uves_vector_save(
const cpl_vector *v,
const char *f, cpl_type_bpp bpp,
219 cpl_error_code uves_image_save(
const cpl_image *image,
const char *f, cpl_type_bpp bpp,
221 cpl_error_code uves_imagelist_save(
const cpl_imagelist *imagelist,
const char *f, cpl_type_bpp bpp,
223 cpl_error_code uves_table_save(
const cpl_table *table,
const uves_propertylist *header,
227 const cpl_frame *
frame,
228 const cpl_frameset *set,
229 const cpl_parameterlist *par,
275 const char *comment);
339 const char *name,
char value);
343 const char *name,
int value);
347 const char *name,
int value);
351 const char *name,
long value);
355 const char *name,
float value);
359 const char *name,
double value);
363 const char *name,
const char *value);
368 const char *name,
char value);
372 const char *name,
int value);
376 const char *name,
int value);
380 const char *name,
long value);
384 const char *name,
float value);
388 const char *name,
double value);
392 const char *name,
const char *value);
426 char value,
const char *comment);
430 int value,
const char *comment);
434 int value,
const char *comment);
438 long value,
const char *comment);
442 float value,
const char *comment);
446 double value,
const char *comment);
450 const char *value,
const char *comment);
546 const char *regexp,
int invert);
555 uves_propertylist_from_fits(
const qfits_header *header);
558 my_uves_propertylist_from_fits(
const cpl_propertylist *header);
const cpl_property * uves_propertylist_get_const(const uves_propertylist *self, long position)
Access property list elements by index.
cpl_error_code uves_propertylist_prepend_long(uves_propertylist *self, const char *name, long value)
Prepend a long value to a property list.
cpl_error_code uves_propertylist_insert_after_double(uves_propertylist *self, const char *after, const char *name, double value)
Insert a double value into a property list after the given position.
int uves_propertylist_get_bool(const uves_propertylist *self, const char *name)
Get the boolean value of the given property list entry.
const char * uves_propertylist_get_comment(const uves_propertylist *self, const char *name)
Get the comment of the given property list entry.
cpl_error_code uves_propertylist_prepend_string(uves_propertylist *self, const char *name, const char *value)
Prepend a string value to a property list.
cpl_error_code uves_propertylist_insert_int(uves_propertylist *self, const char *here, const char *name, int value)
Insert a integer value into a property list at the given position.
void uves_propertylist_empty(uves_propertylist *self)
Remove all properties from a property list.
int uves_propertylist_erase(uves_propertylist *self, const char *name)
Erase the given property from a property list.
cpl_error_code uves_propertylist_insert_after_char(uves_propertylist *self, const char *after, const char *name, char value)
Insert a character value into a property list after the given position.
int uves_propertylist_is_empty(const uves_propertylist *self)
Check whether a property list is empty.
double uves_propertylist_get_double(const uves_propertylist *self, const char *name)
Get the double value of the given property list entry.
cpl_error_code uves_propertylist_insert_float(uves_propertylist *self, const char *here, const char *name, float value)
Insert a float value into a property list at the given position.
cpl_error_code uves_propertylist_append_c_long(uves_propertylist *self, const char *name, long value, const char *comment)
Append a long value to a property list.
cpl_error_code uves_propertylist_update_bool(uves_propertylist *self, const char *name, int value)
Update a property list with a boolean value.
cpl_error_code uves_propertylist_update_float(uves_propertylist *self, const char *name, float value)
Update a property list with a float value.
cpl_error_code uves_propertylist_set_double(uves_propertylist *self, const char *name, double value)
Set the value of the given double property list entry.
cpl_error_code uves_propertylist_insert_bool(uves_propertylist *self, const char *here, const char *name, int value)
Insert a boolean value into a property list at the given position.
cpl_error_code uves_propertylist_insert_after_long(uves_propertylist *self, const char *after, const char *name, long value)
Insert a long value into a property list after the given position.
cpl_error_code uves_propertylist_append_c_int(uves_propertylist *self, const char *name, int value, const char *comment)
Append an integer value to a property list.
cpl_error_code uves_propertylist_insert_long(uves_propertylist *self, const char *here, const char *name, long value)
Insert a long value into a property list at the given position.
cpl_error_code uves_propertylist_prepend_char(uves_propertylist *self, const char *name, char value)
Prepend a character value to a property list.
cpl_error_code uves_propertylist_update_string(uves_propertylist *self, const char *name, const char *value)
Update a property list with a string value.
long uves_propertylist_get_long(const uves_propertylist *self, const char *name)
Get the long value of the given property list entry.
cpl_error_code uves_propertylist_prepend_float(uves_propertylist *self, const char *name, float value)
Prepend a float value to a property list.
cpl_type uves_propertylist_get_type(const uves_propertylist *self, const char *name)
Get the the type of a property list entry.
uves_propertylist * uves_propertylist_new(void)
Create an empty property list.
long uves_propertylist_get_size(const uves_propertylist *self)
Get the current size of a property list.
cpl_error_code uves_propertylist_set_comment(uves_propertylist *self, const char *name, const char *comment)
Modify the comment field of the given property list entry.
const char * uves_propertylist_get_string(const uves_propertylist *self, const char *name)
Get the string value of the given property list entry.
uves_propertylist * uves_propertylist_load(const char *name, int position)
Create a property list from a file.
cpl_error_code uves_propertylist_set_string(uves_propertylist *self, const char *name, const char *value)
Set the value of the given string property list entry.
cpl_error_code uves_propertylist_set_int(uves_propertylist *self, const char *name, int value)
Set the value of the given integer property list entry.
cpl_error_code uves_propertylist_copy_property_regexp(uves_propertylist *self, const uves_propertylist *other, const char *regexp, int invert)
Copy matching properties from another property list.
char uves_propertylist_get_char(const uves_propertylist *self, const char *name)
Get the character value of the given property list entry.
cpl_error_code uves_propertylist_append_c_float(uves_propertylist *self, const char *name, float value, const char *comment)
Append a float value to a property list.
cpl_error_code uves_propertylist_append_c_char(uves_propertylist *self, const char *name, char value, const char *comment)
Append a character value to a property list.
cpl_error_code uves_propertylist_append_c_string(uves_propertylist *self, const char *name, const char *value, const char *comment)
Append a string value to a property list.
cpl_error_code uves_propertylist_update_char(uves_propertylist *self, const char *name, char value)
Update a property list with a character value.
cpl_error_code uves_propertylist_insert_char(uves_propertylist *self, const char *here, const char *name, char value)
Insert a character value into a property list at the given position.
cpl_error_code uves_propertylist_set_float(uves_propertylist *self, const char *name, float value)
Set the value of the given float property list entry.
int my_uves_propertylist_contains(const cpl_propertylist *self, const char *name)
Check whether a property is present in a property list.
int uves_propertylist_get_int(const uves_propertylist *self, const char *name)
Get the integer value of the given property list entry.
cpl_error_code uves_propertylist_set_char(uves_propertylist *self, const char *name, char value)
Set the value of the given character property list entry.
cpl_error_code uves_propertylist_append_c_bool(uves_propertylist *self, const char *name, int value, const char *comment)
Append a boolean value to a property list.
cpl_error_code uves_propertylist_prepend_double(uves_propertylist *self, const char *name, double value)
Prepend a double value to a property list.
cpl_error_code uves_propertylist_prepend_int(uves_propertylist *self, const char *name, int value)
Prepend a integer value to a property list.
int uves_propertylist_erase_regexp(uves_propertylist *self, const char *regexp, int invert)
Erase all properties with name matching a given regular expression.
cpl_error_code uves_propertylist_insert_double(uves_propertylist *self, const char *here, const char *name, double value)
Insert a double value into a property list at the given position.
cpl_error_code uves_propertylist_insert_after_string(uves_propertylist *self, const char *after, const char *name, const char *value)
Insert a string value into a property list after the given position.
cpl_error_code uves_propertylist_insert_after_bool(uves_propertylist *self, const char *after, const char *name, int value)
Insert a boolean value into a property list after the given position.
cpl_error_code uves_propertylist_update_long(uves_propertylist *self, const char *name, long value)
Update a property list with a long value.
cpl_error_code uves_propertylist_insert_after_int(uves_propertylist *self, const char *after, const char *name, int value)
Insert a integer value into a property list after the given position.
cpl_error_code uves_propertylist_set_long(uves_propertylist *self, const char *name, long value)
Set the value of the given long property list entry.
uves_propertylist * uves_propertylist_duplicate(const uves_propertylist *other)
Create a copy of the given property list.
int uves_propertylist_contains(const uves_propertylist *self, const char *name)
Check whether a property is present in a property list.
void uves_propertylist_delete(const uves_propertylist *self)
Destroy a property list.
cpl_error_code uves_propertylist_append_c_double(uves_propertylist *self, const char *name, double value, const char *comment)
Append a double value to a property list.
float uves_propertylist_get_float(const uves_propertylist *self, const char *name)
Get the float value of the given property list entry.
cpl_error_code uves_propertylist_update_int(uves_propertylist *self, const char *name, int value)
Update a property list with a integer value.
cpl_error_code uves_propertylist_insert_after_float(uves_propertylist *self, const char *after, const char *name, float value)
Insert a float value into a property list after the given position.
cpl_error_code uves_propertylist_set_bool(uves_propertylist *self, const char *name, int value)
Set the value of the given boolean property list entry.
cpl_error_code uves_propertylist_prepend_bool(uves_propertylist *self, const char *name, int value)
Prepend a boolean value to a property list.
cpl_error_code uves_propertylist_insert_string(uves_propertylist *self, const char *here, const char *name, const char *value)
Insert a string value into a property list at the given position.
int uves_propertylist_has(const uves_propertylist *self, const char *name)
Check whether a property is present in a property list.
uves_propertylist * uves_propertylist_load_regexp(const char *name, int position, const char *regexp, int invert)
Create a filtered property list from a file.
cpl_error_code uves_propertylist_update_double(uves_propertylist *self, const char *name, double value)
Update a property list with a double value.
cpl_error_code uves_propertylist_append(uves_propertylist *self, const uves_propertylist *other)
Append a property list..
cpl_error_code uves_propertylist_copy_property(uves_propertylist *self, const uves_propertylist *other, const char *name)
Copy a property from another property list.