Package com.jogamp.gluegen
Class GlueGen
java.lang.Object
com.jogamp.gluegen.GlueGen
- All Implemented Interfaces:
GlueEmitterControls
Glue code generator for C functions and data structures.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringGlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleandebug()findHeaderFile(String headerFileName) Finds the full path name of the specified header file based on the include directories specified on the command line.voidforceStructEmission(String typedefName) Requests emission of an accessor for a struct that will not be referenced by any functions or other structs.static voidvoidrun(Reader reader, String filename, Class<?> emitterClass, List<String> includePaths, List<String> cfgFiles, String outputRootDir, boolean copyCPPOutput2Stderr) voidrunSymbolFilter(SymbolFilter filter) Runs the given filter on the #defines, enum definitions and function symbols that this controller has parsed.static voidsetDebug(boolean v) static voidsetLogLevel(Level l)
-
Field Details
-
__GLUEGEN__
GlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen.- See Also:
-
-
Constructor Details
-
GlueGen
public GlueGen()
-
-
Method Details
-
setDebug
public static void setDebug(boolean v) -
setLogLevel
-
debug
public static boolean debug() -
forceStructEmission
Description copied from interface:GlueEmitterControlsRequests emission of an accessor for a struct that will not be referenced by any functions or other structs.- Specified by:
forceStructEmissionin interfaceGlueEmitterControls
-
findHeaderFile
Description copied from interface:GlueEmitterControlsFinds the full path name of the specified header file based on the include directories specified on the command line.- Specified by:
findHeaderFilein interfaceGlueEmitterControls
-
runSymbolFilter
Description copied from interface:GlueEmitterControlsRuns the given filter on the #defines, enum definitions and function symbols that this controller has parsed. It is valid to call this method as soon asGlueEmitter.beginEmission(com.jogamp.gluegen.GlueEmitterControls)has been called on the GlueEmitter, and it is recommended to call it from that method call. Calling it during glue code emission may cause problems.- Specified by:
runSymbolFilterin interfaceGlueEmitterControls
-
run
-
main
-