summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h')
-rw-r--r--TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h69
1 files changed, 69 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h
new file mode 100644
index 00000000000..5a428183d36
--- /dev/null
+++ b/TAO/orbsvcs/tests/ImplRepo/nestea_client_i.h
@@ -0,0 +1,69 @@
+// -*- C++ -*-
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/orbsvcs/tests/ImplRepo
+//
+// = FILENAME
+// nestea_client_i.h
+//
+// = DESCRIPTION
+// This class implements a simple CORBA client which controls a Nestea
+// can database
+//
+// = AUTHORS
+// Darrell Brunsch <brunsch@cs.wustl.edu>
+//
+// ============================================================================
+
+#if !defined (NESTEA_CLIENT_I_H)
+#define NESTEA_CLIENT_I_H
+
+#include "tao/corba.h"
+#include "NesteaC.h"
+
+class Nestea_Client_i
+{
+ // = TITLE
+ // Nestea Bookshelf Client Implementation
+ //
+ // = DESCRIPTION
+ // Class wrapper for a client which gets the server IOR and then makes
+ // a couple of calls to the server.
+public:
+ // = Constructor and destructor.
+ Nestea_Client_i (void);
+ ~Nestea_Client_i (void);
+
+ int run ();
+ // Execute client example code.
+
+ int init (int argc, char **argv);
+ // Initialize the client communication endpoint with server.
+
+private:
+ int read_ior (char *filename);
+ // Function to read the server ior from a file.
+
+ int parse_args (void);
+ // Parses the arguments passed on the command line.
+
+ int argc_;
+ // # of arguments on the command line.
+
+ char **argv_;
+ // arguments from command line.
+
+ char *server_key_;
+ // Key of the obj ref of the server.
+
+ Nestea_Bookshelf_ptr server_;
+ // Server object ptr.
+
+ CORBA::ORB_var orb_;
+ // Remember our orb.
+};
+
+#endif /* Nestea_CLIENT_I_H */