Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Basic / LifeCycle.h
blob1b3e1272dc4e28e7cdaacdcc564d899f7e022bb4
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file LifeCycle.h
6 * Test to check it ec and admin objects are destroyed.
8 * @author Chanaka Liyanaarachchi <chanaka@ociweb.com>
9 */
10 //=============================================================================
13 #ifndef NOTIFY_LIFECYCLETST_H
14 #define NOTIFY_LIFECYCLETST_H
16 class LifeCycle
18 public:
19 LifeCycle ();
20 ~LifeCycle ();
22 void init (int argc,
23 ACE_TCHAR *argv[]);
24 void run_test ();
25 int parse_args (int argc,
26 ACE_TCHAR *argv[]);
28 private:
29 void create_ec ();
30 void create_supplier_admin ();
31 void create_consumer_admin ();
32 void destroy_ec ();
33 void destroy_supplier_admin ();
34 void destroy_consumer_admin ();
36 CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
37 CosNotifyChannelAdmin::EventChannel_var ec_;
38 CosNotifyChannelAdmin::SupplierAdmin_var supplier_admin_;
39 CosNotifyChannelAdmin::ConsumerAdmin_var consumer_admin_;
41 /// Number of times to create destroy.
42 int count_;
45 #endif /* NOTIFY_LIFECYCLETST_H */