Merge pull request #2303 from jwillemsen/jwi-803
[ACE_TAO.git] / TAO / examples / Simple / bank / Bank_Client_i.h
blob7d040afd6619f70e5c8d2929d7359e2d5d94ad90
1 // -*- C++ -*-
3 //=============================================================================
4 /**
5 * @file Bank_Client_i.h
7 * This class implements the interface calls for RMI.
9 * @author Balachandran Natarajan <bala@cs.wustl.edu>
11 //=============================================================================
14 #ifndef BANK_CLIENT_I_H
15 #define BANK_CLIENT_I_H
17 #include "../Simple_util.h"
18 #include "BankC.h"
20 /**
21 * @class Bank_Client_i
23 * @brief Grid_Client interface subclass.
25 * This class implements the interface between the interface
26 * objects and the client .
28 class Bank_Client_i
30 public:
31 /// Constructor
32 Bank_Client_i ();
34 /// Destructor
35 ~Bank_Client_i ();
37 /// Execute the methods.
38 int run (const char *, int, ACE_TCHAR *[]);
40 private:
41 /// Method that calls all the test functions
42 int check_accounts ();
44 /// Tests if accounts opened with different names return a different account
45 /// reference.
46 void test_for_different_name ();
48 /// Tests if accounts opened with the same name return the same
49 /// object reference.
50 void test_for_same_name ();
52 /// Tests for the Overdraft Exception when the client tries to
53 /// withdraw more money than the current balance.
54 void test_for_overdraft ();
56 /// Instantiate the client object.
57 Client<Bank::AccountManager> client_;
60 #endif /* TIME_CLIENT_I_H */