Debian Codegraph @

docs/reference/html/libiptcdata-dataset.html

raw symbols SCIP
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
5 <title>dataset: libiptcdata Reference Manual</title>
6 <meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
7 <link rel="home" href="index.html" title="libiptcdata Reference Manual">
8 <link rel="up" href="ch01.html" title="IPTC Data Manipulation">
9 <link rel="prev" href="libiptcdata-data.html" title="data">
10 <link rel="next" href="libiptcdata-tag.html" title="tag">
11 <meta name="generator" content="GTK-Doc V1.28 (XML mode)">
12 <link rel="stylesheet" href="style.css" type="text/css">
13 </head>
14 <body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
15 <table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
16 <td width="100%" align="left" class="shortcuts">
17 <a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
18 <a href="#libiptcdata-dataset.description" class="shortcut">Description</a></span>
19 </td>
20 <td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
21 <td><a accesskey="u" href="ch01.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
22 <td><a accesskey="p" href="libiptcdata-data.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
23 <td><a accesskey="n" href="libiptcdata-tag.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
24 </tr></table>
25 <div class="refentry">
26 <a name="libiptcdata-dataset"></a><div class="titlepage"></div>
27 <div class="refnamediv"><table width="100%"><tr>
28 <td valign="top">
29 <h2><span class="refentrytitle"><a name="libiptcdata-dataset.top_of_page"></a>dataset</span></h2>
30 <p>dataset</p>
31 </td>
32 <td class="gallery_image" valign="top" align="right"></td>
33 </tr></table></div>
34 <div class="refsect1">
35 <a name="libiptcdata-dataset.functions"></a><h2>Functions</h2>
36 <div class="informaltable"><table class="informaltable" width="100%" border="0">
37 <colgroup>
38 <col width="150px" class="functions_return">
39 <col class="functions_name">
40 </colgroup>
41 <tbody>
42 <tr>
43 <td class="function_type">
44 <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
45 </td>
46 <td class="function_name">
47 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-new" title="iptc_dataset_new ()">iptc_dataset_new</a> <span class="c_punctuation">()</span>
48 </td>
49 </tr>
50 <tr>
51 <td class="function_type">
52 <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
53 </td>
54 <td class="function_name">
55 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-new-mem" title="iptc_dataset_new_mem ()">iptc_dataset_new_mem</a> <span class="c_punctuation">()</span>
56 </td>
57 </tr>
58 <tr>
59 <td class="function_type">
60 <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
61 </td>
62 <td class="function_name">
63 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-copy" title="iptc_dataset_copy ()">iptc_dataset_copy</a> <span class="c_punctuation">()</span>
64 </td>
65 </tr>
66 <tr>
67 <td class="function_type">
68 <span class="returnvalue">void</span>
69 </td>
70 <td class="function_name">
71 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-ref" title="iptc_dataset_ref ()">iptc_dataset_ref</a> <span class="c_punctuation">()</span>
72 </td>
73 </tr>
74 <tr>
75 <td class="function_type">
76 <span class="returnvalue">void</span>
77 </td>
78 <td class="function_name">
79 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()">iptc_dataset_unref</a> <span class="c_punctuation">()</span>
80 </td>
81 </tr>
82 <tr>
83 <td class="function_type">
84 <span class="returnvalue">void</span>
85 </td>
86 <td class="function_name">
87 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-free" title="iptc_dataset_free ()">iptc_dataset_free</a> <span class="c_punctuation">()</span>
88 </td>
89 </tr>
90 <tr>
91 <td class="function_type">
92 <a class="link" href="libiptcdata-tag.html#IptcFormat" title="enum IptcFormat"><span class="returnvalue">IptcFormat</span></a>
93 </td>
94 <td class="function_name">
95 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-format" title="iptc_dataset_get_format ()">iptc_dataset_get_format</a> <span class="c_punctuation">()</span>
96 </td>
97 </tr>
98 <tr>
99 <td class="function_type">
100 <span class="returnvalue">int</span>
101 </td>
102 <td class="function_name">
103 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-data" title="iptc_dataset_get_data ()">iptc_dataset_get_data</a> <span class="c_punctuation">()</span>
104 </td>
105 </tr>
106 <tr>
107 <td class="function_type">unsigned <span class="returnvalue">int</span>
108 </td>
109 <td class="function_name">
110 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-value" title="iptc_dataset_get_value ()">iptc_dataset_get_value</a> <span class="c_punctuation">()</span>
111 </td>
112 </tr>
113 <tr>
114 <td class="function_type">
115 <span class="returnvalue">int</span>
116 </td>
117 <td class="function_name">
118 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-date" title="iptc_dataset_get_date ()">iptc_dataset_get_date</a> <span class="c_punctuation">()</span>
119 </td>
120 </tr>
121 <tr>
122 <td class="function_type">
123 <span class="returnvalue">int</span>
124 </td>
125 <td class="function_name">
126 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-time" title="iptc_dataset_get_time ()">iptc_dataset_get_time</a> <span class="c_punctuation">()</span>
127 </td>
128 </tr>
129 <tr>
130 <td class="function_type">
131 <span class="returnvalue">void</span>
132 </td>
133 <td class="function_name">
134 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-set-tag" title="iptc_dataset_set_tag ()">iptc_dataset_set_tag</a> <span class="c_punctuation">()</span>
135 </td>
136 </tr>
137 <tr>
138 <td class="function_type">
139 <span class="returnvalue">int</span>
140 </td>
141 <td class="function_name">
142 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-set-data" title="iptc_dataset_set_data ()">iptc_dataset_set_data</a> <span class="c_punctuation">()</span>
143 </td>
144 </tr>
145 <tr>
146 <td class="function_type">
147 <span class="returnvalue">int</span>
148 </td>
149 <td class="function_name">
150 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-set-value" title="iptc_dataset_set_value ()">iptc_dataset_set_value</a> <span class="c_punctuation">()</span>
151 </td>
152 </tr>
153 <tr>
154 <td class="function_type">
155 <span class="returnvalue">int</span>
156 </td>
157 <td class="function_name">
158 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-set-date" title="iptc_dataset_set_date ()">iptc_dataset_set_date</a> <span class="c_punctuation">()</span>
159 </td>
160 </tr>
161 <tr>
162 <td class="function_type">
163 <span class="returnvalue">int</span>
164 </td>
165 <td class="function_name">
166 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-set-time" title="iptc_dataset_set_time ()">iptc_dataset_set_time</a> <span class="c_punctuation">()</span>
167 </td>
168 </tr>
169 <tr>
170 <td class="function_type">const <span class="returnvalue">char</span> *
171 </td>
172 <td class="function_name">
173 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-get-as-str" title="iptc_dataset_get_as_str ()">iptc_dataset_get_as_str</a> <span class="c_punctuation">()</span>
174 </td>
175 </tr>
176 <tr>
177 <td class="function_type">
178 <span class="returnvalue">void</span>
179 </td>
180 <td class="function_name">
181 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-dump" title="iptc_dataset_dump ()">iptc_dataset_dump</a> <span class="c_punctuation">()</span>
182 </td>
183 </tr>
184 </tbody>
185 </table></div>
186 </div>
187 <div class="refsect1">
188 <a name="libiptcdata-dataset.other"></a><h2>Types and Values</h2>
189 <div class="informaltable"><table class="informaltable" width="100%" border="0">
190 <colgroup>
191 <col width="150px" class="name">
192 <col class="description">
193 </colgroup>
194 <tbody>
195 <tr>
196 <td class="datatype_keyword">struct</td>
197 <td class="function_name"><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet">IptcDataSet</a></td>
198 </tr>
199 <tr>
200 <td class="datatype_keyword">enum</td>
201 <td class="function_name"><a class="link" href="libiptcdata-dataset.html#IptcValidate" title="enum IptcValidate">IptcValidate</a></td>
202 </tr>
203 </tbody>
204 </table></div>
205 </div>
206 <div class="refsect1">
207 <a name="libiptcdata-dataset.description"></a><h2>Description</h2>
208 </div>
209 <div class="refsect1">
210 <a name="libiptcdata-dataset.functions_details"></a><h2>Functions</h2>
211 <div class="refsect2">
212 <a name="iptc-dataset-new"></a><h3>iptc_dataset_new ()</h3>
213 <pre class="programlisting"><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
214 iptc_dataset_new (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
215 <p>Allocates a new dataset, which is initialized to be empty (undefined tag and
216 empty value). The default memory allocation functions (malloc, etc.) are
217 used. If you need custom memory management functions, use
218 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-new-mem" title="iptc_dataset_new_mem ()"><code class="function">iptc_dataset_new_mem()</code></a> instead. This allocation will set the <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a>
219 refcount to 1, so use <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()"><code class="function">iptc_dataset_unref()</code></a> when finished with the pointer.</p>
220 <div class="refsect3">
221 <a name="iptc-dataset-new.returns"></a><h4>Returns</h4>
222 <p> pointer to the new <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object, NULL on error</p>
223 </div>
224 </div>
225 <hr>
226 <div class="refsect2">
227 <a name="iptc-dataset-new-mem"></a><h3>iptc_dataset_new_mem ()</h3>
228 <pre class="programlisting"><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
229 iptc_dataset_new_mem (<em class="parameter"><code><a class="link" href="libiptcdata-mem.html#IptcMem" title="IptcMem"><span class="type">IptcMem</span></a> *mem</code></em>);</pre>
230 <p>Allocates a new dataset, which is initialized to be empty (undefined tag and
231 empty value), using custom memory management functions. This allocation
232 will set the <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> refcount to 1, so use <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()"><code class="function">iptc_dataset_unref()</code></a> when
233 finished with the pointer.</p>
234 <div class="refsect3">
235 <a name="iptc-dataset-new-mem.parameters"></a><h4>Parameters</h4>
236 <div class="informaltable"><table class="informaltable" width="100%" border="0">
237 <colgroup>
238 <col width="150px" class="parameters_name">
239 <col class="parameters_description">
240 <col width="200px" class="parameters_annotations">
241 </colgroup>
242 <tbody><tr>
243 <td class="parameter_name"><p>mem</p></td>
244 <td class="parameter_description"><p>Pointer to an <a class="link" href="libiptcdata-mem.html#IptcMem" title="IptcMem"><span class="type">IptcMem</span></a> object that defines custom memory managment
245 functions. The refcount of <em class="parameter"><code>mem</code></em>
246 will be incremented. It is decremented
247 when the returned <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object is freed.</p></td>
248 <td class="parameter_annotations"> </td>
249 </tr></tbody>
250 </table></div>
251 </div>
252 <div class="refsect3">
253 <a name="iptc-dataset-new-mem.returns"></a><h4>Returns</h4>
254 <p> pointer to the new <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object, NULL on error</p>
255 </div>
256 </div>
257 <hr>
258 <div class="refsect2">
259 <a name="iptc-dataset-copy"></a><h3>iptc_dataset_copy ()</h3>
260 <pre class="programlisting"><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="returnvalue">IptcDataSet</span></a> *
261 iptc_dataset_copy (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
262 <p>Allocates a new dataset and copies the contents of an existing dataset
263 into the new one. Copied data includes record, tag, and the data payload.
264 This is a "deep copy" so that a new copy of the data payload is created,
265 not just a pointer duplication. The new dataset has no parent collection,
266 regardless of the parent of the copied dataset. This allocation will set
267 the <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> refcount to 1, so use <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()"><code class="function">iptc_dataset_unref()</code></a> when finished
268 with the pointer.</p>
269 <div class="refsect3">
270 <a name="iptc-dataset-copy.parameters"></a><h4>Parameters</h4>
271 <div class="informaltable"><table class="informaltable" width="100%" border="0">
272 <colgroup>
273 <col width="150px" class="parameters_name">
274 <col class="parameters_description">
275 <col width="200px" class="parameters_annotations">
276 </colgroup>
277 <tbody><tr>
278 <td class="parameter_name"><p>dataset</p></td>
279 <td class="parameter_description"><p>the dataset to duplicate</p></td>
280 <td class="parameter_annotations"> </td>
281 </tr></tbody>
282 </table></div>
283 </div>
284 <div class="refsect3">
285 <a name="iptc-dataset-copy.returns"></a><h4>Returns</h4>
286 <p> pointer to the new <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object, NULL on error</p>
287 </div>
288 </div>
289 <hr>
290 <div class="refsect2">
291 <a name="iptc-dataset-ref"></a><h3>iptc_dataset_ref ()</h3>
292 <pre class="programlisting"><span class="returnvalue">void</span>
293 iptc_dataset_ref (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
294 <p>Increments the reference count of an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object. This function
295 should be called whenever a copy of a pointer is made by the application.
296 <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()"><code class="function">iptc_dataset_unref()</code></a> can then be used when the pointer is no longer needed
297 to ensure that the object is freed once the object is completely unused.</p>
298 <div class="refsect3">
299 <a name="iptc-dataset-ref.parameters"></a><h4>Parameters</h4>
300 <div class="informaltable"><table class="informaltable" width="100%" border="0">
301 <colgroup>
302 <col width="150px" class="parameters_name">
303 <col class="parameters_description">
304 <col width="200px" class="parameters_annotations">
305 </colgroup>
306 <tbody><tr>
307 <td class="parameter_name"><p>dataset</p></td>
308 <td class="parameter_description"><p>the referenced pointer</p></td>
309 <td class="parameter_annotations"> </td>
310 </tr></tbody>
311 </table></div>
312 </div>
313 </div>
314 <hr>
315 <div class="refsect2">
316 <a name="iptc-dataset-unref"></a><h3>iptc_dataset_unref ()</h3>
317 <pre class="programlisting"><span class="returnvalue">void</span>
318 iptc_dataset_unref (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
319 <p>Decrements the reference count of an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object. The object will
320 automatically be freed when the count reaches 0. This function should
321 be called whenever a pointer is no longer needed by an application. It
322 is also good practice to set the local copy of the pointer to NULL to
323 shield against accidently reusing the value.</p>
324 <div class="refsect3">
325 <a name="iptc-dataset-unref.parameters"></a><h4>Parameters</h4>
326 <div class="informaltable"><table class="informaltable" width="100%" border="0">
327 <colgroup>
328 <col width="150px" class="parameters_name">
329 <col class="parameters_description">
330 <col width="200px" class="parameters_annotations">
331 </colgroup>
332 <tbody><tr>
333 <td class="parameter_name"><p>dataset</p></td>
334 <td class="parameter_description"><p>the unreferenced pointer</p></td>
335 <td class="parameter_annotations"> </td>
336 </tr></tbody>
337 </table></div>
338 </div>
339 </div>
340 <hr>
341 <div class="refsect2">
342 <a name="iptc-dataset-free"></a><h3>iptc_dataset_free ()</h3>
343 <pre class="programlisting"><span class="returnvalue">void</span>
344 iptc_dataset_free (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
345 <p>Frees an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> object and its contained data. This function should
346 be used only for error handling since <a class="link" href="libiptcdata-dataset.html#iptc-dataset-unref" title="iptc_dataset_unref ()"><code class="function">iptc_dataset_unref()</code></a> provides a
347 safer mechanism for freeing that allows multiple components to have access
348 to an object.</p>
349 <div class="refsect3">
350 <a name="iptc-dataset-free.parameters"></a><h4>Parameters</h4>
351 <div class="informaltable"><table class="informaltable" width="100%" border="0">
352 <colgroup>
353 <col width="150px" class="parameters_name">
354 <col class="parameters_description">
355 <col width="200px" class="parameters_annotations">
356 </colgroup>
357 <tbody><tr>
358 <td class="parameter_name"><p>dataset</p></td>
359 <td class="parameter_description"><p>the object to free</p></td>
360 <td class="parameter_annotations"> </td>
361 </tr></tbody>
362 </table></div>
363 </div>
364 </div>
365 <hr>
366 <div class="refsect2">
367 <a name="iptc-dataset-get-format"></a><h3>iptc_dataset_get_format ()</h3>
368 <pre class="programlisting"><a class="link" href="libiptcdata-tag.html#IptcFormat" title="enum IptcFormat"><span class="returnvalue">IptcFormat</span></a>
369 iptc_dataset_get_format (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
370 <p>Retrieves the data format of a dataset tag according to the IPTC
371 specification.</p>
372 <div class="refsect3">
373 <a name="iptc-dataset-get-format.parameters"></a><h4>Parameters</h4>
374 <div class="informaltable"><table class="informaltable" width="100%" border="0">
375 <colgroup>
376 <col width="150px" class="parameters_name">
377 <col class="parameters_description">
378 <col width="200px" class="parameters_annotations">
379 </colgroup>
380 <tbody><tr>
381 <td class="parameter_name"><p>dataset</p></td>
382 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
383 <td class="parameter_annotations"> </td>
384 </tr></tbody>
385 </table></div>
386 </div>
387 <div class="refsect3">
388 <a name="iptc-dataset-get-format.returns"></a><h4>Returns</h4>
389 <p> the format of the tag which will be <a class="link" href="libiptcdata-tag.html#IPTC-FORMAT-UNKNOWN:CAPS"><code class="literal">IPTC_FORMAT_UNKNOWN</code></a> if the tag
390 number has not been set or the tag is not in the specification</p>
391 </div>
392 </div>
393 <hr>
394 <div class="refsect2">
395 <a name="iptc-dataset-get-data"></a><h3>iptc_dataset_get_data ()</h3>
396 <pre class="programlisting"><span class="returnvalue">int</span>
397 iptc_dataset_get_data (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
398 <em class="parameter"><code>unsigned <span class="type">char</span> *buf</code></em>,
399 <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
400 <p>Copies the value of a dataset into a buffer. If the buffer has extra
401 space, the data will be NULL-terminated to assist in dealing with
402 strings.</p>
403 <div class="refsect3">
404 <a name="iptc-dataset-get-data.parameters"></a><h4>Parameters</h4>
405 <div class="informaltable"><table class="informaltable" width="100%" border="0">
406 <colgroup>
407 <col width="150px" class="parameters_name">
408 <col class="parameters_description">
409 <col width="200px" class="parameters_annotations">
410 </colgroup>
411 <tbody>
412 <tr>
413 <td class="parameter_name"><p>dataset</p></td>
414 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
415 <td class="parameter_annotations"> </td>
416 </tr>
417 <tr>
418 <td class="parameter_name"><p>buf</p></td>
419 <td class="parameter_description"><p>buffer to which the data will be copied</p></td>
420 <td class="parameter_annotations"> </td>
421 </tr>
422 <tr>
423 <td class="parameter_name"><p>size</p></td>
424 <td class="parameter_description"><p>maximum size of the buffer</p></td>
425 <td class="parameter_annotations"> </td>
426 </tr>
427 </tbody>
428 </table></div>
429 </div>
430 <div class="refsect3">
431 <a name="iptc-dataset-get-data.returns"></a><h4>Returns</h4>
432 <p> the number of bytes copied, or -1 on failure</p>
433 </div>
434 </div>
435 <hr>
436 <div class="refsect2">
437 <a name="iptc-dataset-get-value"></a><h3>iptc_dataset_get_value ()</h3>
438 <pre class="programlisting">unsigned <span class="returnvalue">int</span>
439 iptc_dataset_get_value (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>);</pre>
440 <p>Gets the value of a dataset as an unsigned integer. This function is meant
441 to be used when the format of a tag is a byte, short, or long. Undefined
442 results occur when this function is used on a tag containing data in another
443 format.</p>
444 <div class="refsect3">
445 <a name="iptc-dataset-get-value.parameters"></a><h4>Parameters</h4>
446 <div class="informaltable"><table class="informaltable" width="100%" border="0">
447 <colgroup>
448 <col width="150px" class="parameters_name">
449 <col class="parameters_description">
450 <col width="200px" class="parameters_annotations">
451 </colgroup>
452 <tbody><tr>
453 <td class="parameter_name"><p>dataset</p></td>
454 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
455 <td class="parameter_annotations"> </td>
456 </tr></tbody>
457 </table></div>
458 </div>
459 <div class="refsect3">
460 <a name="iptc-dataset-get-value.returns"></a><h4>Returns</h4>
461 <p> value contained in the dataset</p>
462 </div>
463 </div>
464 <hr>
465 <div class="refsect2">
466 <a name="iptc-dataset-get-date"></a><h3>iptc_dataset_get_date ()</h3>
467 <pre class="programlisting"><span class="returnvalue">int</span>
468 iptc_dataset_get_date (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
469 <em class="parameter"><code><span class="type">int</span> *year</code></em>,
470 <em class="parameter"><code><span class="type">int</span> *month</code></em>,
471 <em class="parameter"><code><span class="type">int</span> *day</code></em>);</pre>
472 <p>Interprets the contents of the dataset as an IPTC date and parses
473 the year, month, and day into the given output variables. If any
474 variable is NULL, that value is skipped. IPTC dates are stored as
475 a string in the format YYYYMMDD.</p>
476 <div class="refsect3">
477 <a name="iptc-dataset-get-date.parameters"></a><h4>Parameters</h4>
478 <div class="informaltable"><table class="informaltable" width="100%" border="0">
479 <colgroup>
480 <col width="150px" class="parameters_name">
481 <col class="parameters_description">
482 <col width="200px" class="parameters_annotations">
483 </colgroup>
484 <tbody>
485 <tr>
486 <td class="parameter_name"><p>dataset</p></td>
487 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
488 <td class="parameter_annotations"> </td>
489 </tr>
490 <tr>
491 <td class="parameter_name"><p>year</p></td>
492 <td class="parameter_description"><p>output variable to store the year (0-9999)</p></td>
493 <td class="parameter_annotations"> </td>
494 </tr>
495 <tr>
496 <td class="parameter_name"><p>month</p></td>
497 <td class="parameter_description"><p>output variable to store the month (1-12)</p></td>
498 <td class="parameter_annotations"> </td>
499 </tr>
500 <tr>
501 <td class="parameter_name"><p>day</p></td>
502 <td class="parameter_description"><p>output variable to store the day of the month (1-31)</p></td>
503 <td class="parameter_annotations"> </td>
504 </tr>
505 </tbody>
506 </table></div>
507 </div>
508 <div class="refsect3">
509 <a name="iptc-dataset-get-date.returns"></a><h4>Returns</h4>
510 <p> 0 on success; -1 on failure</p>
511 </div>
512 </div>
513 <hr>
514 <div class="refsect2">
515 <a name="iptc-dataset-get-time"></a><h3>iptc_dataset_get_time ()</h3>
516 <pre class="programlisting"><span class="returnvalue">int</span>
517 iptc_dataset_get_time (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
518 <em class="parameter"><code><span class="type">int</span> *hour</code></em>,
519 <em class="parameter"><code><span class="type">int</span> *min</code></em>,
520 <em class="parameter"><code><span class="type">int</span> *sec</code></em>,
521 <em class="parameter"><code><span class="type">int</span> *tz</code></em>);</pre>
522 <p>Interprets the contents of the dataset as an IPTC time and parses
523 the hour, minute, second, and timezone into the given output variables.
524 If any variable is NULL, that value is skipped. IPTC times are stored as
525 a string in the format HHMMSS±HHMM.</p>
526 <div class="refsect3">
527 <a name="iptc-dataset-get-time.parameters"></a><h4>Parameters</h4>
528 <div class="informaltable"><table class="informaltable" width="100%" border="0">
529 <colgroup>
530 <col width="150px" class="parameters_name">
531 <col class="parameters_description">
532 <col width="200px" class="parameters_annotations">
533 </colgroup>
534 <tbody>
535 <tr>
536 <td class="parameter_name"><p>dataset</p></td>
537 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
538 <td class="parameter_annotations"> </td>
539 </tr>
540 <tr>
541 <td class="parameter_name"><p>hour</p></td>
542 <td class="parameter_description"><p>output variable to store the hour (0-23)</p></td>
543 <td class="parameter_annotations"> </td>
544 </tr>
545 <tr>
546 <td class="parameter_name"><p>min</p></td>
547 <td class="parameter_description"><p>output variable to store the minute (0-59)</p></td>
548 <td class="parameter_annotations"> </td>
549 </tr>
550 <tr>
551 <td class="parameter_name"><p>sec</p></td>
552 <td class="parameter_description"><p>output variable to store the second (0-59)</p></td>
553 <td class="parameter_annotations"> </td>
554 </tr>
555 <tr>
556 <td class="parameter_name"><p>tz</p></td>
557 <td class="parameter_description"><p>output variable to store the timezone (offset in minutes from GMT)</p></td>
558 <td class="parameter_annotations"> </td>
559 </tr>
560 </tbody>
561 </table></div>
562 </div>
563 <div class="refsect3">
564 <a name="iptc-dataset-get-time.returns"></a><h4>Returns</h4>
565 <p> 0 on success; -1 on failure</p>
566 </div>
567 </div>
568 <hr>
569 <div class="refsect2">
570 <a name="iptc-dataset-set-tag"></a><h3>iptc_dataset_set_tag ()</h3>
571 <pre class="programlisting"><span class="returnvalue">void</span>
572 iptc_dataset_set_tag (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
573 <em class="parameter"><code><a class="link" href="libiptcdata-tag.html#IptcRecord" title="enum IptcRecord"><span class="type">IptcRecord</span></a> record</code></em>,
574 <em class="parameter"><code><a class="link" href="libiptcdata-tag.html#IptcTag" title="enum IptcTag"><span class="type">IptcTag</span></a> tag</code></em>);</pre>
575 <p>Sets the record and tag number for a dataset object. Each record/tag pair
576 is assigned a specific meaning by the IPTC IIM specification. This function
577 allows any value to be set for the dataset object, regardless of its
578 meaning. This function can also be used to change the record/tag number in
579 place even if it has been already set.</p>
580 <div class="refsect3">
581 <a name="iptc-dataset-set-tag.parameters"></a><h4>Parameters</h4>
582 <div class="informaltable"><table class="informaltable" width="100%" border="0">
583 <colgroup>
584 <col width="150px" class="parameters_name">
585 <col class="parameters_description">
586 <col width="200px" class="parameters_annotations">
587 </colgroup>
588 <tbody>
589 <tr>
590 <td class="parameter_name"><p>dataset</p></td>
591 <td class="parameter_description"><p>dataset for which the record/tag numbers should be set</p></td>
592 <td class="parameter_annotations"> </td>
593 </tr>
594 <tr>
595 <td class="parameter_name"><p>record</p></td>
596 <td class="parameter_description"><p>record number of the dataset</p></td>
597 <td class="parameter_annotations"> </td>
598 </tr>
599 <tr>
600 <td class="parameter_name"><p>tag</p></td>
601 <td class="parameter_description"><p>tag (dataset number) of the dataset</p></td>
602 <td class="parameter_annotations"> </td>
603 </tr>
604 </tbody>
605 </table></div>
606 </div>
607 </div>
608 <hr>
609 <div class="refsect2">
610 <a name="iptc-dataset-set-data"></a><h3>iptc_dataset_set_data ()</h3>
611 <pre class="programlisting"><span class="returnvalue">int</span>
612 iptc_dataset_set_data (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
613 <em class="parameter"><code>const unsigned <span class="type">char</span> *buf</code></em>,
614 <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>,
615 <em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcValidate" title="enum IptcValidate"><span class="type">IptcValidate</span></a> validate</code></em>);</pre>
616 <p>Copies bytes from a buffer as the new value for a dataset. This is the
617 correct method for setting a dataset value to a string or raw binary
618 sequence. The length of a string should be specified without the trailing
619 NULL. New memory is allocated for the value and <em class="parameter"><code>size</code></em>
620 bytes are copied
621 from <em class="parameter"><code>buf</code></em>
622 into this new memory (which is freed when the dataset is freed or
623 when a new value is set). If <em class="parameter"><code>validate</code></em>
624 is set to <a class="link" href="libiptcdata-dataset.html#IPTC-VALIDATE:CAPS"><code class="literal">IPTC_VALIDATE</code></a>, the buffer
625 will only be copied if the size does not violate the IPTC specification (it
626 must not be too long or too short). This check is ignored if the dataset's
627 tag is undefined or no information from the specification is available for
628 that tag.</p>
629 <div class="refsect3">
630 <a name="iptc-dataset-set-data.parameters"></a><h4>Parameters</h4>
631 <div class="informaltable"><table class="informaltable" width="100%" border="0">
632 <colgroup>
633 <col width="150px" class="parameters_name">
634 <col class="parameters_description">
635 <col width="200px" class="parameters_annotations">
636 </colgroup>
637 <tbody>
638 <tr>
639 <td class="parameter_name"><p>dataset</p></td>
640 <td class="parameter_description"><p>dataset for which the value should be set</p></td>
641 <td class="parameter_annotations"> </td>
642 </tr>
643 <tr>
644 <td class="parameter_name"><p>buf</p></td>
645 <td class="parameter_description"><p>buffer containing the value</p></td>
646 <td class="parameter_annotations"> </td>
647 </tr>
648 <tr>
649 <td class="parameter_name"><p>size</p></td>
650 <td class="parameter_description"><p>number of bytes to copy</p></td>
651 <td class="parameter_annotations"> </td>
652 </tr>
653 <tr>
654 <td class="parameter_name"><p>validate</p></td>
655 <td class="parameter_description"><p>whether or not the passed value should be validated against
656 the IPTC specification for this dataset's tag.</p></td>
657 <td class="parameter_annotations"> </td>
658 </tr>
659 </tbody>
660 </table></div>
661 </div>
662 <div class="refsect3">
663 <a name="iptc-dataset-set-data.returns"></a><h4>Returns</h4>
664 <p> -1 on error, 0 if validation failed, the number of bytes copied
665 on success</p>
666 </div>
667 </div>
668 <hr>
669 <div class="refsect2">
670 <a name="iptc-dataset-set-value"></a><h3>iptc_dataset_set_value ()</h3>
671 <pre class="programlisting"><span class="returnvalue">int</span>
672 iptc_dataset_set_value (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
673 <em class="parameter"><code>unsigned <span class="type">int</span> value</code></em>,
674 <em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcValidate" title="enum IptcValidate"><span class="type">IptcValidate</span></a> validate</code></em>);</pre>
675 <p>Sets the value of a dataset as an integer. This is the correct method for
676 setting a dataset value with type byte, short, or long. If <em class="parameter"><code>validate</code></em>
677 is
678 set to <a class="link" href="libiptcdata-dataset.html#IPTC-VALIDATE:CAPS"><code class="literal">IPTC_VALIDATE</code></a>, the value will only be set if the tag has type
679 byte, short, or long according the IPTC specification. This check is
680 ignored if the dataset's tag is undefined or no information from the
681 specification is available for that tag.</p>
682 <div class="refsect3">
683 <a name="iptc-dataset-set-value.parameters"></a><h4>Parameters</h4>
684 <div class="informaltable"><table class="informaltable" width="100%" border="0">
685 <colgroup>
686 <col width="150px" class="parameters_name">
687 <col class="parameters_description">
688 <col width="200px" class="parameters_annotations">
689 </colgroup>
690 <tbody>
691 <tr>
692 <td class="parameter_name"><p>dataset</p></td>
693 <td class="parameter_description"><p>dataset for which the value should be set</p></td>
694 <td class="parameter_annotations"> </td>
695 </tr>
696 <tr>
697 <td class="parameter_name"><p>value</p></td>
698 <td class="parameter_description"><p>value for the dataset</p></td>
699 <td class="parameter_annotations"> </td>
700 </tr>
701 <tr>
702 <td class="parameter_name"><p>validate</p></td>
703 <td class="parameter_description"><p>whether or not the passed value should be validated against
704 the IPTC specification for this dataset's tag.</p></td>
705 <td class="parameter_annotations"> </td>
706 </tr>
707 </tbody>
708 </table></div>
709 </div>
710 <div class="refsect3">
711 <a name="iptc-dataset-set-value.returns"></a><h4>Returns</h4>
712 <p> -1 on error, 0 if validation failed, the number of bytes copied
713 on success</p>
714 </div>
715 </div>
716 <hr>
717 <div class="refsect2">
718 <a name="iptc-dataset-set-date"></a><h3>iptc_dataset_set_date ()</h3>
719 <pre class="programlisting"><span class="returnvalue">int</span>
720 iptc_dataset_set_date (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
721 <em class="parameter"><code><span class="type">int</span> year</code></em>,
722 <em class="parameter"><code><span class="type">int</span> month</code></em>,
723 <em class="parameter"><code><span class="type">int</span> day</code></em>,
724 <em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcValidate" title="enum IptcValidate"><span class="type">IptcValidate</span></a> validate</code></em>);</pre>
725 <p>Sets the contents of the dataset to be a date with the specified value.
726 IPTC dates are stored as a string in the format YYYYMMDD.</p>
727 <div class="refsect3">
728 <a name="iptc-dataset-set-date.parameters"></a><h4>Parameters</h4>
729 <div class="informaltable"><table class="informaltable" width="100%" border="0">
730 <colgroup>
731 <col width="150px" class="parameters_name">
732 <col class="parameters_description">
733 <col width="200px" class="parameters_annotations">
734 </colgroup>
735 <tbody>
736 <tr>
737 <td class="parameter_name"><p>dataset</p></td>
738 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
739 <td class="parameter_annotations"> </td>
740 </tr>
741 <tr>
742 <td class="parameter_name"><p>year</p></td>
743 <td class="parameter_description"><p>the year (0-9999)</p></td>
744 <td class="parameter_annotations"> </td>
745 </tr>
746 <tr>
747 <td class="parameter_name"><p>month</p></td>
748 <td class="parameter_description"><p>the month (1-12)</p></td>
749 <td class="parameter_annotations"> </td>
750 </tr>
751 <tr>
752 <td class="parameter_name"><p>day</p></td>
753 <td class="parameter_description"><p>the day of the month (1-31)</p></td>
754 <td class="parameter_annotations"> </td>
755 </tr>
756 <tr>
757 <td class="parameter_name"><p>validate</p></td>
758 <td class="parameter_description"><p>if set to <a class="link" href="libiptcdata-dataset.html#IPTC-VALIDATE:CAPS"><code class="literal">IPTC_VALIDATE</code></a>, the dataset date will only be set if
759 the IPTC specification says it is of type date.</p></td>
760 <td class="parameter_annotations"> </td>
761 </tr>
762 </tbody>
763 </table></div>
764 </div>
765 <div class="refsect3">
766 <a name="iptc-dataset-set-date.returns"></a><h4>Returns</h4>
767 <p> the number of bytes written on success (always 8 in this case); 0
768 if validation fails; -1 for other failures</p>
769 </div>
770 </div>
771 <hr>
772 <div class="refsect2">
773 <a name="iptc-dataset-set-time"></a><h3>iptc_dataset_set_time ()</h3>
774 <pre class="programlisting"><span class="returnvalue">int</span>
775 iptc_dataset_set_time (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
776 <em class="parameter"><code><span class="type">int</span> hour</code></em>,
777 <em class="parameter"><code><span class="type">int</span> min</code></em>,
778 <em class="parameter"><code><span class="type">int</span> sec</code></em>,
779 <em class="parameter"><code><span class="type">int</span> tz</code></em>,
780 <em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcValidate" title="enum IptcValidate"><span class="type">IptcValidate</span></a> validate</code></em>);</pre>
781 <p>Sets the contents of the dataset to be a time with the specified value.
782 IPTC times are stored as a string in the format HHMMSS±HHMM.</p>
783 <div class="refsect3">
784 <a name="iptc-dataset-set-time.parameters"></a><h4>Parameters</h4>
785 <div class="informaltable"><table class="informaltable" width="100%" border="0">
786 <colgroup>
787 <col width="150px" class="parameters_name">
788 <col class="parameters_description">
789 <col width="200px" class="parameters_annotations">
790 </colgroup>
791 <tbody>
792 <tr>
793 <td class="parameter_name"><p>dataset</p></td>
794 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
795 <td class="parameter_annotations"> </td>
796 </tr>
797 <tr>
798 <td class="parameter_name"><p>hour</p></td>
799 <td class="parameter_description"><p>the hour (0-23)</p></td>
800 <td class="parameter_annotations"> </td>
801 </tr>
802 <tr>
803 <td class="parameter_name"><p>min</p></td>
804 <td class="parameter_description"><p>the minutes (0-59)</p></td>
805 <td class="parameter_annotations"> </td>
806 </tr>
807 <tr>
808 <td class="parameter_name"><p>sec</p></td>
809 <td class="parameter_description"><p>the seconds (0-61)</p></td>
810 <td class="parameter_annotations"> </td>
811 </tr>
812 <tr>
813 <td class="parameter_name"><p>tz</p></td>
814 <td class="parameter_description"><p>the timezone expressed as the number of minutes offset from GMT.
815 For example, EST is -300 (-5 hours).</p></td>
816 <td class="parameter_annotations"> </td>
817 </tr>
818 <tr>
819 <td class="parameter_name"><p>validate</p></td>
820 <td class="parameter_description"><p>if set to <a class="link" href="libiptcdata-dataset.html#IPTC-VALIDATE:CAPS"><code class="literal">IPTC_VALIDATE</code></a>, the dataset time will only be set if
821 the IPTC specification says it is of type time.</p></td>
822 <td class="parameter_annotations"> </td>
823 </tr>
824 </tbody>
825 </table></div>
826 </div>
827 <div class="refsect3">
828 <a name="iptc-dataset-set-time.returns"></a><h4>Returns</h4>
829 <p> the number of bytes written on success (always 11 in this case); 0
830 if validation fails; -1 for other failures</p>
831 </div>
832 </div>
833 <hr>
834 <div class="refsect2">
835 <a name="iptc-dataset-get-as-str"></a><h3>iptc_dataset_get_as_str ()</h3>
836 <pre class="programlisting">const <span class="returnvalue">char</span> *
837 iptc_dataset_get_as_str (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
838 <em class="parameter"><code><span class="type">char</span> *buf</code></em>,
839 <em class="parameter"><code>unsigned <span class="type">int</span> size</code></em>);</pre>
840 <p>Copies the value of a dataset into a buffer as a printable, NULL-terminated
841 string. For tags of type byte, short, or long, the value will be formatted
842 as a string. For tags of type string (including dates and times), the
843 string will simply be copied into the output buffer. For tags containing
844 binary data, the data will be formatted as a string in hexidecimal.</p>
845 <div class="refsect3">
846 <a name="iptc-dataset-get-as-str.parameters"></a><h4>Parameters</h4>
847 <div class="informaltable"><table class="informaltable" width="100%" border="0">
848 <colgroup>
849 <col width="150px" class="parameters_name">
850 <col class="parameters_description">
851 <col width="200px" class="parameters_annotations">
852 </colgroup>
853 <tbody>
854 <tr>
855 <td class="parameter_name"><p>dataset</p></td>
856 <td class="parameter_description"><p>pointer to an <a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a></p></td>
857 <td class="parameter_annotations"> </td>
858 </tr>
859 <tr>
860 <td class="parameter_name"><p>buf</p></td>
861 <td class="parameter_description"><p>buffer to which the string will be copied</p></td>
862 <td class="parameter_annotations"> </td>
863 </tr>
864 <tr>
865 <td class="parameter_name"><p>size</p></td>
866 <td class="parameter_description"><p>maximum size of the buffer</p></td>
867 <td class="parameter_annotations"> </td>
868 </tr>
869 </tbody>
870 </table></div>
871 </div>
872 <div class="refsect3">
873 <a name="iptc-dataset-get-as-str.returns"></a><h4>Returns</h4>
874 <p> the output string on success, or NULL on failure</p>
875 </div>
876 </div>
877 <hr>
878 <div class="refsect2">
879 <a name="iptc-dataset-dump"></a><h3>iptc_dataset_dump ()</h3>
880 <pre class="programlisting"><span class="returnvalue">void</span>
881 iptc_dataset_dump (<em class="parameter"><code><a class="link" href="libiptcdata-dataset.html#IptcDataSet" title="struct IptcDataSet"><span class="type">IptcDataSet</span></a> *dataset</code></em>,
882 <em class="parameter"><code>unsigned <span class="type">int</span> indent</code></em>);</pre>
883 <p>A debugging aid that prints out the contents of a dataset to
884 standard output.</p>
885 <div class="refsect3">
886 <a name="iptc-dataset-dump.parameters"></a><h4>Parameters</h4>
887 <div class="informaltable"><table class="informaltable" width="100%" border="0">
888 <colgroup>
889 <col width="150px" class="parameters_name">
890 <col class="parameters_description">
891 <col width="200px" class="parameters_annotations">
892 </colgroup>
893 <tbody>
894 <tr>
895 <td class="parameter_name"><p>dataset</p></td>
896 <td class="parameter_description"><p>dataset to print</p></td>
897 <td class="parameter_annotations"> </td>
898 </tr>
899 <tr>
900 <td class="parameter_name"><p>indent</p></td>
901 <td class="parameter_description"><p>indentation level of the printout</p></td>
902 <td class="parameter_annotations"> </td>
903 </tr>
904 </tbody>
905 </table></div>
906 </div>
907 </div>
908 </div>
909 <div class="refsect1">
910 <a name="libiptcdata-dataset.other_details"></a><h2>Types and Values</h2>
911 <div class="refsect2">
912 <a name="IptcDataSet"></a><h3>struct IptcDataSet</h3>
913 <pre class="programlisting">struct IptcDataSet {
914 IptcRecord record;
915 IptcTag tag;
916 const IptcTagInfo * info;
917
918 unsigned char *data;
919 unsigned int size;
920
921 /* Data containing this dataset */
922 IptcData *parent;
923
924 IptcDataSetPrivate *priv;
925 };
926 </pre>
927 </div>
928 <hr>
929 <div class="refsect2">
930 <a name="IptcValidate"></a><h3>enum IptcValidate</h3>
931 <div class="refsect3">
932 <a name="IptcValidate.members"></a><h4>Members</h4>
933 <div class="informaltable"><table class="informaltable" width="100%" border="0">
934 <colgroup>
935 <col width="300px" class="enum_members_name">
936 <col class="enum_members_description">
937 <col width="200px" class="enum_members_annotations">
938 </colgroup>
939 <tbody>
940 <tr>
941 <td class="enum_member_name"><p><a name="IPTC-DONT-VALIDATE:CAPS"></a>IPTC_DONT_VALIDATE</p></td>
942 <td> </td>
943 <td> </td>
944 </tr>
945 <tr>
946 <td class="enum_member_name"><p><a name="IPTC-VALIDATE:CAPS"></a>IPTC_VALIDATE</p></td>
947 <td> </td>
948 <td> </td>
949 </tr>
950 </tbody>
951 </table></div>
952 </div>
953 </div>
954 </div>
955 </div>
956 <div class="footer">
957 <hr>Generated by GTK-Doc V1.28</div>
958 </body>
959 </html>