An advanced C++ multi channel generic device that allows to group or merge scalar and spectrum attributes