Advertisement
Guest User

Untitled

a guest
Aug 19th, 2017
209
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
IDL 1.74 KB | None | 0 0
  1. module corbaIDLGenerateFile {
  2.     module model {
  3.  
  4.         struct User {
  5.             unsigned long id;
  6.             string adress;
  7.             string email;
  8.             string fname;
  9.             string name;
  10.             string login;
  11.             string pass;
  12.         };
  13.    
  14.         struct Product {
  15.             unsigned long id ;
  16.             string state;
  17.             unsigned long finish_date;
  18.             float price_immediate_accept;
  19.             float price_start;
  20.             string label;
  21.             string desc;
  22.             unsigned long id_category;
  23.             unsigned long id_vendor;
  24.             string category;
  25.             string vendor;
  26.         };
  27.    
  28.         struct Bid {
  29.             unsigned long id_raiser;
  30.             string raiser ;
  31.             unsigned long id_product ;
  32.             float amount;
  33.             unsigned long date;
  34.         };
  35.            
  36.         struct Category {
  37.             unsigned long id ;
  38.             unsigned long id_parent;
  39.             string label;
  40.         };
  41.        
  42.     };
  43.    
  44.     module service {
  45.         typedef sequence <model::Product> SeqProducts;
  46.         typedef sequence <model::Bid> SeqBids;
  47.         typedef sequence <model::Category> SeqCategory;
  48.        
  49.         interface Client {
  50.             void fireBid(in SeqBids bids, in unsigned long id_product);
  51.         };
  52.        
  53.         interface RaiseServices {
  54.        
  55.             string createUser (in model::User user);
  56.             void createProduit (in model::Product product);
  57.             void bid(in model::Bid bid);
  58.             long userLogin (in string login, in string pass);
  59.            
  60.             SeqProducts getAllProducts ();
  61.             SeqCategory getAllCategory ();
  62.             SeqBids getBidByProduct (in unsigned long id_product);
  63.            
  64.             void addBidListener(in Client client, in unsigned long id_product);
  65.             void removeBidListener(in Client client, in unsigned long id_product);
  66.         };
  67.        
  68.     };
  69. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement