RTF Manager (Embedded)
BangDB returns set of data for query using Result Set (Embedded). Result Set (Embedded) allows iteration over keys and values.
C++
To create BangDBRTF manager object
BangDBRTFManager(BangDBMLHelper *_bmlh = NULL, BangDBResourceManager *_brs = NULL);
To add UDF
char *add_udf(const char *udf_req);
It returns NULL for error. The memory should be released using delete[]
.
To delete UDF
char *remove_udf(const char *lib_name);
It returns NULL for error. The memory should be released using delete[]
.
To add code
int add_code(const char *code, const char *lib_name, const char *baseclass = "bangdb_rtf_base.h", const char *create_func = "maker");
To load library to execute a code
int load_lib(const char *base_path, const char *lib_name, const char *create_func = "maker");
To execute the code
int exec_rtf(const char *lib_name, int argc, void *arg[], void **ret);
To get UDF list
char *get_udf_list();
It returns NULL for error. The memory should be released using delete[]
.
To close RTFmanager object
void close_rtf_manager(bool force = false);
To delete BangDBRTFManager object
virtual ~BangDBRTFManager();