1 // ========================================================================
7 // Class that tests the Trading Service's Lookup Interface
10 // Seth Widoff <sbw1@cs.wustl.edu>
12 // =======================================================================
14 #ifndef TAO_OFFER_IMPORTER
15 #define TAO_OFFER_IMPORTER
18 #include "ace/Task_T.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "orbsvcs/Trader/Trader_Utils.h"
25 #include "ttest_export.h"
27 class TAO_TTest_Export TAO_Offer_Importer
30 TAO_Offer_Importer (CosTrading::Lookup_ptr lookup_if
,
31 CORBA::Boolean verbose
= 1);
33 void perform_queries ();
34 // Barrage the bootstrapped-to trader with queries.
36 void perform_directed_queries ();
37 // Direct a query to a trader two graph edges distant from the
38 // bootstrapped-to trader.
41 void perform_queries_with_policies (const TAO_Policy_Creator
& policy_manager
);
42 // Perform a query on the bootstrapped-to trader given the policies
43 // pass in <policy_manager>.
45 void display_results (const CosTrading::OfferSeq
& offer_seq
,
46 CosTrading::OfferIterator_ptr offer_iterator
) const;
47 // Display the results of the query to the screen.
49 CORBA::Boolean verbose_
;
50 // Output the contents of each returned offer, if true.
52 CosTrading::Lookup_ptr lookup_
;
53 // The interface on which to perform all those wonderful queries.
56 #endif /* TAO_OFFER_IMPORTER */