Class DataTypeWriter

java.lang.Object
ghidra.program.model.data.DataTypeWriter

public class DataTypeWriter extends Object
A class used to convert data types into ANSI-C. The ANSI-C code should compile on most platforms.
  • Constructor Details

    • DataTypeWriter

      public DataTypeWriter(DataTypeManager dtm, Writer writer) throws IOException
      Constructs a new instance of this class using the given writer. The default annotation handler is used.
      Parameters:
      dtm - data-type manager corresponding to target program or null for default
      writer - the writer to use when writing data types
      Throws:
      IOException - if there is an exception writing the output
    • DataTypeWriter

      public DataTypeWriter(DataTypeManager dtm, Writer writer, boolean cppStyleComments) throws IOException
      Constructs a new instance of this class using the given writer. The default annotation handler is used.
      Parameters:
      dtm - data-type manager corresponding to target program or null for default
      writer - the writer to use when writing data types
      cppStyleComments - whether to use C++ style comments
      Throws:
      IOException - if there is an exception writing the output
    • DataTypeWriter

      public DataTypeWriter(DataTypeManager dtm, Writer writer, AnnotationHandler annotator) throws IOException
      Constructs a new instance of this class using the given writer and annotation handler
      Parameters:
      dtm - data-type manager corresponding to target program or null for default
      writer - the writer to use when writing data types
      annotator - the annotation handler to use to annotate the data types
      Throws:
      IOException - if there is an exception writing the output
    • DataTypeWriter

      public DataTypeWriter(DataTypeManager dtm, Writer writer, AnnotationHandler annotator, boolean cppStyleComments) throws IOException
      Constructs a new instance of this class using the given writer and annotation handler
      Parameters:
      dtm - data-type manager corresponding to target program or null for default
      writer - the writer to use when writing data types
      annotator - the annotation handler to use to annotate the data types
      cppStyleComments - whether to use C++ style comments
      Throws:
      IOException - if there is an exception writing the output
  • Method Details