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

Method get_description

src/Factory/Module/Channel/Channel.cpp:36–80  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36void
37Channel ::get_description(cli::Argument_map_info& args) const
38{
39 auto p = this->get_prefix();
40 const std::string class_name = "factory::Channel::";
41
42 tools::add_arg(
43 args, p, class_name + "p+fra-size,N", cli::Integer(cli::Positive(), cli::Non_zero()), cli::arg_rank::REQ);
44
45 tools::add_arg(args,
46 p,
47 class_name + "p+type",
48 cli::Text(cli::Including_set("NO",
49 "AWGN",
50 "RAYLEIGH",
51 "RAYLEIGH_USER",
52 "BEC",
53 "BSC",
54 "OPTICAL",
55 "USER",
56 "USER_ADD",
57 "USER_BEC",
58 "USER_BSC")));
59
60 tools::add_arg(args, p, class_name + "p+implem", cli::Text(cli::Including_set("STD", "FAST")));
61
62#ifdef AFF3CT_CHANNEL_GSL
63 cli::add_options(args.at({ p + "-implem" }), 0, "GSL");
64#endif
65#ifdef AFF3CT_CHANNEL_MKL
66 cli::add_options(args.at({ p + "-implem" }), 0, "MKL");
67#endif
68
69 tools::add_arg(args, p, class_name + "p+path", cli::File(cli::openmode::read));
70
71 tools::add_arg(args, p, class_name + "p+blk-fad", cli::Text(cli::Including_set("NO", "FRAME", "ONETAP")));
72
73 tools::add_arg(args, p, class_name + "p+seed,S", cli::Integer(cli::Positive()));
74
75 tools::add_arg(args, p, class_name + "p+add-users", cli::None());
76
77 tools::add_arg(args, p, class_name + "p+complex", cli::None());
78
79 tools::add_arg(args, p, class_name + "p+gain-occur", cli::Integer(cli::Positive(), cli::Non_zero()));
80}
81
82void
83Channel ::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