hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCENotificationExecutor.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_NOTIFICATION_EXECUTOR_HPP
15 #define DRCE_NOTIFICATION_EXECUTOR_HPP
16 
17 #include <functional>
18 #include <sstream>
19 
20 namespace HCE
21 {
22 namespace drce
23 {
24 //-----------------------------------------------------------------------------
26 {
27 public:
28  DRCENotificationExecutor(void) : notificationFunctor(nullptr) {}
30 
31  void setNotificationFunctor(std::function<std::string(const std::string&)> notificationFunctor_) {notificationFunctor=notificationFunctor_;}
32 
33  void execute(const std::string& json);
34 private:
35  std::function<std::string(const std::string&)> notificationFunctor; // return string content log message
36 };
37 //-----------------------------------------------------------------------------
38 //-----------------------------------------------------------------------------
39 } // end namespace drce
40 } // end namespace HCE
41 
42 #endif // DRCE_NOTIFICATION_EXECUTOR_HPP