How do I specify the '.CustomAttributes.TypeName'
Show older comments
Hi guys,
I have defined a custom storage class. It currently defines the structure as 'Instant specific' (as per the cscdesigner). I then assign variables into the desired structure with an m script which does the following:
wibble.RTWInfo.CustomAttributes.StructName = 'runtime_structname';
When generating code, it comes out looking like this:
extern const runtime_structname_type = *runtime_structname;
This is not what I want to generate, I want to also specify the 'TypeName', as mentioned in the 'csc_registeration.m'. When not set as instant specific the structure type can be defined, but I want to dynamically assign this to make code that looks like this (notice the type does not contain the word runtime):
extern const structname_t = *runtime_structname;
Unfortunately, I cannot access the TypeName class, the following error is generated, "No public field TypeName exists for class"
Does anyone know how I can achieve what I want?
Thanks in advance.
Craig
1 Comment
Craig Barry
on 17 Nov 2012
Answers (0)
Categories
Find more on MATLAB Coder in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!