bank_client_i.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 67 行
H
67 行
// -*- C++ -*-
// Bank_Client_i.h,v 1.4 2002/01/29 20:20:41 okellogg Exp
// ============================================================================
//
// = LIBRARY
// TAO/tests/Simple/bank
//
// = FILENAME
// Bank_Client_i.h
//
// = DESCRIPTION
// This class implements the interface calls for RMI.
//
// = AUTHOR
//
// Balachandran Natarajan <bala@cs.wustl.edu>
//
// ============================================================================
#ifndef BANK_CLIENT_I_H
#define BANK_CLIENT_I_H
#include "../Simple_util.h"
#include "BankC.h"
class Bank_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.
Bank_Client_i (void);
// Constructor
virtual ~Bank_Client_i (void);
// Destructor
virtual int run (const char *, int, char *[]);
// Execute the methods.
private:
Client<Bank::AccountManager, Bank::AccountManager_var> client;
// Instantiate the client object.
int check_accounts (void);
// Method that calls all the test functions
void test_for_different_name (ACE_ENV_SINGLE_ARG_DECL);
// Tests if accounts opened with different names return a different account
// reference.
void test_for_same_name (ACE_ENV_SINGLE_ARG_DECL);
// Tests if accounts opened with the same name return the same
// object reference.
void test_for_overdraft (ACE_ENV_SINGLE_ARG_DECL);
// Tests for the Overdraft Exception when the client tries to
// withdraw more money than the current balance.
};
#endif /* TIME_CLIENT_I_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?