pub fn generate_cpp_header(
ast: &Specification,
opts: &CppGenOptions,
) -> Result<String, CppGenError>Expand description
Produces a complete C++17 header from an IDL specification.
§Errors
CppGenError::UnsupportedConstruct: IDL construct outside the current scope (e.g.interface,valuetype,fixed,any,map,bitset,bitmask).CppGenError::InvalidName: An identifier collides with a reserved C++ keyword.CppGenError::InheritanceCycle: Direct or indirect self-inheritance in the struct graph.