To use the node in your project you should have the cesars/4067 library installed. Use the “File → Add Library” menu item in XOD IDE if you don’t have it yet. See Using libraries for more info.
C++ implementation
struct State {
};
{{ GENERATED_CODE }}
void evaluate(Context ctx) {
emitValue<output_OUT_0_15>(ctx, getValue<input_IN_0_15>(ctx));
auto ch = getValue<input_IN_0_15>(ctx);
if (ch == 0)
emitValue<output_OUT>(ctx, getValue<input_D0>(ctx));
else if (ch == 1)
emitValue<output_OUT>(ctx, getValue<input_D1>(ctx));
else if (ch == 2)
emitValue<output_OUT>(ctx, getValue<input_D2>(ctx));
else if (ch == 3)
emitValue<output_OUT>(ctx, getValue<input_D3>(ctx));
else if (ch == 4)
emitValue<output_OUT>(ctx, getValue<input_D4>(ctx));
else if (ch == 5)
emitValue<output_OUT>(ctx, getValue<input_D5>(ctx));
else if (ch == 6)
emitValue<output_OUT>(ctx, getValue<input_D6>(ctx));
else if (ch == 7)
emitValue<output_OUT>(ctx, getValue<input_D7>(ctx));
else if (ch == 8)
emitValue<output_OUT>(ctx, getValue<input_D8>(ctx));
else if (ch == 9)
emitValue<output_OUT>(ctx, getValue<input_D9>(ctx));
else if (ch == 10)
emitValue<output_OUT>(ctx, getValue<input_D10>(ctx));
else if (ch == 11)
emitValue<output_OUT>(ctx, getValue<input_D11>(ctx));
else if (ch == 12)
emitValue<output_OUT>(ctx, getValue<input_D12>(ctx));
else if (ch == 13)
emitValue<output_OUT>(ctx, getValue<input_D13>(ctx));
else if (ch == 14)
emitValue<output_OUT>(ctx, getValue<input_D14>(ctx));
else if (ch == 15)
emitValue<output_OUT>(ctx, getValue<input_D15>(ctx));
}