Tomáš Pecka | 261c886 | 2020-11-05 11:23:08 +0100 | [diff] [blame] | 1 | #include "health/State.h" |
Tomáš Pecka | 74b885f | 2020-06-06 20:02:41 +0200 | [diff] [blame] | 2 | |
Tomáš Pecka | 261c886 | 2020-11-05 11:23:08 +0100 | [diff] [blame] | 3 | namespace velia::health { |
Tomáš Pecka | 74b885f | 2020-06-06 20:02:41 +0200 | [diff] [blame] | 4 | |
| 5 | std::ostream& operator<<(std::ostream& os, State state) |
| 6 | { |
| 7 | os << "State::"; |
| 8 | switch (state) { |
| 9 | case State::ERROR: |
| 10 | os << "ERROR"; |
| 11 | break; |
| 12 | case State::WARNING: |
| 13 | os << "WARNING"; |
| 14 | break; |
| 15 | case State::OK: |
| 16 | os << "OK"; |
| 17 | break; |
| 18 | } |
| 19 | |
| 20 | return os; |
| 21 | } |
| 22 | |
| 23 | } |