ark::serialization::CcGenerator

Defined in header “ark/serialization/cc_generator.hh”.


This generator allows you to take in a schema registry and a type name, and then emit all of the necessary C++ code to build code to automatically serialize and deserialize the schema (concretely).

Methods

  • CcGenerator(RbufGeneratorConfiguration config, SchemaRegistry registry)
    Constructor. Initializes the generator for the target type, pulling information from the given registry as needed.

  • std::string header()
    Returns the contents of the generated header file.

  • std::string source()
    Returns the contents of the generated source file.