Tomáš Pecka | 74b885f | 2020-06-06 20:02:41 +0200 | [diff] [blame] | 1 | #pragma once |
| 2 | #include <cstdint> |
| 3 | #include <ostream> |
| 4 | #include <spdlog/fmt/ostr.h> // allow spdlog to use operator<<(ostream, State) to print State |
| 5 | |
Tomáš Pecka | 261c886 | 2020-11-05 11:23:08 +0100 | [diff] [blame] | 6 | namespace velia::health { |
Tomáš Pecka | 74b885f | 2020-06-06 20:02:41 +0200 | [diff] [blame] | 7 | |
| 8 | enum class State { |
| 9 | OK, |
| 10 | WARNING, |
| 11 | ERROR, |
| 12 | // keep sorted by severity ascending (good ---> bad) |
| 13 | }; |
| 14 | |
| 15 | std::ostream& operator<<(std::ostream& os, State state); |
| 16 | |
| 17 | } |