// set the value for a given output /*------------------------------------------------- * output_set_value - set the value of an output * -------------------------------------------------*/ void set_value(string outname, int value) { output_item item = find_item(outname); // if no item of that name, create a new one and force notification if (item == null) { create_new_item(outname, value).notify(value); } else { item.set(value); // set the new value (notifies on change) } }
public void op(s32 value) { m_item.set(value); }