Revert "Use a variable on the stack to not have a temporary in the call"
[ACE_TAO.git] / TAO / tests / Smart_Proxies / Collocation / Coll_Tester.h
blobb1309a4f502253f6940a1ed8969781e04c81b862
1 //============================================================================
2 //
3 // =FILENAME
4 // Collocation_Test.h
5 //
6 // =DESCRIPTION
7 // Server class to perform testing of TAO's collocation mechanism.
8 //
9 // =AUTHOR
10 // Nanbor Wang
12 //=============================================================================
14 #if !defined (TAO_COLLOCATION_TEST_H)
15 #define TAO_COLLOCATION_TEST_H
17 #include "Diamond_i.h"
19 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 # pragma once
21 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 class Collocation_Test
26 public:
27 Collocation_Test ();
29 int init (int argc, ACE_TCHAR *argv[]);
30 // Initializing the Collocation_Test object.
32 int parse_args (int argc, ACE_TCHAR *argv[]);
33 // Parse the test specific arguments.
35 int test_narrow ();
36 // This test narrow an object reference to its base class and see
37 // if it works correctly.
39 int run ();
40 // Run the test.
42 private:
43 CORBA::ORB_var orb_;
45 PortableServer::POA_var root_poa_;
47 PortableServer::POAManager_var poa_manager_;
49 CORBA::Object_var diamond_obj_;
50 // Our basic test object.
52 Top_i top_servant_;
53 Left_i left_servant_;
54 Right_i right_servant_;
55 Buttom_i diamond_servant_;
56 // A collection of servant for basic narrowing test.
59 #endif /* TAO_COLLOCATION_TEST_H */