pub struct CppGenOptions {
pub namespace_prefix: Option<String>,
pub include_guard_prefix: Option<String>,
pub indent_width: usize,
pub emit_amqp_helpers: bool,
pub emit_corba_traits: bool,
}Expand description
Configuration of the code generator.
Fields§
§namespace_prefix: Option<String>Optional outer namespace that wraps the entire header.
None or empty = no wrapper.
include_guard_prefix: Option<String>Optional include-guard prefix (comment marker in addition to
#pragma once). The foundation emits only #pragma once; the prefix
appears as a comment.
indent_width: usizeIndent width in spaces. Default 4.
emit_amqp_helpers: boolSpec §7.2.3 / §8.1.2 / §8.1.3 — opt-in: appends per-type AMQP codec
helpers (to_amqp_value, to_json_string) at the end of the
generated header. Default false, because the emitted calls
require a small C++ runtime header <zerodds/amqp/codec.hpp>
that ships as a separate library crate.
emit_corba_traits: boolAnnex A.1 (idl4-cpp-1.0) — opt-in: appends CORBA-specific trait
specializations
(CORBA::traits<T>::value_type/in_type/out_type/inout_type)
per top-level type at the end. Default false.
Trait Implementations§
Source§impl Clone for CppGenOptions
impl Clone for CppGenOptions
Source§fn clone(&self) -> CppGenOptions
fn clone(&self) -> CppGenOptions
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more