Class CSharpGenerator

java.lang.Object
uk.co.real_logic.sbe.generation.csharp.CSharpGenerator
All Implemented Interfaces:
CodeGenerator

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

    • CSharpGenerator

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

      public CSharpGenerator(Ir ir, PrecedenceChecks precedenceChecks, OutputManager outputManager)
      Create a new C# language CodeGenerator.
      Parameters:
      ir - for the messages and types.
      precedenceChecks - whether and how to perform field precedence checks.
      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.
    • generateTypeStubs

      public void generateTypeStubs() throws IOException
      Generate the stubs for the types used as message fields.
      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.