Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / Persistent_Grid / Grid_Client_i.h
blob615a4a50fc6a9d00a8a5d60c02b767ebc8ef4567
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Grid_Client_i.h
7 * This class implements the interface calls for RMI.
9 * @author Balachandran Natarajan <bala@cs.wustl.edu>
11 //=============================================================================
14 #ifndef GRID_CLIENT_I_H
15 #define GRID_CLIENT_I_H
17 #include "Simple_util.h"
18 #include "GridC.h"
20 /**
21 * @class Grid_Client_i
23 * @brief Grid_Client interface subclass.
25 * This class implements the interface between the interface
26 * objects and the client .
28 class Grid_Client_i
30 public:
31 /// Constructor
32 Grid_Client_i (void);
34 /// Destructor
35 virtual ~Grid_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 /// Cell identifier in which a value meeds to be stored.
54 CORBA::Short setx_;
56 /// Cell identifier in which a value meeds to be stored.
57 CORBA::Short sety_;
59 /// The value that needs to be stored in the cell.
60 CORBA::Long value_;
62 /// A flag for testing persistence
63 CORBA::Short repeat_;
66 #endif /* TIME_CLIENT_I_H */