blob: 93cbd9a134db8b4cfae861755213149db9884b8f (
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
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file LifeCycle.h
*
* $Id$
*
* Test to check it ec and admin objects are destroyed.
*
*
* @author Chanaka Liyanaarachchi <chanaka@ociweb.com>
*/
//=============================================================================
#ifndef NOTIFY_LIFECYCLETST_H
#define NOTIFY_LIFECYCLETST_H
class LifeCycle
{
public:
LifeCycle (void);
~LifeCycle (void);
void init (int argc,
ACE_TCHAR *argv[]);
void run_test (void);
int parse_args (int argc,
ACE_TCHAR *argv[]);
private:
void create_ec (void);
void create_supplier_admin (void);
void create_consumer_admin (void);
void destroy_ec (void);
void destroy_supplier_admin (void);
void destroy_consumer_admin (void);
CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
CosNotifyChannelAdmin::EventChannel_var ec_;
CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin_;
CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin_;
/// Number of times to create destroy.
int count_;
};
#endif /* NOTIFY_LIFECYCLETST_H */
|