account_i.h
来自「这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用」· C头文件 代码 · 共 85 行
H
85 行
// -*- C++ -*-
// Account_i.h,v 1.5 2002/01/29 20:20:41 okellogg Exp
// ============================================================================
//
// = LIBRARY
// TAO/tests/Simple/Bank
//
// = FILENAME
// Account_i.h
//
// = DESCRIPTION
// This class implements the Bank IDL interface.
//
// = AUTHOR
// Vishal Kachroo <vishal@cs.wustl.edu>
//
// ============================================================================
#ifndef ACCOUNT_I_H
#define ACCOUNT_I_H
#include "BankS.h"
class Account_i : public POA_Bank::Account
{
// = TITLE
// Bank object implementation.
//
// = DESCRIPTION
// Implementation of a simple object that has two methods, one
// that return the current balance on the server and the other
// that shuts down the server.
public:
// = Initialization and termination methods.
Account_i (void);
// Constructor.
Account_i (const char *, CORBA::Float);
// Constructor.
~Account_i (void);
// Destructor.
virtual CORBA::Float balance (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Get the current balance in the account.
virtual char *name (ACE_ENV_SINGLE_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Get the name of the <Account> holder.
virtual void name (const char *name
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Set the name of the <Account> holder.
virtual void deposit (CORBA::Float
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException));
// Deposit money in the account.
virtual void withdraw (CORBA::Float
ACE_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException,
Bank::Account::Overdraft));
// Withdraw money in the account.
void orb (CORBA::ORB_ptr o);
// Set the ORB pointer.
private:
CORBA::ORB_var orb_;
// ORB pointer.
CORBA::Float balance_;
// balance for this account
CORBA::String_var name_;
// Name of the <Account> holder.
};
#endif /* ACCOUNT_I_H */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?