gov.llnl.babel.backend.python
Class PythonClientCSource

java.lang.Object
  extended by gov.llnl.babel.backend.python.PythonClientC
      extended by gov.llnl.babel.backend.python.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 copyInheritedStatics()
           
 void generateCode()
          Generate the source file for the extendable with which this object was created.
 void writeInheritedStatics()
           
 
Methods inherited from class gov.llnl.babel.backend.python.PythonClientC
addInclude, copyComment, explainExtensionSource, getName, pythonDocComment
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

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 Detail

writeInheritedStatics

public void writeInheritedStatics()

copyInheritedStatics

public void copyInheritedStatics()

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.