ujf.verimag.bip.cgeneration
Class CFileGen

java.lang.Object
  extended by ujf.verimag.bip.cgeneration.CFileGen

public class CFileGen
extends java.lang.Object


Constructor Summary
CFileGen(java.lang.String rootName)
          constructor with the root file name.
CFileGen(java.lang.String hFileName, java.lang.String cFileName)
          constructor with the files name.
 
Method Summary
 void generateSource(CModule module)
          generate source files for the given C module
 java.lang.String getHeader()
           
 void setHeader(java.lang.String header)
           
 void terminate()
          ending the generation, and properly close the files
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CFileGen

public CFileGen(java.lang.String hFileName,
                java.lang.String cFileName)
         throws java.io.FileNotFoundException
constructor with the files name.

Parameters:
hFileName - include file name
cFileName - implementation file name
Throws:
java.io.FileNotFoundException

CFileGen

public CFileGen(java.lang.String rootName)
         throws java.io.FileNotFoundException,
                java.io.IOException
constructor with the root file name. The used file will have name rootname.h and rootname.C

Parameters:
rootName - the root of the source file name
Throws:
java.io.FileNotFoundException
java.io.IOException
Method Detail

getHeader

public java.lang.String getHeader()

setHeader

public void setHeader(java.lang.String header)

terminate

public void terminate()
ending the generation, and properly close the files


generateSource

public void generateSource(CModule module)
generate source files for the given C module

Parameters:
module - the model of the module to generate