gov.llnl.babel.backend.matlab

Class ClientMatlab


public class ClientMatlab
extends java.lang.Object

Class ClientMatlab writes the Matlab class constructor description that will point to the private mexFunction code written by ClientMexStub. The class constructor takes a language writer and method generateCode writes the mat-function for the specified symbol to the output stream.

Constructor Summary

ClientMatlab(LanguageWriterForMatlab writer, Context context)
Create a ClientMatlab object that will write symbol information to the provided output language writer stream.

Method Summary

void
generateCode(Symbol symbol)
Generate the Matlab client mat-function source for a sidl class or interface type.
static void
generateCode(Symbol symbol, LanguageWriterForMatlab writer, Context context)
This utility function Writes Matlab client information into the provided language writer output stream.

Constructor Details

ClientMatlab

public ClientMatlab(LanguageWriterForMatlab writer,
                    Context context)
Create a ClientMatlab object that will write symbol information to the provided output language writer stream.

Method Details

generateCode

public void generateCode(Symbol symbol)
            throws CodeGenerationException
Generate the Matlab client mat-function source for a sidl class or interface type. All of the real work is done by ClientMex code.

generateCode

public static void generateCode(Symbol symbol,
                                LanguageWriterForMatlab writer,
                                Context context)
            throws CodeGenerationException
This utility function Writes Matlab client information into the provided language writer output stream.