Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / lib / Periodic_Supplier_Command.h
blob557188fd4d16c168822d9ff0e065a66cc7c5cfc8
1 /* -*- C++ -*- */
2 /**
3 * @file Periodic_Supplier_Command.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_PERIODICSUPPLIER_COMMAND_H
9 #define TAO_Notify_Tests_PERIODICSUPPLIER_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_Supplier;
24 /**
25 * @class TAO_Notify_Tests_Periodic_Supplier_Command
27 * @brief Command for Periodic Suppliers.
29 class TAO_NOTIFY_TEST_Export TAO_Notify_Tests_Periodic_Supplier_Command : public TAO_Notify_Tests_Command
31 public:
32 /// Constructor
33 TAO_Notify_Tests_Periodic_Supplier_Command ();
35 /// Destructor
36 ~TAO_Notify_Tests_Periodic_Supplier_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 enum COMMAND
51 CREATE,
52 DESTROY,
53 SET_QOS,
54 SET_ADMIN,
55 OFFER,
56 DISCONNECT,
57 DEACTIVATE,
58 DUMP_STATE
61 /// My name.
62 ACE_CString name_;
64 /// QoS
65 CosNotification::QoSProperties qos_;
67 // Offer change
68 CosNotification::EventTypeSeq added_;
69 CosNotification::EventTypeSeq removed_;
71 ///= Methods
72 // Retreive the suppliers.
73 TAO_Notify_Tests_Periodic_Supplier* supplier ();
75 ///= Handlers
76 void handle_create ();
77 void handle_offers ();
78 void handle_disconnect ();
79 void handle_deactivate ();
80 void handle_status ();
81 void handle_set_qos ();
84 #include /**/ "ace/post.h"
85 #endif /* TAO_Notify_Tests_PERIODICSUPPLIER_COMMAND_H */