Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / EventChannel_Command.h
blob9900fe4772a26f27f90dad095953f5b48ca4b251
1 /* -*- C++ -*- */
2 /**
3 * @file EventChannel_Command.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H
9 #define TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H
10 #include /**/ "ace/pre.h"
12 #include "notify_test_export.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "ace/SString.h"
19 #include "orbsvcs/CosNotifyChannelAdminC.h"
20 #include "Command.h"
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
23 class TAO_Notify_Service;
24 TAO_END_VERSIONED_NAMESPACE_DECL
26 /**
27 * @class TAO_Notify_Tests_EventChannel_Command
29 * @brief Command object for event channels.
31 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_EventChannel_Command : public TAO_Notify_Tests_Command
33 public:
34 /// Constructor
35 TAO_Notify_Tests_EventChannel_Command ();
37 /// Destructor
38 virtual ~TAO_Notify_Tests_EventChannel_Command ();
40 /// Parse args and populate options.
41 virtual void init (ACE_Arg_Shifter& arg_shifter);
43 /// Execute the command.
44 virtual void execute_i ();
46 /// Name of object
47 virtual const char* get_name ();
48 static const char* name ();
50 protected:
51 ///= Data Members
52 enum COMMAND
54 CREATE,
55 DESTROY,
56 SET_QOS,
57 SET_ADMIN,
58 DUMP_STATE
61 ACE_CString name_;
63 ACE_CString factory_;
65 CosNotifyChannelAdmin::ChannelID id_;
67 CosNotification::QoSProperties qos_;
69 CosNotification::AdminProperties admin_;
71 /// Flag to tell if the Channel Factory should be collocated.
72 CORBA::Boolean collocated_;
74 /// Helper method to create a collocated ECF.
75 void create_collocated_ecf ();
77 /// = Handlers
78 void handle_create ();
79 void handle_destroy ();
80 void handle_set_qos ();
81 void handle_status ();
84 #include /**/ "ace/post.h"
85 #endif /* TAO_Notify_Tests_EVENTCHANNEL_COMMAND_H */