Main Content

getAvailableProperties

Class: coder.dictionary.Entry
Namespace: coder.dictionary

Return properties for code definition

Syntax

properties = getAvailableProperties(entryObj)

Description

properties = getAvailableProperties(entryObj) returns a cell array of the properties of the code definition that entryObj represents.

Input Arguments

expand all

Embedded Coder Dictionary entry, specified as a coder.dictionary.Entry object.

Output Arguments

expand all

Code definition properties available for the definition that entryObj 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

expand all

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 a coder.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 and set methods.

properties = getAvailableProperties(entryObj)

Version History

Introduced in R2019b