gov.llnl.babel.backend.python
Class PythonClientC

java.lang.Object
  extended by gov.llnl.babel.backend.python.PythonClientC
Direct Known Subclasses:
PythonClientCSource, PythonClientStructSource

public class PythonClientC
extends java.lang.Object


Field Summary
protected  Context d_context
           
protected  LanguageWriterForC d_lw
          A writer for the C source file.
protected  java.lang.String d_shortName
           
protected  Symbol d_sym
           
 
Constructor Summary
PythonClientC(Symbol sym, Context context)
           
 
Method Summary
protected  void addInclude(java.lang.String filename, boolean useGuard)
           
 void copyComment(Comment c)
          Convert a comment into a C string.
 void explainExtensionSource()
          Write a comment explaining the contents of the source file to anyone who might happen to read it.
 java.lang.String getName()
           
 void pythonDocComment()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

d_lw

protected LanguageWriterForC d_lw
A writer for the C source file.


d_context

protected Context d_context

d_sym

protected Symbol d_sym

d_shortName

protected java.lang.String d_shortName
Constructor Detail

PythonClientC

public PythonClientC(Symbol sym,
                     Context context)
Method Detail

getName

public final java.lang.String getName()

addInclude

protected void addInclude(java.lang.String filename,
                          boolean useGuard)

explainExtensionSource

public void explainExtensionSource()
Write a comment explaining the contents of the source file to anyone who might happen to read it.


pythonDocComment

public void pythonDocComment()

copyComment

public void copyComment(Comment c)
Convert a comment into a C string.

Parameters:
c - the comment to convert