Class CppClassesGenerator

Direct Known Subclasses:
CppHeadersGenerator

public class CppClassesGenerator extends MultiSourceGenerator
  • Field Details

    • targetDir

      protected String targetDir
  • Constructor Details

    • CppClassesGenerator

      public CppClassesGenerator()
  • Method Details

    • run

      public Object run()
      Overrides:
      run in class MultiSourceGenerator
    • getFilePostFix

      protected String getFilePostFix()
    • toCppType

      public String toCppType(org.codehaus.jam.JClass type)
      Converts the Java type to a C++ type name
    • toCppDefaultValue

      public String toCppDefaultValue(org.codehaus.jam.JClass type)
      Converts the Java type to a C++ default value
    • toMarshalMethodName

      public String toMarshalMethodName(org.codehaus.jam.JClass type)
      Converts the Java type to the name of the C++ marshal method to be used
    • toUnmarshalMethodName

      public String toUnmarshalMethodName(org.codehaus.jam.JClass type)
      Converts the Java type to the name of the C++ unmarshal method to be used
    • toUnmarshalCast

      public String toUnmarshalCast(org.codehaus.jam.JClass type)
      Converts the Java type to a C++ pointer cast
    • generateLicence

      protected void generateLicence(PrintWriter out)
    • generateFile

      protected void generateFile(PrintWriter out) throws Exception
      Specified by:
      generateFile in class MultiSourceGenerator
      Throws:
      Exception
    • getTargetDir

      public String getTargetDir()
    • setTargetDir

      public void setTargetDir(String targetDir)