Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / airplane_client_i.h
blob7978e2c932940af47b8ac1cd937930aab71e974c
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file airplane_client_i.h
7 * This class implements a simple CORBA client which returns a random
8 * paper airplane from the paper airplane server.
10 * @author Darrell Brunsch <brunsch@cs.wustl.edu>
12 //=============================================================================
15 #if !defined (AIRPLANE_CLIENT_I_H)
16 #define AIRPLANE_CLIENT_I_H
18 #include "AirplaneC.h"
20 /**
21 * @class Airplane_Client_i
23 * @brief Paper Airplane Client Implementation
25 * Class wrapper for a client which gets the server IOR and then makes
26 * a couple of calls to the server.
28 class Airplane_Client_i
30 public:
31 // = Constructor and destructor.
32 Airplane_Client_i ();
33 ~Airplane_Client_i ();
35 /// Execute client example code.
36 int run ();
38 /// Initialize the client communication endpoint with server.
39 int init (int argc, ACE_TCHAR **argv);
41 private:
42 /// Parses the arguments passed on the command line.
43 int parse_args ();
45 /// Ask the Paper Airplane Server for <count> planes.
46 int get_planes (size_t count);
48 /// # of arguments on the command line.
49 int argc_;
51 /// arguments from command line.
52 ACE_TCHAR **argv_;
54 /// Key of the obj ref of the server.
55 ACE_TCHAR *server_key_;
57 /// Number of airplanes to query for.
58 size_t loop_count_;
60 /// Server object ptr.
61 Paper_Airplane_Server_ptr server_;
63 /// Remember our orb.
64 CORBA::ORB_var orb_;
67 #endif /* AIRPLANE_CLIENT_I_H */