coder.dictionary.Entry.getAvailableProperties - Return properties for code definition - MATLAB (original) (raw)
Main Content
Class: coder.dictionary.Entry
Namespace: coder.dictionary
Return properties for code definition
Syntax
properties = getAvailableProperties(entryObj)
Description
[properties](#mw%5Fa9557e79-4a44-4444-bdbf-45927bab0ca4) = getAvailableProperties([entryObj](#mw%5F8502f18d-b7e9-47e9-bc86-11ebdf23e722))
returns a cell array of the properties of the code definition that entryObj
represents.
Input Arguments
Output Arguments
Code definition properties available for the definition thatentryObj
represents, returned as a cell array of character vectors. For a list of properties available for each type of code definition, see Embedded Coder Dictionary.
Examples
Open the model RollAxisAutopilot
and represent the Embedded Coder Dictionary by using a coder.Dictionary
object. Use this object to access the Storage Classes section of the dictionary and represent the section by using a coder.dictionary.Section
object.
openExample('RollAxisAutopilot') coderDictionary = coder.dictionary.open('RollAxisAutopilot'); storageClassesSect = getSection(coderDictionary, 'StorageClasses');
Represent the example storage class ParamStruct
by using acoder.dictionary.Entry
object.
entryObj = getEntry(storageClassesSect,'ParamStruct');
Get a list of the properties of the ParamStruc
storage class. To get and set the values of these properties, use the get andset methods.
properties = getAvailableProperties(entryObj)
Version History
Introduced in R2019b