Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Irallia opened this issue Jan 10, 2022 · 1 comment
Open

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

Irallia opened this issue Jan 10, 2022 · 1 comment
Labels
feature/proposal a new feature or an idea of

Comments

@Irallia
Copy link
Contributor

Irallia commented Jan 10, 2022

While solving seqan/sharg-parser#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 Irallia added the feature/proposal a new feature or an idea of label Jan 10, 2022
@smehringer smehringer changed the title [FEATURE] Access file extensions via valid_formats [FEATURE] Access list of file extensions of seqan3 I/O input classes. Jan 12, 2022
@joergi-w
Copy link
Member

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)

@eseiler eseiler changed the title [FEATURE] Access list of file extensions of seqan3 I/O input classes. [IO] Access list of file extensions of seqan3 I/O input classes Oct 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature/proposal a new feature or an idea of
Projects
None yet
Development

No branches or pull requests

2 participants