Debian Codegraph @

src/data/Strand.cpp

raw
1 #include <pbcopper/data/Strand.h>
2
3 #include <array>
4 #include <ostream>
5 #include <string_view>
6
7 namespace PacBio {
8 namespace Data {
9
10 std::ostream& operator<<(std::ostream& os, const Strand& strand)
11 {
12 constexpr std::array<std::string_view, 3> STRAND_NAME{
13 "FORWARD",
14 "REVERSE",
15 "UNMAPPED",
16 };
17 return os << STRAND_NAME[static_cast<int>(strand)];
18 }
19
20 } // namespace Data
21 } // namespace PacBio