ICP
1
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
isis2
instcontrol_temp
ICP
newicp
icp_notifications.h
Go to the documentation of this file.
1
#ifndef ICP_NOTIFIATIONS
2
#define ICP_NOTIFIATIONS
3
4
class
ICPNotification
:
public
Poco::Notification
5
{
6
7
};
8
9
class
RunStateChangeNotification
:
public
ICPNotification
10
{
11
std::string
m_state
;
12
RunStateChangeNotification
() { }
13
public
:
14
RunStateChangeNotification
(
const
std::string& state) :
m_state
(state) { }
15
};
16
17
class
RunEndedNotification
:
public
RunStateChangeNotification
18
{
19
public
:
20
RunEndedNotification
() :
RunStateChangeNotification
(
"END"
) { }
21
};
22
23
class
ICPNotificationHandler
24
{
25
public
:
26
void
handleNotification
(
ICPNotification
* pNf)
// called by Poco::Observer
27
{
28
//pNf->name();
29
pNf->release();
30
}
31
void
handleNotification
(
const
Poco::AutoPtr<ICPNotification>&
/*pNf*/
)
// called by Poco::NObserver
32
{
33
//pNf->name();
34
}
35
};
36
37
#endif
/* ICP_NOTIFIATIONS */
RunEndedNotification
Definition:
icp_notifications.h:17
ICPNotificationHandler
Definition:
icp_notifications.h:23
RunStateChangeNotification::RunStateChangeNotification
RunStateChangeNotification(const std::string &state)
Definition:
icp_notifications.h:14
ICPNotification
Definition:
icp_notifications.h:4
RunStateChangeNotification
Definition:
icp_notifications.h:9
ICPNotificationHandler::handleNotification
void handleNotification(ICPNotification *pNf)
Definition:
icp_notifications.h:26
RunEndedNotification::RunEndedNotification
RunEndedNotification()
Definition:
icp_notifications.h:20
ICPNotificationHandler::handleNotification
void handleNotification(const Poco::AutoPtr< ICPNotification > &)
Definition:
icp_notifications.h:31
RunStateChangeNotification::RunStateChangeNotification
RunStateChangeNotification()
Definition:
icp_notifications.h:12
RunStateChangeNotification::m_state
std::string m_state
Definition:
icp_notifications.h:11
Generated by
1.8.5