| |||||||||||||
Reference/es_mbb_mbn_rSyntaxint es_mbb_mbn_r( struct es_mbb *fb, const char *fieldname, struct es_mbn ***pvar ); Arguments
Return Codes
DescriptionBind by reference the database node program variable referenced by Binding by reference means that a pointer to This is particularly useful for constructing new database nodes via es_mbn_new(), since a reference to /* given that we've constructed a database, class, binding, iterator and node */ struct es_mb *database; struct es_mbc *c_parent; struct es_mbb *b_parent; struct es_mbi *i_parent; struct es_mbn *n_parent; /* construct field-binding for "Child" and bind a struct es_mbn* by reference */ struct es_mbn **f_child; es_mbb_mbn_r( b_parent, "Child", &f_child ); /* lookup some row in the parent node */ es_mbi_findupdate( i_parent, n_parent ); /* construct a new child node if does not exist */ if ( ! *f_child ) { es_mbn_new( c_child, f_child ); } | |||||||||||||
Copyright © 2012 by Richard Brooks |