coder.Dictionary.get - Get property value of Embedded Coder Dictionary with service interface
configuration - MATLAB ([original](https://www.mathworks.com/help/ecoder/ref/coder.dictionary.get.html)) ([raw](?raw))
Main Content
Class: coder.Dictionary
Namespace: coder
Get property value of Embedded Coder Dictionary with service interface configuration
Since R2023b
Syntax
value = get(dictionary,property)
Description
[value](#mw%5Fcd3cda52-139e-46a2-8b7e-40cdd0a36b53) = get([dictionary](#mw%5Fe4363e6f-0a35-4fbd-beb8-5e9bf5786b4e),[property](#mw%5F73418f69-890e-42e7-b463-4bdebe8a0b25))
returns the value of the specified property for the Embedded Coder Dictionary.get
supports only Embedded Coder Dictionaries that use the service interface configuration.
Input Arguments
Embedded Coder Dictionary, specified as a coder.Dictionary
object.
Property of the coder.Dictionary
object, specified as a character vector or string scalar.
Example: 'ServicesHeaderFileName'
Data Types: string
Output Arguments
Value of the coder.Dictionary
property, returned as a string scalar.
Examples
Create a Simulink data dictionary that contains an Embedded Coder Dictionary. Create the Embedded Coder Dictionary so that it represents a service interface configuration.
dictionaryFile = Simulink.data.dictionary.create('codeDefinitions.sldd'); codeDictionary = coder.dictionary.create('codeDefinitions.sldd','ServiceInterface');
Get the name of the header file that the service interfaces use.
headerFile = get(codeDictionary,'ServicesHeaderFileName')
headerFile =
'services.h'
The Embedded Coder Dictionary uses the default header fileservices.h
for the services.
Version History
Introduced in R2023b