Main Content


Class: coder.codedescriptor.CodeDescriptor
Namespace: coder.codedescriptor

Return declaration of service function interface in generated code

Since R2022b


serviceFunctionDeclaration = getServiceFunctionDeclaration(codeDescObj,serviceFunctionPrototype)


serviceFunctionDeclaration = getServiceFunctionDeclaration(codeDescObj,serviceFunctionPrototype) returns the function declaration of the service interface prototype serviceFunctionPrototype as produced by the generated code in the code descriptor object codeDescObj.

Input Arguments

expand all

Code descriptor for which you want to retrieve the information about generated code, specified as a coder.codedescriptor.CodeDescriptor object.

Service function prototype, specified as coder.descriptor.types.Prototype object. Use the getServiceFunctionPrototype method to retrieve the Prototype object for the service function.

Output Arguments

expand all

Service function declaration produced in the generated code, returned as a character vector or string scalar.

Version History

Introduced in R2022b