| 34 | } |
| 35 | |
| 36 | void |
| 37 | Channel ::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 | |
| 82 | void |
| 83 | Channel ::store(const cli::Argument_map_value& vals) |
nothing calls this directly
no test coverage detected