struct temporary_file
{
temporary_file()
{
}
temporary_file(temporary_file const &) = delete;
temporary_file & operator=(temporary_file const &) = delete;
temporary_file(temporary_file &&) = delete;
temporary_file & operator=(temporary_file &&) = delete;
~temporary_file()
{
}
{
}
};
static constexpr auto sam_file_raw = R"(@HD VN:1.6 pb:5.0.0 ot:ter
@SQ SN:ref LN:34
)";
static auto get_sam_file_input()
{
}
void defaults_to_cerr()
{
auto fin = get_sam_file_input();
auto it = fin.begin();
}
void redirect_to_cout()
{
auto fin = get_sam_file_input();
auto it = fin.begin();
}
void redirect_to_file()
{
temporary_file tmp_file{};
auto fin = get_sam_file_input();
{
auto it = fin.begin();
}
std::cout <<
"File content:\n" << tmp_file.read_content();
}
void silence_warnings()
{
auto fin = get_sam_file_input();
fin.options.stream_warnings_to = nullptr;
auto it = fin.begin();
}
void filter()
{
auto fin = get_sam_file_input();
auto it = fin.begin();
for (
auto && warning : stream.view() |
std::views::split(
'\n'))
{
if (warning.size() == 0u)
continue;
if (sv.find("pb") == sv.npos)
}
}
{
}
int main()
{
print_section("defaults_to_cerr");
defaults_to_cerr();
print_section("redirect_to_cout");
redirect_to_cout();
print_section("redirect_to_file");
redirect_to_file();
print_section("silence_warnings");
silence_warnings();
print_section("filter");
filter();
}
SeqAn specific customisations in the standard namespace.
T temp_directory_path(T... args)
### defaults_to_cerr ###
Unsupported tag found in SAM header @HD: "pb:5.0.0"
Unsupported tag found in SAM header @HD: "ot:ter"
### redirect_to_cout ###
### redirect_to_file ###
### silence_warnings ###
### filter ###
Unsupported tag found in SAM header @HD: "ot:ter"
### defaults_to_cerr ###
### redirect_to_cout ###
Unsupported tag found in SAM header @HD: "pb:5.0.0"
Unsupported tag found in SAM header @HD: "ot:ter"
### redirect_to_file ###
File content:
Unsupported tag found in SAM header @HD: "pb:5.0.0"
Unsupported tag found in SAM header @HD: "ot:ter"
### silence_warnings ###
### filter ###