Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module corbaIDLGenerateFile {
- module model {
- struct User {
- unsigned long id;
- string adress;
- string email;
- string fname;
- string name;
- string login;
- string pass;
- };
- struct Product {
- unsigned long id ;
- string state;
- unsigned long finish_date;
- float price_immediate_accept;
- float price_start;
- string label;
- string desc;
- unsigned long id_category;
- unsigned long id_vendor;
- string category;
- string vendor;
- };
- struct Bid {
- unsigned long id_raiser;
- string raiser ;
- unsigned long id_product ;
- float amount;
- unsigned long date;
- };
- struct Category {
- unsigned long id ;
- unsigned long id_parent;
- string label;
- };
- };
- module service {
- typedef sequence <model::Product> SeqProducts;
- typedef sequence <model::Bid> SeqBids;
- typedef sequence <model::Category> SeqCategory;
- interface Client {
- void fireBid(in SeqBids bids, in unsigned long id_product);
- };
- interface RaiseServices {
- string createUser (in model::User user);
- void createProduit (in model::Product product);
- void bid(in model::Bid bid);
- long userLogin (in string login, in string pass);
- SeqProducts getAllProducts ();
- SeqCategory getAllCategory ();
- SeqBids getBidByProduct (in unsigned long id_product);
- void addBidListener(in Client client, in unsigned long id_product);
- void removeBidListener(in Client client, in unsigned long id_product);
- };
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement