Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / orbsvcs / tests / Notify / RT_lib / RT_POA_Command.h
bloba5457acb7d2b0c61272197dbd7d8877a52f0a796
1 /* -*- C++ -*- */
2 /**
3 * @file RT_POA_Command.h
5 * @author Pradeep Gore <pradeep@oomworks.com>
6 */
8 #ifndef TAO_Notify_Tests_RT_POA_COMMAND_H
9 #define TAO_Notify_Tests_RT_POA_COMMAND_H
10 #include /**/ "ace/pre.h"
12 #include "rt_notify_test_export.h"
14 #if !defined (ACE_LACKS_PRAGMA_ONCE)
15 # pragma once
16 #endif /* ACE_LACKS_PRAGMA_ONCE */
18 #include "tao/ORB.h"
19 #include "tao/RTCORBA/RTCORBA.h"
20 #include "tao/PortableServer/PortableServer.h"
21 #include "../lib/Command.h"
22 #include "ace/SString.h"
24 /**
25 * @class TAO_Notify_Tests_RT_POA_Command
27 * @brief Command for managing RTCORBA POAs.
29 class TAO_RT_NOTIFY_TEST_Export TAO_Notify_Tests_RT_POA_Command : public TAO_Notify_Tests_Command
31 public:
32 /// Constructor
33 TAO_Notify_Tests_RT_POA_Command ();
35 /// Destructor
36 ~TAO_Notify_Tests_RT_POA_Command ();
38 /// Parse args and populate options.
39 /// The arg_shifter options are read in the following manner: -Create <name> -PriorityModel <CLIENT|SERVER> <priority> -Lanes <count> (-Lane <priority> ,<static_threads> <dynamic_threads>)* -Bands <count> (-Band <low> <high>)*
40 virtual void init (ACE_Arg_Shifter& arg_shifter);
42 /// Execute the command.
43 virtual void execute_i ();
45 /// Get the command name.
46 virtual const char* get_name ();
47 static const char* name ();
49 protected:
50 /// Create the POA with the params parsed.
51 void create (RTCORBA::RTORB_ptr rt_orb, PortableServer::POA_ptr parent_poa);
53 enum COMMAND
55 CREATE,
56 DESTROY,
57 DUMP_STATE
60 ACE_CString POA_name_;
62 RTCORBA::PriorityModel priority_model_;
63 RTCORBA::Priority server_priority_;
64 RTCORBA::ThreadpoolLanes lanes_;
65 RTCORBA::PriorityBands bands_;
67 CORBA::ULong thread_pool_static_threads_;
68 RTCORBA::Priority thread_pool_default_priority_;
71 #include /**/ "ace/post.h"
72 #endif /* TAO_Notify_Tests_RT_POA_COMMAND_H */