| Matthew Barth | b86374d | 2017-04-12 10:57:19 -0500 | [diff] [blame^] | 1 | #pragma once | 
| 2 | |||||
| 3 | #include "data_types.hpp" | ||||
| 4 | |||||
| 5 | namespace phosphor | ||||
| 6 | { | ||||
| 7 | namespace dbus | ||||
| 8 | { | ||||
| 9 | namespace monitoring | ||||
| 10 | { | ||||
| 11 | |||||
| 12 | class Monitor; | ||||
| 13 | |||||
| 14 | template <typename T> | ||||
| 15 | auto make_condition(T&& condition) | ||||
| 16 | { | ||||
| 17 | return Condition(std::forward<T>(condition)); | ||||
| 18 | } | ||||
| 19 | |||||
| 20 | template <typename T> | ||||
| 21 | auto make_action(T&& action) | ||||
| 22 | { | ||||
| 23 | return Action(std::forward<T>(action)); | ||||
| 24 | } | ||||
| 25 | |||||
| 26 | } // namespace monitoring | ||||
| 27 | } // namespace dbus | ||||
| 28 | } // namespace phosphor | ||||