public class SkelSource
extends java.lang.Object
Class SkelSource
generates a C skeleton source file to the
language writer output stream. The skeleton provides the glue between
the independent object representation (IOR) and the developer's C
implementation of the class.
The skeleton source contains free functions to fill the entry point vector and optionally the static entry point vector. These functions are what the IOR requires.
The skeleton source contains free functions to get/set the private
data pointer from the IOR. These functions are what the implementation
source requires. For the base class (i.e. the class without a parent
class), the skeleton also include a function to destroy the object.
This function is required for the implemention of
deleteRef
.
Constructor and Description |
---|
SkelSource() |
Modifier and Type | Method and Description |
---|---|
static void |
generateCode(Class cls,
LanguageWriterForC writer,
Context context)
Write the skeleton file for a particular class to the language writer
provided.
|
static void |
generateIncludes(Class cls,
LanguageWriterForC writer,
Context context) |
public static void generateCode(Class cls, LanguageWriterForC writer, Context context) throws CodeGenerationException
cls
- a skeleton file for this class will be written to
writer
writer
- this is the output device to which the skeleton
file will be written.CodeGenerationException
- this is a catch all exception. It can be caused by I/O trouble or
violations of the data type invariants.public static void generateIncludes(Class cls, LanguageWriterForC writer, Context context) throws CodeGenerationException
CodeGenerationException