summaryrefslogtreecommitdiff
path: root/trunk/TAO/examples/Persistent_Grid/Persistent_Client.h
diff options
context:
space:
mode:
Diffstat (limited to 'trunk/TAO/examples/Persistent_Grid/Persistent_Client.h')
-rw-r--r--trunk/TAO/examples/Persistent_Grid/Persistent_Client.h62
1 files changed, 62 insertions, 0 deletions
diff --git a/trunk/TAO/examples/Persistent_Grid/Persistent_Client.h b/trunk/TAO/examples/Persistent_Grid/Persistent_Client.h
new file mode 100644
index 00000000000..a17c4c38d49
--- /dev/null
+++ b/trunk/TAO/examples/Persistent_Grid/Persistent_Client.h
@@ -0,0 +1,62 @@
+// -*- C++ -*-
+// $Id$
+
+// ============================================================================
+//
+// = LIBRARY
+// TAO/examples/Persistent_Client
+//
+// = FILENAME
+// Persistent_Client_i.h
+//
+// = DESCRIPTION
+// This class implements the interface calls for RMI.
+//
+// = AUTHOR
+// Balachandran Natarajan <bala@cs.wustl.edu>
+//
+// ============================================================================
+
+#ifndef PERSISTENT_CLIENT_I_H
+#define PERSISTENT_CLIENT_I_H
+
+#include "Simple_util.h"
+#include "GridC.h"
+
+class Persistent_Client_i
+{
+ // = TITLE
+ // Grid_Client interface subclass.
+ //
+ // = DESCRIPTION
+ // This class implements the interface between the interface
+ // objects and the client .
+public:
+ // = Initialization and termination methods.
+ Persistent_Client_i (void);
+ // Constructor
+
+ virtual ~Persistent_Client_i (void);
+ // Destructor
+
+ virtual int run (const char *, int, char *[]);
+ // Execute the methods.
+
+ virtual int parse_args (int argc, char *argv[]);
+ // Parses the command line arguments.
+
+private:
+ Client<Grid_Factory, Grid_Factory_var> client;
+ // Instantiate the client object.
+
+ CORBA::Short height_;
+ // Height of the grid
+
+ CORBA::Short width_;
+ // Width of the grid.
+
+ CORBA::Short remove_;
+ // Flag for the deletion of memory
+};
+
+#endif /* PERSISTENT_CLIENT_I_H */