blob: bba04656a872b3c8cf0bf7c7faa5147f705f4ce4 (
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
53
54
55
|
// $Id$
// ============================================================================
//
// = LIBRARY
//
// = FILENAME
// Factory_Trader.cpp
//
// = DESCRIPTION
// Factory Trader for the Generic Factory.
//
// = AUTHOR
// Michael Kircher (mk1@cs.wustl.edu)
//
// ============================================================================
#ifndef 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 (int debug_level = 1);
~Factory_Trader ();
void add_type ();
// Add a the Factory type to the repository
void _cxx_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 char* 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_;
int debug_level_;
// debug level (0 = quiet, 1 = default, informative, 2+ = noisy);
};
#endif // FACTORY_TRADER_H
|