Class CppGenerator
java.lang.Object
uk.co.real_logic.sbe.generation.cpp.CppGenerator
- All Implemented Interfaces:
CodeGenerator
Codec generator for the C++11 programming language with conditional compilation for additional C++14 and C++17
features.
-
Constructor Summary
ConstructorsConstructorDescriptionCppGenerator(Ir ir, boolean shouldDecodeUnknownEnumValues, OutputManager outputManager) Create a new Cpp languageCodeGenerator.CppGenerator(Ir ir, boolean shouldDecodeUnknownEnumValues, PrecedenceChecks precedenceChecks, OutputManager outputManager) Create a new Go 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.
-
Constructor Details
-
CppGenerator
Create a new Cpp languageCodeGenerator.- Parameters:
ir- for the messages and types.shouldDecodeUnknownEnumValues- generate support for unknown enum values when decoding.outputManager- for generating the codecs to.
-
CppGenerator
public CppGenerator(Ir ir, boolean shouldDecodeUnknownEnumValues, PrecedenceChecks precedenceChecks, OutputManager outputManager) Create a new Go languageCodeGenerator.- Parameters:
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.
-
-
Method Details
-
generateMessageHeaderStub
Generate the composites for dealing with the message header.- 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.
-