Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / orbsvcs / tests / ImplRepo / nestea_client_i.h
blob589ce0e3290a0221a616b80bc6b00ab4daa6caff
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file nestea_client_i.h
7 * This class implements a simple CORBA client which controls a Nestea
8 * can database
10 * @author Darrell Brunsch <brunsch@cs.wustl.edu>
12 //=============================================================================
15 #if !defined (NESTEA_CLIENT_I_H)
16 #define NESTEA_CLIENT_I_H
18 #include "NesteaC.h"
20 /**
21 * @class Nestea_Client_i
23 * @brief Nestea Bookshelf 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 Nestea_Client_i
30 public:
31 // = Constructor and destructor.
32 Nestea_Client_i ();
33 ~Nestea_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 /// # of arguments on the command line.
46 int argc_;
48 /// arguments from command line.
49 ACE_TCHAR **argv_;
51 /// Key of the obj ref of the server.
52 ACE_TCHAR *server_key_;
54 /// Server object ptr.
55 Nestea_Bookshelf_ptr server_;
57 /// Remember our orb.
58 CORBA::ORB_var orb_;
60 bool shutdown_server_;
63 #endif /* NESTEA_CLIENT_I_H */