Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Periodic_Consumer_Command.h
blobcac534dd344cbf92d8d79155d3ffc9148f442094
1 /* -*- C++ -*- */
2 /**
3 * @file Periodic_Consumer_Command.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_PERIODICCONSUMER_COMMAND_H
9 #define TAO_Notify_Tests_PERIODICCONSUMER_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 class TAO_Notify_Tests_Periodic_Consumer;
24 /**
25 * @class TAO_Notify_Tests_Periodic_Consumer_Command
27 * @brief Options for Periodic Consumers.
29 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Periodic_Consumer_Command : public TAO_Notify_Tests_Command
31 public:
32 /// Constructor
33 TAO_Notify_Tests_Periodic_Consumer_Command ();
35 /// Destructor
36 ~TAO_Notify_Tests_Periodic_Consumer_Command ();
38 /// Parse args and populate options.
39 virtual void init (ACE_Arg_Shifter& arg_shifter);
41 /// Execute the command.
42 virtual void execute_i ();
44 /// Name of object
45 virtual const char* get_name ();
46 static const char* name ();
48 protected:
49 ///= Data Members
50 enum COMMAND
52 CREATE,
53 DESTROY,
54 SET_QOS,
55 SET_ADMIN,
56 SUBSCRIPTION,
57 DISCONNECT,
58 DEACTIVATE,
59 DUMP_STATE
62 /// My name.
63 ACE_CString name_;
65 /// QoS
66 CosNotification::QoSProperties qos_;
68 // Subscription change
69 CosNotification::EventTypeSeq added_;
70 CosNotification::EventTypeSeq removed_;
72 ///= Methods
73 // Retreive the consumer.
74 TAO_Notify_Tests_Periodic_Consumer* consumer ();
76 ///= Handlers
77 void handle_create ();
78 void handle_subscriptions ();
79 void handle_disconnect ();
80 void handle_deactivate ();
81 void handle_status ();
82 void handle_set_qos ();
85 #include /**/ "ace/post.h"
86 #endif /* TAO_Notify_Tests_PERIODICCONSUMER_COMMAND_H */