| 3883 | } |
| 3884 | /// @brief Adds flag and removes it when scope goes out |
| 3885 | class ScopedAddFlag { |
| 3886 | public: |
| 3887 | ScopedAddFlag(LoggingFlag flag) : m_flag(flag) { |
| 3888 | Loggers::addFlag(m_flag); |
| 3889 | } |
| 3890 | ~ScopedAddFlag(void) { |
| 3891 | Loggers::removeFlag(m_flag); |
| 3892 | } |
| 3893 | private: |
| 3894 | LoggingFlag m_flag; |
| 3895 | }; |
| 3896 | /// @brief Removes flag and add it when scope goes out |
| 3897 | class ScopedRemoveFlag { |
| 3898 | public: |
nothing calls this directly
no outgoing calls
no test coverage detected