summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/LifeCycle_Service/Factory_Trader.h
blob: 287f58d2e1ecf431117539565efd922612e11d8a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// $Id$
// ============================================================================
//
// = LIBRARY
//
// = FILENAME
//   Factory_Trader.cpp
//
// = DESCRIPTION
//   Factory Trader for the Generic Factory.
//
// = AUTHOR
//   Michael Kircher (mk1@cs.wustl.edu)
//
// ============================================================================

#if !defined (FACTORY_TRADER_H)
#define FACTORY_TRADER_H

#include "tao/corba.h"
#include "orbsvcs/Trader/Trader.h"
#include "orbsvcs/Trader/Service_Type_Repository.h"
#include "orbsvcs/CosLifeCycleC.h"


class Factory_Trader 
{
public:
  Factory_Trader ();
  ~Factory_Trader ();

  void add_type ();
  // Add a the Factory type to the repository
  
  void export (const char * name,
	       const char * location, 
	       const char * description,
	       const CORBA::Object_ptr object_ptr);
  // export a specific factory

  CORBA::Object_ptr query (const CORBA::String constraint);
  // query for a specific factory using a constraint

  static const char * GENERIC_FACTORY_INTERFACE_REPOSITORY_ID;
private:
  TAO_Service_Type_Repository repository_;
  TAO_Trader_Factory::TAO_TRADER *trader_ptr_;
  TAO_Trading_Components_i *trading_Components_ptr_;
  TAO_Support_Attributes_i *support_Attributes_ptr_;
};

#endif // FACTORY_TRADER_H