MCPcopy Create free account
hub / github.com/aff3ct/aff3ct / get_description

Method get_description

src/Factory/Module/Encoder/LDPC/Encoder_LDPC.cpp:36–62  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void
37Encoder_LDPC ::get_description(cli::Argument_map_info& args) const
38{
39 Encoder::get_description(args);
40
41 auto p = this->get_prefix();
42 const std::string class_name = "factory::Encoder_LDPC::";
43
44 cli::add_options(args.at({ p + "-type" }), 0, "LDPC", "LDPC_H", "LDPC_DVBS2", "LDPC_QC", "LDPC_IRA", "LDPC_5G");
45
46 tools::add_arg(args, p, class_name + "p+h-path", cli::File(cli::openmode::read));
47
48 args.add_link({ p + "-h-path" }, { p + "-cw-size", "N" }); // N_cw is H width
49 args.add_link({ p + "-h-path" }, { p + "-info-bits", "K" }); // if there is no K, then H is considered regular,
50 // so K is the N - H's height
51
52 tools::add_arg(args, p, class_name + "p+g-path", cli::File(cli::openmode::read));
53
54 args.add_link({ p + "-g-path" }, { p + "-info-bits", "K" });
55 args.add_link({ p + "-g-path" }, { p + "-cw-size", "N" });
56
57 tools::add_arg(args, p, class_name + "p+h-reorder", cli::Text(cli::Including_set("NONE", "ASC", "DSC")));
58
59 tools::add_arg(args, p, class_name + "p+g-method", cli::Text(cli::Including_set("IDENTITY", "LU_DEC")));
60
61 tools::add_arg(args, p, class_name + "p+g-save-path", cli::File(cli::openmode::write));
62}
63
64void
65Encoder_LDPC ::store(const cli::Argument_map_value& vals)

Callers

nothing calls this directly

Calls 2

get_prefixMethod · 0.80
atMethod · 0.45

Tested by

no test coverage detected