3 //=============================================================================
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"
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
31 // = Constructor and destructor.
32 Airplane_Client_i (void);
33 ~Airplane_Client_i (void);
35 /// Execute client example code.
38 /// Initialize the client communication endpoint with server.
39 int init (int argc
, ACE_TCHAR
**argv
);
42 /// Parses the arguments passed on the command line.
43 int parse_args (void);
45 /// Ask the Paper Airplane Server for <count> planes.
46 int get_planes (size_t count
);
48 /// # of arguments on the command line.
51 /// arguments from command line.
54 /// Key of the obj ref of the server.
55 ACE_TCHAR
*server_key_
;
57 /// Number of airplanes to query for.
60 /// Server object ptr.
61 Paper_Airplane_Server_ptr server_
;
67 #endif /* AIRPLANE_CLIENT_I_H */