| 1 | /***** This code was generated by Yaggo. Do not edit ******/cxx . . $ `<file>/jellyfish/dump_fastq_main_cmdline.hpp`/ |
| 2 | |
| 3 | #ifndef __DUMP_FASTQ_MAIN_ARGS_HPP__ |
| 4 | #define __DUMP_FASTQ_MAIN_ARGS_HPP__cxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:4:9`! |
| 5 | |
| 6 | #include <jellyfish/yaggo.hpp>cxx . . $ `<file>/jellyfish/yaggo.hpp`/ |
| 7 | |
| 8 | class dump_fastq_main_argscxx . . $ dump_fastq_main_args# { |
| 9 | public: |
| 10 | bool column_flagcxx . . $ dump_fastq_main_args#column_flag.; |
| 11 | bool tab_flagcxx . . $ dump_fastq_main_args#tab_flag.; |
| 12 | double lower_count_argcxx . . $ dump_fastq_main_args#lower_count_arg.; |
| 13 | bool lower_count_givencxx . . $ dump_fastq_main_args#lower_count_given.; |
| 14 | double upper_count_argcxx . . $ dump_fastq_main_args#upper_count_arg.; |
| 15 | bool upper_count_givencxx . . $ dump_fastq_main_args#upper_count_given.; |
| 16 | bool verbose_flagcxx . . $ dump_fastq_main_args#verbose_flag.; |
| 17 | const char * output_argcxx . . $ dump_fastq_main_args#output_arg.; |
| 18 | bool output_givencxx . . $ dump_fastq_main_args#output_given.; |
| 19 | yaggocxx . . $ yaggo/::stringcxx . . $ yaggo/string# db_argcxx . . $ dump_fastq_main_args#db_arg.; |
| 20 | |
| 21 | enumcxx . . $ dump_fastq_main_args#$anonymous_type_0# { |
| 22 | USAGE_OPTcxx . . $ dump_fastq_main_args#USAGE_OPT. = 1000 |
| 23 | }; |
| 24 | |
| 25 | dump_fastq_main_argscxx . . $ dump_fastq_main_args#dump_fastq_main_args(49f6e7a06ebc5aa8).() : |
| 26 | column_flagcxx . . $ dump_fastq_main_args#column_flag.(false), |
| 27 | tab_flagcxx . . $ dump_fastq_main_args#tab_flag.(false), |
| 28 | lower_count_argcxx . . $ dump_fastq_main_args#lower_count_arg.(), lower_count_givencxx . . $ dump_fastq_main_args#lower_count_given.(false), |
| 29 | upper_count_argcxx . . $ dump_fastq_main_args#upper_count_arg.(), upper_count_givencxx . . $ dump_fastq_main_args#upper_count_given.(false), |
| 30 | verbose_flagcxx . . $ dump_fastq_main_args#verbose_flag.(false), |
| 31 | output_argcxx . . $ dump_fastq_main_args#output_arg.(""), output_givencxx . . $ dump_fastq_main_args#output_given.(false) |
| 32 | { } |
| 33 | |
| 34 | dump_fastq_main_argscxx . . $ dump_fastq_main_args#dump_fastq_main_args(c759356ac01a31e7).(int argc, char* argv[]) : |
| 35 | column_flagcxx . . $ dump_fastq_main_args#column_flag.(false), |
| 36 | tab_flagcxx . . $ dump_fastq_main_args#tab_flag.(false), |
| 37 | lower_count_argcxx . . $ dump_fastq_main_args#lower_count_arg.(), lower_count_givencxx . . $ dump_fastq_main_args#lower_count_given.(false), |
| 38 | upper_count_argcxx . . $ dump_fastq_main_args#upper_count_arg.(), upper_count_givencxx . . $ dump_fastq_main_args#upper_count_given.(false), |
| 39 | verbose_flagcxx . . $ dump_fastq_main_args#verbose_flag.(false), |
| 40 | output_argcxx . . $ dump_fastq_main_args#output_arg.(""), output_givencxx . . $ dump_fastq_main_args#output_given.(false) |
| 41 | { parsecxx . . $ dump_fastq_main_args#parse(c759356ac01a31e7).(argc, argv); } |
| 42 | |
| 43 | void parsecxx . . $ dump_fastq_main_args#parse(c759356ac01a31e7).(int argc, char* argv[]) { |
| 44 | static struct option long_options[] = { |
| 45 | {"column", 0, 0, 'c'}, |
| 46 | {"tab", 0, 0, 't'}, |
| 47 | {"lower-count", 1, 0, 'L'}, |
| 48 | {"upper-count", 1, 0, 'U'}, |
| 49 | {"verbose", 0, 0, 'v'}, |
| 50 | {"output", 1, 0, 'o'}, |
| 51 | {"help", 0, 0, 'h'}, |
| 52 | {"usage", 0, 0, USAGE_OPTcxx . . $ dump_fastq_main_args#USAGE_OPT.}, |
| 53 | {"version", 0, 0, 'V'}, |
| 54 | {0, 0, 0, 0} |
| 55 | }; |
| 56 | static const char *short_options = "hVctL:U:vo:"; |
| 57 | |
| 58 | stdcxx . . $ std/::stringcxx . . $ std/string# errcxx . . $ std/__cxx11/basic_string#basic_string(925dcc5e17f50391).; |
| 59 | #define CHECK_ERRcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:59:9`!(type,val,which) if(!err.empty()) { std::cerr << "Invalid " #type " '" << val << "' for [" which "]: " << err << "\n"; exit(1); } |
| 60 | while(true) { |
| 61 | int index = -1; |
| 62 | int c = getopt_long(argc, argv, short_options, long_options, &index); |
| 63 | if(c == -1) break; |
| 64 | switch(c) { |
| 65 | case ':': |
| 66 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Missing required argument for " |
| 67 | <<cxx . . $ std/`operator<<`(88df5bef833f7f83). (index == -1 ? stdcxx . . $ std/__cxx11/basic_string#basic_string(57f9c416bbf2a7d6).::stringcxx . . $ std/string#(1, (char)optopt) : stdcxx . . $ std/::stringcxx . . $ std/string#(long_options[index].name)) |
| 68 | <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 69 | exitcxx . . $ exit(44ed87f96534fad7).(1); |
| 70 | case 'h': |
| 71 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). usagecxx . . $ dump_fastq_main_args#usage(a9f41ea0e82d88cf).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n\n" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). helpcxx . . $ dump_fastq_main_args#help(a9f41ea0e82d88cf).() <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 72 | exitcxx . . $ exit(44ed87f96534fad7).(0); |
| 73 | case USAGE_OPTcxx . . $ dump_fastq_main_args#USAGE_OPT.: |
| 74 | stdcxx . . $ std/::coutcxx . . $ std/cout. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). usagecxx . . $ dump_fastq_main_args#usage(a9f41ea0e82d88cf).() <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\nUse --help for more information." <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 75 | exitcxx . . $ exit(44ed87f96534fad7).(0); |
| 76 | case 'V': |
| 77 | print_versioncxx . . $ dump_fastq_main_args#print_version(490063bd7e6d8d5d).(); |
| 78 | exitcxx . . $ exit(44ed87f96534fad7).(0); |
| 79 | case '?': |
| 80 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Use --usage or --help for some help\n"; |
| 81 | exitcxx . . $ exit(44ed87f96534fad7).(1); |
| 82 | case 'c': |
| 83 | column_flagcxx . . $ dump_fastq_main_args#column_flag. = true; |
| 84 | break; |
| 85 | case 't': |
| 86 | tab_flagcxx . . $ dump_fastq_main_args#tab_flag. = true; |
| 87 | break; |
| 88 | case 'L': |
| 89 | lower_count_givencxx . . $ dump_fastq_main_args#lower_count_given. = true; |
| 90 | lower_count_argcxx . . $ dump_fastq_main_args#lower_count_arg. = yaggocxx . . $ yaggo/::conv_doublecxx . . $ yaggo/conv_double(27e57d9972769b6a).((const char *)optarg, err, false); |
| 91 | CHECK_ERRcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:59:9`!(double_t, optarg, "-L, --lower-count=double") |
| 92 | break; |
| 93 | case 'U': |
| 94 | upper_count_givencxx . . $ dump_fastq_main_args#upper_count_given. = true; |
| 95 | upper_count_argcxx . . $ dump_fastq_main_args#upper_count_arg. = yaggocxx . . $ yaggo/::conv_doublecxx . . $ yaggo/conv_double(27e57d9972769b6a).((const char *)optarg, err, false); |
| 96 | CHECK_ERRcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:59:9`!(double_t, optarg, "-U, --upper-count=double") |
| 97 | break; |
| 98 | case 'v': |
| 99 | verbose_flagcxx . . $ dump_fastq_main_args#verbose_flag. = true; |
| 100 | break; |
| 101 | case 'o': |
| 102 | output_givencxx . . $ dump_fastq_main_args#output_given. = true; |
| 103 | output_argcxx . . $ dump_fastq_main_args#output_arg. = optarg; |
| 104 | break; |
| 105 | } |
| 106 | } |
| 107 | |
| 108 | // Parse arguments |
| 109 | if(argc - optind != 1) |
| 110 | errorcxx . . $ dump_fastq_main_args#error(85c52e162fed56f9).("Requires exactly 1 argument."); |
| 111 | db_argcxx . . $ dump_fastq_main_args#db_arg. =cxx . . $ yaggo/string#`operator=`(62c2e0f354904c32). yaggocxx . . $ yaggo/::stringcxx . . $ yaggo/string#(argv[optind]); |
| 112 | ++optind; |
| 113 | } |
| 114 | |
| 115 | #define dump_fastq_main_args_USAGEcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:115:9`! "Usage: jellyfish qdump [options] db:path" |
| 116 | const char * usagecxx . . $ dump_fastq_main_args#usage(a9f41ea0e82d88cf).() const { return dump_fastq_main_args_USAGEcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:115:9`!; } |
| 117 | void errorcxx . . $ dump_fastq_main_args#error(85c52e162fed56f9).(const char *msg) { |
| 118 | stdcxx . . $ std/::cerrcxx . . $ std/cerr. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "Error: " <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). msg <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). usagecxx . . $ dump_fastq_main_args#usage(a9f41ea0e82d88cf).() |
| 119 | <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\nUse --help for more information" |
| 120 | <<cxx . . $ std/basic_ostream#`operator<<`(f46f7e25851d787a). stdcxx . . $ std/::endlcxx . . $ std/endl(345bf97a19cc83a9).; |
| 121 | exitcxx . . $ exit(44ed87f96534fad7).(1); |
| 122 | } |
| 123 | |
| 124 | #define dump_fastq_main_args_HELPcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:124:9`! "Dump k-mer from a qmer database\n\nBy default, dump in a fasta format where the header is the count and\n" \ |
| 125 | "the sequence is the sequence of the k-mer. The column format is a 2\n" \ |
| 126 | "column output: k-mer count.\n\n" \ |
| 127 | "Options (default value in (), *required):\n" \ |
| 128 | " -c, --column Column format (false)\n" \ |
| 129 | " -t, --tab Tab separator (false)\n" \ |
| 130 | " -L, --lower-count=double Don't output k-mer with count < lower-count\n" \ |
| 131 | " -U, --upper-count=double Don't output k-mer with count > upper-count\n" \ |
| 132 | " -v, --verbose Be verbose (false)\n" \ |
| 133 | " -o, --output=string Output file\n" \ |
| 134 | " --usage Usage\n" \ |
| 135 | " -h, --help This message\n" \ |
| 136 | " -V, --version Version" |
| 137 | |
| 138 | const char * helpcxx . . $ dump_fastq_main_args#help(a9f41ea0e82d88cf).() const { return dump_fastq_main_args_HELPcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:124:9`!; } |
| 139 | #define dump_fastq_main_args_HIDDENcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:139:9`! "Hidden options:" |
| 140 | |
| 141 | const char * hiddencxx . . $ dump_fastq_main_args#hidden(a9f41ea0e82d88cf).() const { return dump_fastq_main_args_HIDDENcxx . . $ `jellyfish/dump_fastq_main_cmdline.hpp:139:9`!; } |
| 142 | void print_versioncxx . . $ dump_fastq_main_args#print_version(490063bd7e6d8d5d).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &os = stdcxx . . $ std/::coutcxx . . $ std/cout.) const { |
| 143 | #ifndef PACKAGE_VERSIONcxx . . $ `./config.h:82:9`! |
| 144 | #define PACKAGE_VERSION "0.0.0" |
| 145 | #endif |
| 146 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). PACKAGE_VERSIONcxx . . $ `./config.h:82:9`! <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 147 | } |
| 148 | void dumpcxx . . $ dump_fastq_main_args#dump(f7f45734e6842120).(stdcxx . . $ std/::ostreamcxx . . $ std/ostream# &os = stdcxx . . $ std/::coutcxx . . $ std/cout.) { |
| 149 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "column_flag:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). column_flagcxx . . $ dump_fastq_main_args#column_flag. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 150 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "tab_flag:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). tab_flagcxx . . $ dump_fastq_main_args#tab_flag. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 151 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "lower_count_given:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). lower_count_givencxx . . $ dump_fastq_main_args#lower_count_given. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " lower_count_arg:" <<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). lower_count_argcxx . . $ dump_fastq_main_args#lower_count_arg. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 152 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "upper_count_given:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). upper_count_givencxx . . $ dump_fastq_main_args#upper_count_given. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " upper_count_arg:" <<cxx . . $ std/basic_ostream#`operator<<`(968942d578224538). upper_count_argcxx . . $ dump_fastq_main_args#upper_count_arg. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 153 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "verbose_flag:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). verbose_flagcxx . . $ dump_fastq_main_args#verbose_flag. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 154 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "output_given:" <<cxx . . $ std/basic_ostream#`operator<<`(511cbee2d2e28827). output_givencxx . . $ dump_fastq_main_args#output_given. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). " output_arg:" <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). output_argcxx . . $ dump_fastq_main_args#output_arg. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 155 | os <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "db_arg:" <<cxx . . $ std/`operator<<`(88df5bef833f7f83). db_argcxx . . $ dump_fastq_main_args#db_arg. <<cxx . . $ std/`operator<<`(efaf8c13fc75f3c7). "\n"; |
| 156 | } |
| 157 | private: |
| 158 | }; |
| 159 | |
| 160 | #endif // __DUMP_FASTQ_MAIN_ARGS_HPP__" |