MCPcopy Create free account
hub / github.com/acl-dev/acl / add

Method add

lib_acl_cpp/src/hsocket/hsclient.cpp:316–334  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314}
315
316bool hsclient::add(const char* values[], int num)
317{
318 if (tbl_curr_ == NULL) {
319 error_ = HS_ERR_NOT_OPEN;
320 logger_error("tbl not opened yet!");
321 return false;
322 } else if (values == NULL || values[0] == NULL) {
323 error_ = HS_ERR_PARAMS;
324 logger_error("input invalid");
325 return false;
326 } else if (num <= 0 || num > tbl_curr_->nfld_) {
327 error_ = HS_ERR_PARAMS;
328 logger_error("num(%d) invalid, nfld(%d)",
329 num, tbl_curr_->nfld_);
330 return false;
331 }
332
333 return query("+", values, num, NULL, 0, NULL, 0);
334}
335
336bool hsclient::fmt_add(const char* first_value, ...)
337{

Callers 2

acl_mdb_addFunction · 0.45
acl_mdt_addFunction · 0.45

Calls 1

queryClass · 0.50

Tested by

no test coverage detected