Advertisement
simeonvarbanov

Untitled

Oct 31st, 2012
2,746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IDL 0.56 KB | None | 0 0
  1. module bank
  2. {
  3. struct Account
  4. {
  5. long accountId;
  6. double balance;
  7. string name;
  8.  
  9. void setAccountId(in long accountId);
  10. long getAccountId(out long accountId);
  11.  
  12. void setBalance(in long balance);
  13. long getBalance(out long balance);
  14.  
  15. void setName(in string name);
  16. string getName(out string name);
  17. };
  18. typedef sequence <Account> accounts;
  19. interface Customer
  20. {
  21. boolean payIn(out double amount,out long accountId);
  22. accounts getAccounts(out string name);
  23. };
  24. interface Administrator
  25. {
  26. void createAccount(in double balance ,in string name);
  27. boolean deleteAccounts(inout long accountId);
  28. };
  29. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement