gov.llnl.babel.backend.matlab
Class ClientMatlab

java.lang.Object
  extended by gov.llnl.babel.backend.matlab.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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClientMatlab

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

Method Detail

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.

Throws:
CodeGenerationException

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.

Throws:
CodeGenerationException