Class CSharpGenerator
java.lang.Object
uk.co.real_logic.sbe.generation.csharp.CSharpGenerator
- All Implemented Interfaces:
CodeGenerator
Codec generator for the CSharp programming language.
-
Constructor Summary
ConstructorsConstructorDescriptionCSharpGenerator(Ir ir, OutputManager outputManager) Create a new C# languageCodeGenerator.CSharpGenerator(Ir ir, PrecedenceChecks precedenceChecks, OutputManager outputManager) Create a new C# languageCodeGenerator. -
Method Summary
Modifier and TypeMethodDescriptionvoidgenerate()Generate the complete set of types and messages for a schema.voidGenerate the composites for dealing with the message header.voidGenerate the stubs for the types used as message fields.
-
Constructor Details
-
CSharpGenerator
Create a new C# languageCodeGenerator.- Parameters:
ir- for the messages and types.outputManager- for generating the codecs to.
-
CSharpGenerator
Create a new C# languageCodeGenerator.- 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
Generate the composites for dealing with the message header.- Throws:
IOException- if an error is encountered when writing the output.
-
generateTypeStubs
Generate the stubs for the types used as message fields.- Throws:
IOException- if an error is encountered when writing the output.
-
generate
Generate the complete set of types and messages for a schema.- Specified by:
generatein interfaceCodeGenerator- Throws:
IOException- if an error is encountered when writing the output.
-