blob: 3e022341c1ee01c1f8f946e7cb7a120552a70968 (
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
56
57
58
59
|
// -*- C++ -*-
//=============================================================================
/**
* @file Locator.h
*
* $Id$
*
* @brief This class implements the ImR's INS Locator class
*
* @author Darrell Brunsch <brunsch@cs.wustl.edu>
*/
//=============================================================================
#ifndef IMR_LOCATOR_H
#define IMR_LOCATOR_H
#include "ace/pre.h"
#include "tao/IORTable/IORTable.h"
class ImplRepo_i;
#if defined (_MSC_VER)
# if (_MSC_VER >= 1200)
# pragma warning(push)
# endif /* _MSC_VER >= 1200 */
# pragma warning (disable:4250)
#endif /* _MSC_VER */
/**
* @class ImR_Locator
*
* @brief Implementation Repository INS Locator class
*
* This class provides a callback for the IORTable to call when it needs
* to dynamically receive a IOR to forward in response to an INS request.
*/
class ImR_Locator : public virtual IORTable::Locator,
public virtual TAO_Local_RefCounted_Object
{
public:
/// Constructor
ImR_Locator (ImplRepo_i *repo);
/// Locate the appropriate IOR.
char * locate (const char *object_key
TAO_ENV_ARG_DECL)
ACE_THROW_SPEC ((CORBA::SystemException, IORTable::NotFound));
private:
/// The Implementation Repository implementation
ImplRepo_i *repo_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
# pragma warning(pop)
#endif /* _MSC_VER */
#include "ace/post.h"
#endif /* IMR_LOCATOR_H */
|