Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / Basic / IdAssignment.h
blob19b8e23ac7afc1fa2f08cb9d1a74bf2cb2ff62ae
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file IdAssignment.h
6 * Test to check if ec, admin are assigned id's correctly.
8 * @author Chanaka Liyanaarachchi <chanaka@ociweb.com> and Pradeep Gore <pradeep@cs.wustl.edu>
9 */
10 //=============================================================================
13 #ifndef IDASSIGNMENT_H
14 #define IDASSIGNMENT_H
16 #include "orbsvcs/CosNotifyChannelAdminC.h"
18 class IdAssignment
20 public:
21 IdAssignment ();
22 ~IdAssignment ();
24 int parse_args (int argc,
25 ACE_TCHAR *argv[]);
26 void init (int argc,
27 ACE_TCHAR *argv[]);
28 void run_test ();
30 private:
31 CosNotifyChannelAdmin::ChannelID create_ec ();
32 void destroy_ec (CosNotifyChannelAdmin::ChannelID id);
34 CosNotifyChannelAdmin::AdminID create_supplier_admin (
35 CosNotifyChannelAdmin::ChannelID channel_id);
36 CosNotifyChannelAdmin::AdminID create_consumer_admin (
37 CosNotifyChannelAdmin::ChannelID channel_id);
39 void destroy_consumer_admin (CosNotifyChannelAdmin::ChannelID channel_id,
40 CosNotifyChannelAdmin::AdminID admin_id);
41 void destroy_supplier_admin (CosNotifyChannelAdmin::ChannelID channel_id,
42 CosNotifyChannelAdmin::AdminID admin_id);
44 bool default_consumer_admin_test (CosNotifyChannelAdmin::ChannelID channel_id);
45 bool default_supplier_admin_test (CosNotifyChannelAdmin::ChannelID channel_id);
48 // = Data members.
49 CosNotifyChannelAdmin::EventChannelFactory_var notify_factory_;
51 /// Number of iterations for the test.
52 int iter_;
54 /// Numbers of EC's to create.
55 int ec_count_;
57 /// Number of consumer admins to create per ec.
58 int consumer_admin_count_;
60 /// Number of consumer admins to create per ec.
61 int supplier_admin_count_;
64 #endif /* IDASSIGNMENT_H */