function outstruct = parseClassDef(model)
outstruct = struct;
txt = get(model.txtClassDef,'String');

% txt =txt(find(all(isspace(txt(i,:))) ???

nClasses = size(txt,1); % clear empty lines!

outstruct.eventMatrix = [];

for i = 1:nClasses
    line = txt(i,:);
    
    [label rem] = strtok(line,',');
    
    outstruct.labelCells{i} = strtrim(label);
    
    conds = eval(strtrim(rem(2:end)));
    outstruct.conditionCells{i} = conds;
    outstruct.eventMatrix   = [outstruct.eventMatrix ; conds];
end

end