28 #ifndef CASTATUSMANAGER_HPP_
29 #define CASTATUSMANAGER_HPP_
40 #ifdef SERVER_MONITORING
52 DOMElement *dsi_stateType;
53 DOMElement *dsi_stateLevel;
54 DOMElement *dsi_stateDesc;
57 typedef struct dom_state_info dom_state_info_t;
85 dom_state_info_t *m_pCurrentStatesInfo;
91 volatile bool m_bTryListen;
95 XERCES_CPP_NAMESPACE::DOMDocument* m_pPreparedStatusMessage;
98 static CAStatusManager *ms_pStatusManager;
102 static state_t ***ms_pAllStates;
106 static event_t ***ms_pAllEvents;
109 virtual ~CAStatusManager();
113 static void initStates();
114 static void initEvents();
116 static void deleteStates();
117 static void deleteEvents();
121 SINT32 initStatusMessage();
127 #define MONITORING_FIRE_NET_EVENT(e_type) \
128 MONITORING_FIRE_EVENT(e_type, stat_networking)
129 #define MONITORING_FIRE_PAY_EVENT(e_type) \
130 MONITORING_FIRE_EVENT(e_type, stat_payment)
131 #define MONITORING_FIRE_SYS_EVENT(e_type) \
132 MONITORING_FIRE_EVENT(e_type, stat_system)
134 #define MONITORING_FIRE_EVENT(e_type, s_type) \
135 CAStatusManager::fireEvent(e_type, s_type)
139 #define MONITORING_FIRE_NET_EVENT(e_type)
140 #define MONITORING_FIRE_PAY_EVENT(e_type)
141 #define MONITORING_FIRE_SYS_EVENT(e_type)
143 #define MONITORING_FIRE_EVENT(e_type, s_type)
This class represents a socket address for Internet (IP) connections.
enum event_type event_type_t
enum status_type status_type_t
void init()
do necessary initialisations of libraries etc.
void cleanup()
do necessary cleanups of libraries etc.