Package com.jogamp.gluegen
Class GlueGen
- java.lang.Object
-
- com.jogamp.gluegen.GlueGen
-
- All Implemented Interfaces:
GlueEmitterControls
public class GlueGen extends Object implements GlueEmitterControls
Glue code generator for C functions and data structures.
-
-
Field Summary
Fields Modifier and Type Field Description static String__GLUEGEN__GlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen.
-
Constructor Summary
Constructors Constructor Description GlueGen()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static booleandebug()StringfindHeaderFile(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 voidmain(String... args)voidrun(Reader reader, String filename, Class<?> emitterClass, List<String> includePaths, List<String> cfgFiles, String outputRootDir, boolean copyCPPOutput2Stderr, boolean enablePragmaOnce, boolean preserveGeneratedCPP)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 Detail
-
__GLUEGEN__
public static final String __GLUEGEN__
GlueGen's build in macro name "__GLUEGEN__", when compiling w/ GlueGen.- See Also:
- Constant Field Values
-
-
Method Detail
-
setDebug
public static void setDebug(boolean v)
-
setLogLevel
public static void setLogLevel(Level l)
-
debug
public static boolean debug()
-
forceStructEmission
public void forceStructEmission(String typedefName)
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
public String findHeaderFile(String headerFileName)
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
public void runSymbolFilter(SymbolFilter filter)
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
public void run(Reader reader, String filename, Class<?> emitterClass, List<String> includePaths, List<String> cfgFiles, String outputRootDir, boolean copyCPPOutput2Stderr, boolean enablePragmaOnce, boolean preserveGeneratedCPP)
-
main
public static void main(String... args)
-
-