欢迎来到虫虫下载站 | 资源下载 资源专辑 关于我们
虫虫下载站

bank.idl

这是广泛使用的通信开源项目,对于大容量,高并发的通讯要求完全能够胜任,他广泛可用于网络游戏医学图像网关的高qos要求.更详细的内容可阅读相应的材料
IDL
字号:
// -*- C++ -*-
// Bank.idl,v 1.3 1999/09/27 20:33:06 parsons Exp

module Bank
{
  // = TITLE
  // This module has two interfaces. One represents a bank Account and
  // the other is a factory to create the Account Objects.

  interface Account
    {
      // = TITLE
      // This interface represents an account with operations to check
      // balance, deposit and withdraw.

      exception Overdraft
	{
	  // = TITLE
	  // This exception is raised if the client tries to
	  // withdraw more money than the current balance.

	  string reason;
	};

      readonly attribute float balance;
      // Attribute to obtain the current <balance>.

      void deposit (in float amount);
      // Add <amount> to this account.

      void withdraw (in float amount) raises (Overdraft);
      // Withdraw <amount from this account.

      attribute string name;
      // The <name> of this account.
    };

  interface AccountManager
    {
      // = TITLE
      // This interface is a factory for the <Account> objects. It has
      // operations to create <Account>s and to delete them.

      Account open (in string name,
		    in float initial_balance);
      // Returns the <Account> associated with <name>.  If this is the
      // first time <name> has been seen, the server will create the
      // account.  Otherwise, the server will return back an object
      // reference to a previously created account.

      void close (in Account account_);
      // Close down the account and release its resources if it's the
      // last reference to the <account>.  Once this call is made it
      // is no longer valid to access the <account>.

      void shutdown ();
      // This operation shuts down the server.
    };
};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -