SeqAn3 3.4.0-rc.1
The Modern C++ library for sequence analysis.
|
A type (e.g. an enum) can be made debug streamable by customizing the seqan3::enumeration_names. More...
#include <seqan3/argument_parser/auxiliary.hpp>
Public Member Functions | |
template<typename stream_t > | |
constexpr void | operator() (stream_t &stream, enum_t const arg) const |
Prints the associated label of the given enum value. | |
A type (e.g. an enum) can be made debug streamable by customizing the seqan3::enumeration_names.
This searches the seqan3::enumeration_names of the respective type for the value op
and prints the respective string if found or '<UNKNOWN_VALUE>' if the value cannot be found in the map.
enum_t | Type of the enum to be printed; must model seqan3::named_enumeration. |
|
inlineconstexpr |
Prints the associated label of the given enum value.
stream_t | The type of the stream. |
[in,out] | stream | The output stream. |
[in] | arg | The enum value to print. |
If for the given enumeration value no enumeration name can be found, "<UNKNOWN_VALUE>" is printed.