yumapro  24.10-3
YumaPro SDK
Loading...
Searching...
No Matches
val_child.h File Reference

Value Node Child Access Support. More...

#include "val.h"
Include dependency graph for val_child.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Enumerations

enum  val_child_op_t {
  VAL_CHILD_OP_NONE ,
  VAL_CHILD_OP_PREV ,
  VAL_CHILD_OP_SAME ,
  VAL_CHILD_OP_NEXT
}
 modify the procedure call to get the previous, same or next entry More...
 

Functions

status_t val_child_add (val_value_t *child, val_value_t *parent)
 Add a child value node to a parent value node. More...
 
status_t val_child_add_last (val_value_t *child, val_value_t *parent)
 Add a child value node as last node to a parent value node. More...
 
status_t val_child_add_force (val_value_t *child, val_value_t *parent)
 Add a child value node to a parent value node Force add even if Tree Insersion fails. More...
 
status_t val_child_add_force_last (val_value_t *child, val_value_t *parent)
 Add a child value node as last node to a parent value node Force if tree insertion fails. More...
 
val_value_tval_child_find (const val_value_t *parent, const xmlChar *child_modname, const xmlChar *child_name)
 Find the child node for the specified child name and modname. More...
 
val_value_tval_child_find_next (const val_value_t *parent, const xmlChar *child_modname, const xmlChar *child_name, const val_value_t *lastmatch)
 Find the next child header for the specified child. More...
 
val_value_tval_child_find_nsid (const val_value_t *parent, xmlns_id_t child_nsid, const xmlChar *child_name)
 Find the child node for the specified child name and namespace ID. More...
 
val_value_tval_child_find_same_nsid (const val_value_t *parent, xmlns_id_t child_nsid, const xmlChar *child_name, val_value_t *curchild, val_child_op_t child_op)
 Find the child node for the specified child name and modname. More...
 
val_value_tval_child_find_obj (const val_value_t *parent, const obj_template_t *child_obj)
 Find the child node for the specified child object header. More...
 
val_value_tval_child_find_same (const val_value_t *child, const val_value_t *parent, val_child_op_t child_op)
 Find the child header for the specified child, which is a different root; e.g., trying to match candidate value in running. More...
 
val_value_tval_child_find_same_lastmatch (const val_value_t *child, const val_value_t *parent, val_value_t *lastmatch, val_child_op_t child_op)
 Find the child header for the specified child. More...
 
val_value_tval_child_find_count (const val_value_t *parent, const xmlChar *child_modname, const xmlChar *child_name, uint32 *matchcount)
 Find the child node for the specified child name and modname Get the first instance and also return the count. More...
 
val_child_hdr_tval_child_find_hdr (val_value_t *child, val_value_t *parent)
 Find the child header for the specified child. More...
 
val_child_hdr_tval_child_find_hdr_lastmatch (val_value_t *child, val_value_t *parent, val_value_t *lastmatch)
 Find the child header for the specified child based on the last match. More...
 
status_t val_child_insert (val_value_t *child, val_value_t *current, val_value_t *parent, op_insertop_t insert_op)
 Insert a child value node into a parent value node before or after the specified node. More...
 
void val_child_remove (val_value_t *child)
 Remove a child value node from its parent value node. More...
 
void val_child_mark_deleted (val_value_t *child)
 Remove a deleted child value node (mark deleted only) More...
 
void val_child_mark_undeleted (val_value_t *child)
 Re-Add a previously deleted child value node (unmark deleted) More...
 
status_t val_child_swap (val_value_t *newchild, val_value_t *curchild)
 Swap a child value node with a current value node. More...
 
val_value_tval_child_first (const val_value_t *parent)
 Get the first child present for this parent. More...
 
val_value_tval_child_next (const val_value_t *curchild)
 Get the next child present for the current node Parent must be set. More...
 
val_value_tval_child_next_same (val_value_t *curnode)
 Get the next node of the same type. More...
 
val_value_tval_child_prev_same (val_value_t *curnode)
 Get the previous node of the same type. More...
 
val_value_tval_child_first_terminal (const val_value_t *parent)
 Get the first terminal node child present for this parent. More...
 
val_value_tval_child_next_terminal (const val_value_t *curchild)
 Get the next terminal node child present for the current node Parent must be set. More...
 
uint32 val_child_count (val_value_t *parent)
 Get the number of non-deleted children in this parent. More...
 
uint32 val_child_count_nsid (val_value_t *parent, xmlns_id_t nsid, const xmlChar *name, val_value_t **firstval)
 Get the number of non-deleted children matching the NSID and namestring in this parent. More...
 
void val_child_clean_hdrQ (dlq_hdr_t *child_hdrQ)
 Empty and clean a Q of child headers. More...
 
boolean val_child_find_all_children (val_walker2_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean textmode)
 Find all children instances of the specified node(s) The walker fn will be called for each match. More...
 
boolean val_child_find_all_ancestors (val_walker2_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean textmode, boolean orself)
 Find all the ancestor instances of the specified node within the path to root from the current node; use the filter criteria provided. More...
 
boolean val_child_find_all_descendants (val_walker2_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean textmode, boolean orself, boolean forceall)
 Find all occurances of the specified node within the current subtree. More...
 
boolean val_child_find_all_descendants_old (val_walker_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean textmode, boolean orself, boolean forceall)
 Find all occurances of the specified node within the current subtree. More...
 
boolean val_child_find_all_pfaxis (val_walker2_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean dblslash, boolean textmode, ncx_xpath_axis_t axis)
 Find all occurances of the specified node for the specified preceding or following axis. More...
 
boolean val_child_find_all_pfsibling_axis (val_walker2_fn_t walkerfn, void *cookie1, void *cookie2, val_value_t *startnode, xmlns_id_t mod_nsid, const xmlChar *name, boolean configonly, boolean dblslash, boolean textmode, ncx_xpath_axis_t axis)
 Find all occurances of the specified node for the specified axis. More...
 
void val_child_move_children (val_value_t *srcval, val_value_t *destval)
 Move all the child nodes from src to dest Source and dest must both be containers! More...
 
status_t val_child_add_clean (val_editvars_t *editvars, val_value_t *child, val_value_t *parent, dlq_hdr_t *cleanQ)
 Add a child value node to a parent value node This is only called by the agent when adding nodes to a target database. More...
 
status_t val_child_add_clean2 (val_editvars_t *editvars, val_value_t *child, val_value_t *parent, dlq_hdr_t *cleanQ, boolean check_exists)
 Add a child value node to a parent value node. More...
 
status_t val_child_add_clean_test (val_value_t *child, val_value_t *parent, dlq_hdr_t *cleanQ)
 Test the add_child_clean. More...
 
status_t val_child_add_clean3 (val_editvars_t *editvars, val_value_t *child, val_value_t *parent, boolean check_exists)
 Add a child value node to a parent value node. More...
 
void val_child_mark_default_deleted (val_value_t *val)
 Mark all the leaf-list nodes that are defaults as deleted. More...
 
void val_child_finish_default_deleted (val_value_t *val)
 Delete all the marked default leaf-list nodes. More...
 
void val_child_mark_default_undeleted (val_value_t *val)
 Mark all the leaf-list nodes that are defaults as deleted. More...
 
val_value_tval_child_first_test (val_value_t *parent, val_hdr_test_fn_t hdr_test_fn, val_test2_fn_t test_fn, void *cookie)
 Get the first child present for this parent that passes the callback tests. More...
 
val_value_tval_child_next_test (val_value_t *curchild, val_hdr_test_fn_t hdr_test_fn, val_test2_fn_t test_fn, void *cookie)
 Get the next child present for this parent that passes the callback tests. More...
 
val_value_tval_child_hdr_first (const val_child_hdr_t *hdr)
 Get the first entry in the child header. More...
 
val_value_tval_child_hdr_last (const val_child_hdr_t *hdr)
 Get the last entry in the child header. More...
 
val_value_tval_child_hdr_next (const val_child_hdr_t *hdr, const val_value_t *curval)
 Get the next entry in the child header. More...
 
val_value_tval_child_hdr_previous (const val_child_hdr_t *hdr, const val_value_t *curval)
 Get the previous entry in the child header. More...
 
val_value_tval_child_hdr_find_match (val_child_hdr_t *hdr, const val_value_t *findval)
 Find the matching entry in the hdr. More...
 
boolean val_child_find_deleted (const val_value_t *startnode, const val_value_t *delnode)
 Find the deleted node within the startnode. More...
 

Detailed Description

Value Node Child Access Support.