blob: cf3a166f8a0c353e8e7a452b263b516c48a1acd0 (
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
|
// $Id$
// ============================================================================
//
// = FILENAME
// QuoterFactoryFinder.cpp
//
// = DESCRIPTION
// Factory Finder for the Quoter example
//
// = AUTHOR
// Michael Kircher (mk1@cs.wustl.edu)
//
// ============================================================================
#include "quoterS.h"
#if !defined (QUOTER_FACTORY_FINDER_H)
#define QUOTER_FACTORY_FINDER_H
class QuoterFactoryFinder_i : public POA_Stock::QuoterFactoryFinder {
// = TILE
// A CosLifeCycle conforming Factory Finder for the Quoter
// example. It uses the Naming Service to find a fitting factory.
public:
QuoterFactoryFinder_i ();
~QuoterFactoryFinder_i ();
virtual CosLifeCycle::Factories * find_factories (
const CosLifeCycle::Key & factory_key,
CORBA::Environment &_tao_environment);
// Returns a squence of Factories if factories matching the factory_key
// were found. If no factory was found, then the NoFactory exception,
// defined in CosLifeCycle, is raised.
private:
CosNaming::NamingContext_var quoterNamingContext_var_;
// Hold a reference to the Quoter example naming context
};
#endif // QUOTER_FACTORY_FINDER_H
|