Merge pull request #1844 from jrw972/monterey
[ACE_TAO.git] / TAO / tests / Param_Test / client.h
blobd4a139e5bd7895f4973591bf72d63a07e45f243a
2 //=============================================================================
3 /**
4 * @file client.h
6 * Header file for the Param_Test client application.
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef PARAM_TEST_CLIENT_H
14 #define PARAM_TEST_CLIENT_H
16 #include "tao/DynamicInterface/Request.h"
17 #include "tao/Codeset/Codeset.h"
18 #include "param_testC.h"
19 #include "results.h"
21 /**
22 * @class Param_Test_Client
24 * @brief Param_Test_Client
26 * This class declares an interface to run the example client for
27 * Param_Test CORBA server. All the complexity for initializing
28 * the client is hidden in the class. Just the run () interface
29 * is needed. The template class does the specific work of making
30 * the request of the desired data type
32 template <class T>
33 class Param_Test_Client
35 public:
36 typedef T TEST_OBJECT;
38 // = Constructor and destructor.
39 Param_Test_Client (CORBA::ORB_ptr orb,
40 Param_Test_ptr objref,
41 T *);
43 ~Param_Test_Client (void);
45 /// run the SII test
46 int run_sii_test (void);
48 /// run the DII test
49 int run_dii_test (void);
51 private:
52 /// underlying ORB
53 CORBA::ORB_ptr orb_;
55 /// param test object reference
56 Param_Test_ptr param_test_;
58 /// object doing the actual work
59 TEST_OBJECT *test_object_;
61 /// results
62 Results results_;
65 #if defined (ACE_TEMPLATES_REQUIRE_SOURCE)
66 #include "client.cpp"
67 #endif /* ACE_TEMPLATES_REQUIRE_SOURCE */
69 #if defined (ACE_TEMPLATES_REQUIRE_PRAGMA)
70 #pragma implementation ("client.cpp")
71 #endif /* ACE_TEMPLATES_REQUIRE_PRAGMA */
73 #endif /* CLIENTS_H */