Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Persistent_Grid / Persistent_Client.h
blob32d3c55f5c97a74a3e37aa4d5f56e855c946c882
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Persistent_Client.h
7 * This class implements the interface calls for RMI.
9 * @author Balachandran Natarajan <bala@cs.wustl.edu>
11 //=============================================================================
14 #ifndef PERSISTENT_CLIENT_I_H
15 #define PERSISTENT_CLIENT_I_H
17 #include "Simple_util.h"
18 #include "GridC.h"
20 /**
21 * @class Persistent_Client_i
23 * @brief Grid_Client interface subclass.
25 * This class implements the interface between the interface
26 * objects and the client .
28 class Persistent_Client_i
30 public:
31 /// Constructor
32 Persistent_Client_i (void);
34 /// Destructor
35 virtual ~Persistent_Client_i (void);
37 /// Execute the methods.
38 virtual int run (const char *, int, ACE_TCHAR *[]);
40 /// Parses the command line arguments.
41 virtual int parse_args (int argc, ACE_TCHAR *argv[]);
43 private:
44 /// Instantiate the client object.
45 Client<Grid_Factory, Grid_Factory_var> client;
47 /// Height of the grid
48 CORBA::Short height_;
50 /// Width of the grid.
51 CORBA::Short width_;
53 /// Flag for the deletion of memory
54 CORBA::Short remove_;
57 #endif /* PERSISTENT_CLIENT_I_H */