Definition at line 33 of file pot_process.cpp.
◆ cli_options()
cli_options::cli_options |
( |
| ) |
|
Definition at line 55 of file pot_process.cpp.
69 desc.add_options()(
"help,h",
"This help")(
"verbose,v",
"Verbose output")(
70 "check",
"Check pot well-formedness and exit")(
71 "out,o", po::value<std::string>(),
"Output file")(
72 "lagrange-degree", po::value<size_t>(),
"Use degree l")(
73 "dummy",
"Create dummy powersoftau data (!for testing only)");
75 "powersoftau_file", po::value<std::string>(),
"powersoftau file")(
76 "degree", po::value<size_t>(),
"degree");
77 pos.add(
"powersoftau_file", 1).add(
"degree", 1);
◆ parse()
void cli_options::parse |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 88 of file pot_process.cpp.
91 po::parsed_options parsed = po::command_line_parser(argc, argv)
95 po::store(parsed, vm);
99 if (vm.count(
"help")) {
104 if (0 == vm.count(
"powersoftau_file")) {
105 throw po::error(
"powersoftau_file not specified");
107 if (0 == vm.count(
"degree")) {
108 throw po::error(
"degree not specified");
113 check = vm.count(
"check");
114 degree = vm[
"degree"].as<
size_t>();
116 ? vm[
"lagrange-degree"].as<
size_t>()
118 out = vm.count(
"out") ? vm[
"out"].as<std::string>()
120 dummy = vm.count(
"dummy");
123 throw po::error(
"specify at most one of --dummy and --check");
◆ usage()
void cli_options::usage |
( |
| ) |
const |
Definition at line 80 of file pot_process.cpp.
82 std::cout <<
"Usage:" << std::endl
84 <<
" [<options>] <powersoftau file> <degree>\n\n"
◆ all_desc
po::options_description cli_options::all_desc |
◆ check
◆ command
std::string cli_options::command |
◆ degree
size_t cli_options::degree |
◆ desc
po::options_description cli_options::desc |
◆ dummy
◆ help
◆ lagrange_degree
size_t cli_options::lagrange_degree |
◆ out
std::string cli_options::out |
◆ pos
po::positional_options_description cli_options::pos |
◆ powersoftau_file
std::string cli_options::powersoftau_file |
◆ verbose
bool cli_options::verbose |
The documentation for this class was generated from the following file: