gov.llnl.babel.backend.python

Class PythonClientCSource


public class PythonClientCSource
extends PythonClientC

This class will write the C source file for a Python C extension module to provide access from Python to a class or interface.

Field Summary

Fields inherited from class gov.llnl.babel.backend.python.PythonClientC

d_context, d_lw, d_shortName, d_sym

Constructor Summary

PythonClientCSource(Extendable ext, Context context)
Create an object capable of generating the source C file for a sidl extendable (ie class or interface).

Method Summary

void
generateCode()
Generate the source file for the extendable with which this object was created.

Methods inherited from class gov.llnl.babel.backend.python.PythonClientC

addInclude, copyComment, explainExtensionSource, getName, pythonDocComment

Constructor Details

PythonClientCSource

public PythonClientCSource(Extendable ext,
                           Context context)
Create an object capable of generating the source C file for a sidl extendable (ie class or interface).
Parameters:
ext - an interface or class that needs a header file for a Python C extension class.

Method Details

generateCode

public void generateCode()
            throws CodeGenerationException
Generate the source file for the extendable with which this object was created.
Throws:
CodeGenerationException - this is a catch all exception for problems during the code generation phase.