cwFlowNet.h/cpp : network_apply_preset() now takes a
This commit is contained in:
parent
8f405e4784
commit
f2dea88734
@ -2061,7 +2061,7 @@ errLabel:
|
||||
}
|
||||
|
||||
|
||||
cw::rc_t cw::flow::network_apply_preset( network_t& net, const char* presetLabel )
|
||||
cw::rc_t cw::flow::network_apply_preset( network_t& net, const char* presetLabel, unsigned proc_label_sfx_id )
|
||||
{
|
||||
rc_t rc = kOkRC;
|
||||
const object_t* net_preset_value;
|
||||
@ -2085,7 +2085,7 @@ cw::rc_t cw::flow::network_apply_preset( network_t& net, const char* presetLabel
|
||||
instance_t* inst;
|
||||
|
||||
// locate the instance
|
||||
if((inst = instance_find(net,inst_label,kBaseSfxId)) == nullptr )
|
||||
if((inst = instance_find(net,inst_label,proc_label_sfx_id)) == nullptr )
|
||||
{
|
||||
rc = cwLogError(kInvalidIdRC,"The network instance '%s' refered to in network preset '%s' could not be found.",inst_label,presetLabel);
|
||||
goto errLabel;
|
||||
|
@ -70,7 +70,10 @@ namespace cw
|
||||
return rc;
|
||||
}
|
||||
|
||||
rc_t network_apply_preset( network_t& net, const char* presetLabel );
|
||||
// 'proc_label_sfx_id' is the proc label_sfx_id to be used to identify all proc's which will
|
||||
// be updated by the preset application. This is used to identify the set of procs to be updated
|
||||
// for 'poly' networks.
|
||||
rc_t network_apply_preset( network_t& net, const char* presetLabel, unsigned proc_label_sfx_id=kBaseSfxId );
|
||||
rc_t network_apply_dual_preset( network_t& net, const char* presetLabel_0, const char* presetLabel_1, double coeff );
|
||||
rc_t network_apply_preset( network_t& net, const multi_preset_selector_t& mps );
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user