blob: ebfe6d9568098e8dca65da628688f27656973f04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Notify_StructuredEvents.h
*
* $Id$
*
* For use with the Sequence (Push/Pull)(Consumer/Supplier)
*
*
* @author Chad Elliott <elliott_c@ociweb.com>
*/
//=============================================================================
#ifndef TAO_NOTIFY_STRUCTURED_EVENTS_H
#define TAO_NOTIFY_STRUCTURED_EVENT_H
#include "ace/pre.h"
#include "orbsvcs/Notify/Notify_Event.h"
#include "notify_export.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
/**
* @class TAO_Notify_StructuredEvents
*
* @brief TAO_Notify_StructuredEvents
*
* This class is the concrete prototype for the Structured Event Types.
*/
class TAO_Notify_Export TAO_Notify_StructuredEvents : public TAO_Notify_Event
{
public:
TAO_Notify_StructuredEvents (const CosNotification::EventBatch& notifications);
virtual ~TAO_Notify_StructuredEvents ();
virtual TAO_Notify_Event* clone (void);
void operator=(const TAO_Notify_StructuredEvents& structured_events);
virtual CORBA::Boolean is_special_event_type (void) const;
virtual const TAO_Notify_EventType& event_type (void) const;
virtual CORBA::Boolean do_match (CosNotifyFilter::Filter_ptr filter ACE_ENV_ARG_DECL);
virtual void do_push (CosEventComm::PushConsumer_ptr consumer ACE_ENV_ARG_DECL) const;
virtual void do_push (CosNotifyComm::StructuredPushConsumer_ptr consumer ACE_ENV_ARG_DECL) const;
virtual void do_push (CosNotifyComm::SequencePushConsumer_ptr consumer,
const TAO_Notify_QoSAdmin_i& qos_admin,
CosNotification::EventBatch& unsent,
int flush_queue
ACE_ENV_ARG_DECL) const;
protected:
/// Load the QoS properties these events from <data_>.
void init_QoS (void);
// = Data Members
/// The data
CosNotification::EventBatch data_;
/// The events that matched the filter
TAO_Unbounded_Sequence<CORBA::ULong> matching_;
/// Was do_match () called?
int match_called_;
/// The event types of <data_>
TAO_Notify_EventType event_type_;
};
#include "ace/post.h"
#endif /* TAO_NOTIFY_EVENT_H */
|