dca_interface
6.3.4
home
build
tmp
dcatmp18664
pkgdevel
dca
samples
url_samples
urldbsample_extended
url_samples/urldbsample_extended/schedule_event_subscriber.h
Go to the documentation of this file.
1
/* IBM Source Code */
2
/* (C) Copyright IBM Corp. 2009, 2012 */
3
/* Licensed Materials - Property of IBM */
4
/* US Government Users Restricted Rights - Use duplication or disclosure restricted by GSA Schedule Contract with IBM Corp. */
5
12
#ifndef SCHEDULE_EVENT_SUBSCRIBER_H
13
#define SCHEDULE_EVENT_SUBSCRIBER_H
14
15
#include <vector>
16
#include <string>
17
18
#include "
dca/dca_base.h
"
19
24
class
MyScheduleEventSubscriber
:
public
dca::ScheduleEventSubscriberIntf
25
{
26
public
:
27
MyScheduleEventSubscriber
();
28
virtual
~
MyScheduleEventSubscriber
();
29
34
virtual
void
onEvent
(
dca::ScheduleActionType
actionType,
dca::ScheduleModuleId
moduleId,
const
std::string& version,
const
std::string& text );
35
39
void
DumpEventMessages
()
const
;
40
41
protected
:
42
43
std::vector<std::string> event_log;
44
};
45
46
#endif
MyScheduleEventSubscriber
Example implementation of a schedule event subscriber.
Definition:
url_samples/urldbsample_extended/schedule_event_subscriber.h:25
dca::ScheduleModuleId
ScheduleModuleId
This defines the module id of a schedule event.
Definition:
base_classes.h:511
dca::ScheduleActionType
ScheduleActionType
This defines the action type of a schedule event.
Definition:
base_classes.h:495
MyScheduleEventSubscriber::onEvent
virtual void onEvent(dca::ScheduleActionType actionType, dca::ScheduleModuleId moduleId, const std::string &version, const std::string &text)
Implementation of interface class method onEvent.
Definition:
url_samples/urldbsample_extended/schedule_event_subscriber.cpp:20
MyScheduleEventSubscriber::DumpEventMessages
void DumpEventMessages() const
Dumps all collected messages to screen.
Definition:
url_samples/urldbsample_extended/schedule_event_subscriber.cpp:88
dca_base.h
This header includes all header files of the DCA Base Package.
dca::ScheduleEventSubscriberIntf
An interface for schedule event notifications. Derive a class from this interface and implement onEve...
Definition:
base_classes.h:526
Generated by
1.8.18