Changes to attempt to silence bcc64x
[ACE_TAO.git] / TAO / orbsvcs / tests / Trading / Offer_Importer.h
blob4ed8ff13c35be0d4b52f963cb5ebad56b42ed0be
1 // ========================================================================
2 //
3 // = FILE
4 // Offer_Importer.h
5 //
6 // = DESCRIPTION
7 // Class that tests the Trading Service's Lookup Interface
8 //
9 // = AUTHOR
10 // Seth Widoff <sbw1@cs.wustl.edu>
12 // =======================================================================
14 #ifndef TAO_OFFER_IMPORTER
15 #define TAO_OFFER_IMPORTER
17 #include "TT_Info.h"
18 #include "ace/Task_T.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
21 # 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
29 public:
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.
40 private:
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 */