Merge pull request #2301 from sonndinh/remove-dup-reactor-functions
[ACE_TAO.git] / TAO / tests / Alt_Mapping / client.h
blob33e6cfff869bb4f1fb3f25c4faadbb590c8b3706
2 //=============================================================================
3 /**
4 * @file client.h
6 * Header file for the Alt_Mapping_Test client application.
8 * @author Aniruddha Gokhale
9 */
10 //=============================================================================
13 #ifndef ALT_MAPPING_CLIENT_H
14 #define ALT_MAPPING_CLIENT_H
16 #include "tao/Codeset/Codeset.h"
17 #include "alt_mappingC.h"
18 #include "results.h"
20 /**
21 * @class Alt_Mapping_Client
23 * @brief Alt_Mapping_Client
25 * This class declares an interface to run the example client for
26 * Alt_Mapping CORBA server. All the complexity for initializing
27 * the client is hidden in the class. Just the run () interface
28 * is needed. The template class does the specific work of making
29 * the request of the desired data type
31 template <class T>
32 class Alt_Mapping_Client
34 public:
35 typedef T TEST_OBJECT;
37 // = Constructor and destructor.
38 Alt_Mapping_Client (CORBA::ORB_ptr orb,
39 Alt_Mapping_ptr objref,
40 T *);
42 ~Alt_Mapping_Client ();
44 /// run the SII test
45 int run_sii_test ();
47 private:
48 /// underlying ORB
49 CORBA::ORB_ptr orb_;
51 /// alt mapping object reference
52 Alt_Mapping_ptr alt_mapping_test_;
54 /// object doing the actual work
55 TEST_OBJECT *test_object_;
57 /// results
58 Results results_;
61 #include "client.cpp"
63 #endif /* ALT_MAPPING_CLIENT_H */