Cplusplus chop reference input channels by name

Is there an easy way to reference input channels of a CHOP plugin by name instead of index?
so instead of
inputs->CHOPInputs[j].channels[0][i]
something like

switch(chanName(0))
case “id”:
inputs->CHOPInputs[j].channels[0][i]
break;

or
inputs->CHOPInputs[j].channels(“id”)[i]