seqan3 icon indicating copy to clipboard operation
seqan3 copied to clipboard

[IO] Access list of file extensions of seqan3 I/O input classes

Open Irallia opened this issue 4 years ago • 1 comments

While solving https://github.com/seqan/sharg-parser/issues/42 we would like to to access the file extensions via:

#include <seqan3/io/sequence_file/input.hpp>
#include <seqan3/io/sequence_file/output.hpp>

sharg::input_file_validator validator1{seqan3::sequence_file_input<>::file_extensions};

std::cerr << validator1.get_help_page_message() << '\n';

Irallia avatar Jan 10 '22 10:01 Irallia

I found that this is currently possible with the following code:

seqan3::input_file_validator<seqan3::sequence_file_input<>> validator1{};

(found here: test/snippet/argument_parser/validators_input_file_ext_from_file.cpp)

joergi-w avatar Jan 26 '22 12:01 joergi-w