Class CGenerator

java.lang.Object
uk.co.real_logic.sbe.generation.c.CGenerator
All Implemented Interfaces:
CodeGenerator

public class CGenerator extends Object implements CodeGenerator
Codec generator for the C11 programming language.
  • Constructor Details

    • CGenerator

      public CGenerator(Ir ir, OutputManager outputManager)
      Create a new C language CodeGenerator.
      Parameters:
      ir - for the messages and types.
      outputManager - for generating the codecs to.
  • Method Details

    • generateMessageHeaderStub

      public void generateMessageHeaderStub() throws IOException
      Generate the composites for dealing with the message header.
      Throws:
      IOException - if an error is encountered when writing the output.
    • generate

      public void generate() throws IOException
      Generate the complete set of types and messages for a schema.
      Specified by:
      generate in interface CodeGenerator
      Throws:
      IOException - if an error is encountered when writing the output.