Main Content

getAvailableProperties

Class: coder.dictionary.Entry
Package: 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 rtwdemo_roll 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.

rtwdemo_roll
coderDictionary = coder.dictionary.open('rtwdemo_roll');
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)
Introduced in R2019b