次のような定義済みのidlファイルがあります。
module Banking {
typedef string Transactions[5];
typedef long AccountId;
interface Account {
exception InsufficientFunds {};
readonly attribute double balance;
long lodge(in double amount);
long withdraw(in double amount) raises (InsufficientFunds);
readonly attribute Transactions transactions;
};
interface Bank {
long accountCount();
double totalMoney();
Account account(in AccountId accNr);
};
};
私はidljでコンパイルします。クライアントがサーバーと通信するために使用する BankServant を定義しました。ほぼすべてのメソッドが実装された作業プログラムがあります。account(in AccountId accNr)
私の唯一の問題は、適切な Account オブジェクトを返すメソッドを実装する方法がわからないことです。私は CORBA を知らず、友人を助けているだけなので、そのような状況に対処するためのシンプルでありながら実用的なクラス レイアウトをハックするのに役立つ、何らかの解決策/例/チュートリアルを求めたいと思います。
前もって感謝します。