public class CppGenerator extends Object implements CodeGenerator
Constructor and Description |
---|
CppGenerator(Ir ir,
boolean shouldDecodeUnknownEnumValues,
OutputManager outputManager)
Create a new Cpp language
CodeGenerator . |
CppGenerator(Ir ir,
boolean shouldDecodeUnknownEnumValues,
PrecedenceChecks precedenceChecks,
OutputManager outputManager)
Create a new Go language
CodeGenerator . |
Modifier and Type | Method and Description |
---|---|
void |
generate()
Generate the complete set of types and messages for a schema.
|
void |
generateMessageHeaderStub()
Generate the composites for dealing with the message header.
|
public CppGenerator(Ir ir, boolean shouldDecodeUnknownEnumValues, OutputManager outputManager)
CodeGenerator
.ir
- for the messages and types.shouldDecodeUnknownEnumValues
- generate support for unknown enum values when decoding.outputManager
- for generating the codecs to.public CppGenerator(Ir ir, boolean shouldDecodeUnknownEnumValues, PrecedenceChecks precedenceChecks, OutputManager outputManager)
CodeGenerator
.ir
- for the messages and types.shouldDecodeUnknownEnumValues
- generate support for unknown enum values when decoding.precedenceChecks
- whether and how to generate field precedence checks.outputManager
- for generating the codecs to.public void generateMessageHeaderStub() throws IOException
IOException
- if an error is encountered when writing the output.public void generate() throws IOException
generate
in interface CodeGenerator
IOException
- if an error is encountered when writing the output.Copyright © 2013-2024 Real Logic Limited. All Rights Reserved.