Hi,
check out
>>web(fullfile(docroot, 'simulink/ug/matlab-language-features-supported-for-code-generation.html'))
or use the online doc. Classes should be supported by MATLAB Coder. AFAIK the MATLAB Coder converts the MATLAB class into a structure like format in C.