Home | History | Annotate | Download | only in util

Lines Matching refs:hdf

8  * http://www.clearsilver.net/license.hdf
23 typedef struct _hdf HDF;
28 * zip file, etc. The HDF is provided so you can choose to use the
32 * your top level HDF node.
37 typedef NEOERR* (*HDFFILELOAD)(void *ctx, HDF *hdf, const char *filename,
76 * Function: hdf_init - Initialize an HDF data set
77 * Description: hdf_init initializes an HDF data set and returns the
79 * Input: hdf - pointer to an HDF pointer
80 * Output: hdf - allocated hdf node
83 NEOERR* hdf_init (HDF **hdf);
86 * Function: hdf_destroy - deallocate an HDF data set
88 * with an hdf data set. Although you can pass an HDF node
93 * Input: hdf - pointer to an HDF data set allocated with hdf_init
97 void hdf_destroy (HDF **hdf);
102 * Description: hdf_get_int_value walks the HDF data set pointed to by
103 * hdf to name, and returns the value of that node
106 * Input: hdf -> a node in an HDF data set
113 int hdf_get_int_value (HDF *hdf, const char *name, int defval);
117 * Description: hdf_get_value walks the data set pointed to by hdf via
120 * Input: hdf -> the dataset node to start from
130 char *hdf_get_value (HDF *hdf, const char *name, const char *defval);
134 * Description: hdf_get_valuevf walks the data set pointed to by hdf via
139 * Input: hdf -> the dataset node to start from
147 char* hdf_get_valuevf (HDF *hdf, const char *namefmt, va_list ap);
151 * Description: hdf_get_valuef walks the data set pointed to by hdf via
156 * Input: hdf -> the dataset node to start from
164 char* hdf_get_valuef (HDF *hdf, const char *namefmt, ...)
168 * Function: hdf_get_copy - Returns a copy of a string in the HDF data set
171 * Input: hdf -> the dataset node to start from
179 NEOERR* hdf_get_copy (HDF *hdf, const char *name, char **value,
183 * Function: hdf_get_obj - return the HDF data set node at a named location
184 * Description: hdf_get_obj walks the dataset given by hdf to the node
186 * Input: hdf -> the dataset node to start from
191 HDF* hdf_get_obj (HDF *hdf, const char *name);
200 * Input: hdf -> the dataset node to start from
205 NEOERR * hdf_get_node (HDF *hdf, const char *name, HDF **ret);
209 * Description: hdf_get_child will walk the dataset starting at hdf to
211 * Input: hdf -> the dataset node to start from
217 HDF* hdf_get_child (HDF *hdf, const char *name);
226 HDF_ATTR* hdf_get_attr (HDF *hdf, const char *name);
235 NEOERR* hdf_set_attr (HDF *hdf, const char *name, const char *key,
241 * accessors to the HDF dataset. Although we do not
242 * currently "hide" the HDF struct implementation, we
245 * Input: hdf -> the hdf dataset node
249 HDF* hdf_obj_child (HDF *hdf);
253 * Description: hdf_obj_next is an accessor function for the HDF struct
254 * Input: hdf -> the hdf dataset node
258 HDF* hdf_obj_next (HDF *hdf);
268 * Input: hdf -> the hdf dataset node
272 HDF* hdf_obj_top (HDF *hdf);
275 * Function: hdf_obj_attr - Return the HDF Attributes for a node
281 HDF_ATTR* hdf_obj_attr (HDF *hdf);
288 * Input: hdf -> the hdf dataset node
293 char* hdf_obj_name (HDF *hdf);
301 * Input: hdf -> the hdf dataset node
305 char* hdf_obj_value (HDF *hdf);
318 * Input: hdf -> the pointer to the hdf dataset
324 NEOERR* hdf_set_value (HDF *hdf, const char *name, const char *value);
340 * like reading a single line of an HDF string or file,
343 * Input: hdf -> the pointer to the hdf dataset
348 NEOERR* hdf_set_valuef (HDF *hdf, const char *fmt, ...)
350 NEOERR* hdf_set_valuevf (HDF *hdf, const char *fmt, va_list ap);
357 * Input: hdf -> the pointer to the hdf dataset
363 NEOERR* hdf_set_int_value (HDF *hdf, const char *name, int value);
368 * Description: hdf_set_copy first walks the hdf dataset to the named src
371 * Input: hdf -> the pointer to the dataset node
377 NEOERR* hdf_set_copy (HDF *hdf, const char *dest, const char *src);
387 * Input: hdf -> the hdf dataset node
394 NEOERR* hdf_set_buf (HDF *hdf, const char *name, char *value);
399 * an HDF dataset. The link is "by name" hence the term
409 * Input: hdf -> the dataset node
416 NEOERR *hdf_set_symlink (HDF *hdf
419 * Function: hdf_sort_obj - sort the children of an HDF node
420 * Description: hdf_sort_obj will sort the children of an HDF node,
427 * a pointer to an HDF struct, so your comparison function
428 * should work on HDF ** pointers.
429 * Input: h - HDF node
432 * are pointers to pointers to HDF elements. For
435 * HDF **ha = (HDF **)a;
436 * HDF **hb = (HDF **)b;
444 NEOERR *hdf_sort_obj(HDF *h, int (*compareFunc)(const void *, const void *));
447 * Function: hdf_read_file - read an HDF data file
453 NEOERR* hdf_read_file (HDF *hdf, const char *path);
456 * Function: hdf_write_file - write an HDF data file
462 NEOERR* hdf_write_file (HDF *hdf, const char *path);
465 * Function: hdf_write_file_atomic - write an HDF data file atomically
474 NEOERR* hdf_write_file_atomic (HDF *hdf, const char *path);
477 * Function: hdf_read_string - read an HDF string
483 NEOERR* hdf_read_string (HDF *hdf, const char *s);
486 * Function: hdf_read_string_ignore - Read an HDF string and ignore errors
492 NEOERR* hdf_read_string_ignore (HDF *hdf, const char *s, int ignore);
495 * Function: hdf_write_string - serialize an HDF dataset to a string
501 NEOERR* hdf_write_string (HDF *hdf, char **s);
504 * Function: hdf_dump - dump an HDF dataset to stdout
510 NEOERR* hdf_dump (HDF *hdf, const char *prefix);
513 * Function: hdf_dump_format - dump an HDF dataset to FILE *fp
519 NEOERR* hdf_dump_format (HDF *hdf, int lvl, FILE *fp);
522 * Function: hdf_dump_str - dump an HDF dataset to STRING
528 NEOERR* hdf_dump_str(HDF *hdf, const char *prefix, int compact, STRING *str);
531 * Function: hdf_remove_tree - delete a subtree of an HDF dataset
537 NEOERR* hdf_remove_tree (HDF *hdf, const char *name);
540 * Function: hdf_copy - copy part of an HDF dataset to another
541 * Description: hdf_copy is a deep copy of an HDF tree pointed to by
546 * src -> the hdf dataset to copy to the destination
550 NEOERR* hdf_copy (HDF *dest_hdf, const char *name, HDF *src);
553 * Function: hdf_search_path - Find a file given a search path in HDF
557 * hdf.loadpaths.
558 * Input: hdf -> the hdf dataset to use
564 NEOERR* hdf_search_path (HDF *hdf, const char *path, char *full);
573 * other file search functions, or load the hdf file
575 * Input: hdf - pointer to a head HDF node
583 void hdf_register_fileload(HDF *hdf, void *ctx, HDFFILELOAD fileload);