cwFlowTypes.h/cpp : Implemented var_set(abuf),var_set(fbuf),var_set(mbuf).

This commit is contained in:
kevin 2024-07-03 14:27:50 -04:00
parent 0515feb73a
commit fb9aea2749
2 changed files with 36 additions and 0 deletions

View File

@ -198,6 +198,7 @@ namespace cw
switch( v->tflag & kTypeMask )
{
case kInvalidTFl:
cwLogPrint("<invalid>");
break;
case kBoolTFl:
@ -2621,6 +2622,40 @@ cw::rc_t cw::flow::var_set( proc_t* proc, unsigned vid, unsigned chIdx, const ch
return rc;
}
cw::rc_t cw::flow::var_set( proc_t* proc, unsigned vid, unsigned chIdx, abuf_t* val )
{
rc_t rc = kOkRC;
variable_t* var = nullptr;
if((rc = var_find(proc, vid, chIdx, var )) == kOkRC )
rc = _var_set_driver(var,kABufTFl,val);
return rc;
}
cw::rc_t cw::flow::var_set( proc_t* proc, unsigned vid, unsigned chIdx, fbuf_t* val )
{
rc_t rc = kOkRC;
variable_t* var = nullptr;
if((rc = var_find(proc, vid, chIdx, var )) == kOkRC )
rc = _var_set_driver(var,kFBufTFl,val);
return rc;
}
cw::rc_t cw::flow::var_set( proc_t* proc, unsigned vid, unsigned chIdx, mbuf_t* val )
{
rc_t rc = kOkRC;
variable_t* var = nullptr;
if((rc = var_find(proc, vid, chIdx, var )) == kOkRC )
rc = _var_set_driver(var,kMBufTFl,val);
return rc;
}
cw::rc_t cw::flow::var_set( proc_t* proc, unsigned vid, unsigned chIdx, const object_t* val )
{
rc_t rc = kOkRC;

View File

@ -704,6 +704,7 @@ namespace cw
rc_t var_set( proc_t* proc, unsigned vid, unsigned chIdx, const char* val );
rc_t var_set( proc_t* proc, unsigned vid, unsigned chIdx, abuf_t* val );
rc_t var_set( proc_t* proc, unsigned vid, unsigned chIdx, fbuf_t* val );
rc_t var_set( proc_t* proc, unsigned vid, unsigned chIdx, mbuf_t* val );
rc_t var_set( proc_t* proc, unsigned vid, unsigned chIdx, const object_t* val );