cwFlowNet.h/cpp : Renamed instance_t to proc_t.

This commit is contained in:
kevin 2024-05-06 15:46:12 -04:00
parent eca42baf9f
commit 04a34902e6
2 changed files with 263 additions and 289 deletions

File diff suppressed because it is too large Load Diff

View File

@ -25,13 +25,13 @@ namespace cw
rc_t exec_cycle( network_t& net );
rc_t get_variable( network_t& net, const char* inst_label, const char* var_label, unsigned chIdx, instance_t*& instPtrRef, variable_t*& varPtrRef );
rc_t get_variable( network_t& net, const char* inst_label, const char* var_label, unsigned chIdx, proc_t*& instPtrRef, variable_t*& varPtrRef );
template< typename T >
rc_t set_variable_value( network_t& net, const char* inst_label, const char* var_label, unsigned chIdx, T value )
{
rc_t rc = kOkRC;
instance_t* inst = nullptr;
proc_t* inst = nullptr;
variable_t* var = nullptr;
// get the variable
@ -53,7 +53,7 @@ namespace cw
rc_t get_variable_value( network_t& net, const char* inst_label, const char* var_label, unsigned chIdx, T& valueRef )
{
rc_t rc = kOkRC;
instance_t* inst = nullptr;
proc_t* inst = nullptr;
variable_t* var = nullptr;
// get the variable