Esempio n. 1
0
        // 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)
            }
        }
Esempio n. 2
0
 public void op(s32 value)
 {
     m_item.set(value);
 }