dca_interface  6.3.4
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 
25 {
26 public:
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
Example implementation of a schedule event subscriber.
ScheduleModuleId
This defines the module id of a schedule event.
Definition: base_classes.h:511
ScheduleActionType
This defines the action type of a schedule event.
Definition: base_classes.h:495
virtual void onEvent(dca::ScheduleActionType actionType, dca::ScheduleModuleId moduleId, const std::string &version, const std::string &text)
Implementation of interface class method onEvent.
void DumpEventMessages() const
Dumps all collected messages to screen.
This header includes all header files of the DCA Base Package.
An interface for schedule event notifications. Derive a class from this interface and implement onEve...
Definition: base_classes.h:526