Back to home page

Enduro/X

 
 

    


0001 BBOOLEV(3)
0002 ==========
0003 :doctype: manpage
0004 
0005 
0006 NAME
0007 ----
0008 Bboolev - Evaluate compiled expression tree against UBF buffer
0009 
0010 
0011 SYNOPSIS
0012 --------
0013 
0014 #include <ubf.h>
0015 
0016 int Bboolev (UBFH *'p_ub', char *'tree');
0017 
0018 Link with '-lubf -lnstd -lm -lpthread'
0019 
0020 DESCRIPTION
0021 -----------
0022 Evaluate compiled Boolean expression in 'tree' against UBF buffer in 'p_ub'.
0023 In case if accessing *BFLD_VIEW* subfields, value is read as *BFLD_STRING*.
0024 
0025 RETURN VALUE
0026 ------------
0027 On success, *Bboolev()* and result is TRUE, then *1* is returned. ON 
0028 success but statement is FALSE, then *0* is returned. 
0029 On error *-1* is returned, with *Berror* set to indicate the error.
0030 
0031 ERRORS
0032 ------
0033 Note that *Bstrerror()* returns generic error message plus custom message with 
0034 debug info from last function call.
0035 
0036 *BNOTFLD* 'p_ub' is not fielded buffer or argument NULL.
0037 
0038 *BEINVAL* 'tree' parameter is NULL.
0039 
0040 *BALIGNERR* Corrupted buffer or pointing to not aligned memory area.
0041 
0042 *BNOTFLD* Buffer not fielded, not correctly allocated or corrupted.
0043 
0044 *BBADFLD* Invalid field id passed.
0045 
0046 *BNOTPRES* Field not present.
0047 
0048 *FMALLOC* Malloc failed.
0049 
0050 *BSYNTAX* Synax error in script.
0051 
0052 *BBADNAME* Bad field name specified.
0053 
0054 EXAMPLE
0055 -------
0056 See *ubftest/test_expr.c* for sample code.
0057 
0058 BUGS
0059 ----
0060 Report bugs to support@mavimax.com
0061 
0062 SEE ALSO
0063 --------
0064 *Bboolco(3)* *Bfloatev(3)* *Btreefree(3)*
0065 
0066 COPYING
0067 -------
0068 (C) Mavimax, Ltd
0069