| 42 | // |
| 43 | // |
| 44 | const char* getChannelModeString(ChannelMode mode) |
| 45 | { |
| 46 | switch (mode) |
| 47 | { |
| 48 | case ChannelMode::Invalid: return c_sInvalid; |
| 49 | case ChannelMode::Plain: return c_sPlain; |
| 50 | case ChannelMode::Encrypted: return c_sEncrypted; |
| 51 | case ChannelMode::Both: return c_sBoth; |
| 52 | } |
| 53 | error::InvalidArgument(SL, FMT("Channel mode <" << |
| 54 | +(std::uint8_t)mode << "> has no text string")).throwException(); |
| 55 | } |
| 56 | |
| 57 | // |
| 58 | // |
no test coverage detected