blob: 0e7224827a41c087561cb3f063b2327f0101a455 (
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file ExtendedFilter.h
*
* $Id$
*
* Filter test any supplier to any consumer.
*
*
* @author Pradeep Gore <pradeep@cs.wustl.edu>
*/
//=============================================================================
#ifndef NOTIFY_TESTS_EXTENDED_FILTER_H
#define NOTIFY_TESTS_EXTENDED_FILTER_H
#include "Notify_Test_Client.h"
#include "Notify_PushConsumer.h"
#include "Notify_PushSupplier.h"
#if defined(_MSC_VER)
#pragma warning(push)
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class ExtendedFilter : public Notify_Test_Client
{
public:
// Initialization and termination code
ExtendedFilter (void);
virtual ~ExtendedFilter (void);
/// initialization.
int init (int argc,
ACE_TCHAR *argv []);
/// Run the test.
void run_test (void);
protected:
/// Create EC
void create_EC (void);
/// Run some tests to check the filters.
void run_filter_test (CosNotifyFilter::FilterAdmin_ptr);
/// Print the filter ids.
void print_filters (CosNotifyFilter::FilterAdmin_ptr filter_seq);
/// Verify filter count.
void verify_filter_count (CosNotifyFilter::FilterAdmin_ptr filter_admin, CORBA::ULong expected_count);
/// Add a filter.
CosNotifyFilter::FilterID add_filter (CosNotifyFilter::FilterAdmin_ptr filter_admin);
///// Remove filters from the factory
//void remove_filter_cleanup (CosNotifyFilter::FilterAdmin_ptr filter_admin, CosNotifyFilter::FilterID id);
/// The default filter factory.
CosNotifyFilter::FilterFactory_var ffact_;
/// Number of events received so far.
ACE_Atomic_Op <TAO_SYNCH_MUTEX, int> result_count_;
/// Number of events to send
int event_count_;
/// The first channel that we create using the factory.
CosNotifyChannelAdmin::EventChannel_var ec_;
/// The second channel that we create using the factory.
CosNotifyChannelAdmin::EventChannel_var ec2_;
/// The consumer admin used by consumers.
CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin_;
/// The supplier admin used by suppliers.
CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin_;
};
/***************************************************************************/
#if defined(_MSC_VER)
#pragma warning(pop)
#endif /* _MSC_VER */
#endif /* NOTIFY_TESTS_EXTENDED_FILTER_H */
|