cwFlowTypes.h/cpp : Implemented var_set(abuf),var_set(fbuf),var_set(mbuf).
This commit is contained in:
parent
0515feb73a
commit
fb9aea2749
@ -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;
|
||||
|
@ -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 );
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user