Logo Search packages:      
Sourcecode: jellyfish version File versions  Download package

int mer_counter_cmdline_dump ( FILE *  outfile,
struct mer_counter_args args_info 
)

Save the contents of the option struct into an already open FILE stream.

Parameters:
outfilethe stream where to dump options
args_infothe option struct to dump
Returns:
0 if everything went fine, NON 0 if an error took place

Definition at line 365 of file mer_counter_cmdline.cc.

References mer_counter_args::both_given, mer_counter_args::both_strands_given, mer_counter_args::buffer_size_given, mer_counter_args::buffer_size_orig, mer_counter_args::buffers_given, mer_counter_args::buffers_orig, mer_counter_args::counter_len_given, mer_counter_args::counter_len_orig, mer_counter_args::full_help_given, mer_counter_args::help_given, mer_counter_args::lock_given, mer_counter_args::lower_count_given, mer_counter_args::lower_count_orig, mer_counter_args::matrix_given, mer_counter_args::matrix_orig, mer_counter_args::measure_given, MER_COUNTER_CMDLINE_PACKAGE, mer_counter_args::mer_len_given, mer_counter_args::mer_len_orig, mer_counter_args::min_quality_given, mer_counter_args::min_quality_orig, mer_counter_args::no_write_given, mer_counter_args::out_buffer_size_given, mer_counter_args::out_buffer_size_orig, mer_counter_args::out_counter_len_given, mer_counter_args::out_counter_len_orig, mer_counter_args::output_given, mer_counter_args::output_orig, mer_counter_args::quake_given, mer_counter_args::quality_start_given, mer_counter_args::quality_start_orig, mer_counter_args::raw_given, mer_counter_args::reprobes_given, mer_counter_args::reprobes_orig, mer_counter_args::size_given, mer_counter_args::size_orig, mer_counter_args::stats_given, mer_counter_args::stats_orig, mer_counter_args::stream_given, mer_counter_args::threads_given, mer_counter_args::threads_orig, mer_counter_args::timing_given, mer_counter_args::timing_orig, mer_counter_args::upper_count_given, mer_counter_args::upper_count_orig, and mer_counter_args::version_given.

{
  int i = 0;

  if (!outfile)
    {
      fprintf (stderr, "%s: cannot dump options to stream\n", MER_COUNTER_CMDLINE_PACKAGE);
      return EXIT_FAILURE;
    }

  if (args_info->help_given)
    write_into_file(outfile, "help", 0, 0 );
  if (args_info->full_help_given)
    write_into_file(outfile, "full-help", 0, 0 );
  if (args_info->version_given)
    write_into_file(outfile, "version", 0, 0 );
  if (args_info->mer_len_given)
    write_into_file(outfile, "mer-len", args_info->mer_len_orig, 0);
  if (args_info->size_given)
    write_into_file(outfile, "size", args_info->size_orig, 0);
  if (args_info->threads_given)
    write_into_file(outfile, "threads", args_info->threads_orig, 0);
  if (args_info->output_given)
    write_into_file(outfile, "output", args_info->output_orig, 0);
  if (args_info->counter_len_given)
    write_into_file(outfile, "counter-len", args_info->counter_len_orig, 0);
  if (args_info->out_counter_len_given)
    write_into_file(outfile, "out-counter-len", args_info->out_counter_len_orig, 0);
  if (args_info->both_strands_given)
    write_into_file(outfile, "both-strands", 0, 0 );
  if (args_info->reprobes_given)
    write_into_file(outfile, "reprobes", args_info->reprobes_orig, 0);
  if (args_info->raw_given)
    write_into_file(outfile, "raw", 0, 0 );
  if (args_info->both_given)
    write_into_file(outfile, "both", 0, 0 );
  if (args_info->quake_given)
    write_into_file(outfile, "quake", 0, 0 );
  if (args_info->quality_start_given)
    write_into_file(outfile, "quality-start", args_info->quality_start_orig, 0);
  if (args_info->min_quality_given)
    write_into_file(outfile, "min-quality", args_info->min_quality_orig, 0);
  if (args_info->lower_count_given)
    write_into_file(outfile, "lower-count", args_info->lower_count_orig, 0);
  if (args_info->upper_count_given)
    write_into_file(outfile, "upper-count", args_info->upper_count_orig, 0);
  if (args_info->matrix_given)
    write_into_file(outfile, "matrix", args_info->matrix_orig, 0);
  if (args_info->timing_given)
    write_into_file(outfile, "timing", args_info->timing_orig, 0);
  if (args_info->stats_given)
    write_into_file(outfile, "stats", args_info->stats_orig, 0);
  if (args_info->no_write_given)
    write_into_file(outfile, "no-write", 0, 0 );
  if (args_info->measure_given)
    write_into_file(outfile, "measure", 0, 0 );
  if (args_info->buffers_given)
    write_into_file(outfile, "buffers", args_info->buffers_orig, 0);
  if (args_info->buffer_size_given)
    write_into_file(outfile, "buffer-size", args_info->buffer_size_orig, 0);
  if (args_info->out_buffer_size_given)
    write_into_file(outfile, "out-buffer-size", args_info->out_buffer_size_orig, 0);
  if (args_info->lock_given)
    write_into_file(outfile, "lock", 0, 0 );
  if (args_info->stream_given)
    write_into_file(outfile, "stream", 0, 0 );
  

  i = EXIT_SUCCESS;
  return i;
}

Generated by  Doxygen 1.6.0   Back to index