blob: 2dde56c7f676d1a56f8d6135507b042dad4e7b94 (
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Acceptor_Filter.h
*
* $Id$
*
* @author Marina Spivak (marina@cs.wustl.edu)
* @author Carlos O'Ryan (coryan@uci.edu)
*/
//=============================================================================
#ifndef TAO_ACCEPTOR_FILTER_H
#define TAO_ACCEPTOR_FILTER_H
#include "ace/pre.h"
#include "tao/corbafwd.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/Object_KeyC.h"
#if defined(_MSC_VER)
#if (_MSC_VER >= 1200)
#pragma warning(push)
#endif /* _MSC_VER >= 1200 */
#pragma warning(disable:4250)
#endif /* _MSC_VER */
class TAO_MProfile;
class TAO_Acceptor;
/**
* @class TAO_Acceptor_Filter
*
* @brief Interface for mprofile creation strategies.
*
* Concrete Acceptor_Filter encapsulates a strategy for populating
* mprofile with profiles: it decides which endpoints are included
* into mprofile and which ones are not.
*/
class TAO_Export TAO_Acceptor_Filter
{
public:
virtual ~TAO_Acceptor_Filter (void);
/**
* Populate <mprofile> with profiles. Profiles are created for
* selected acceptors (endpoints) from the array delimited by
* <acceptors_begin> and <acceptors_end>.
*/
virtual int fill_profile (const TAO::ObjectKey &object_key,
TAO_MProfile &mprofile,
TAO_Acceptor **acceptors_begin,
TAO_Acceptor **acceptors_end,
CORBA::Short priority = TAO_INVALID_PRIORITY) = 0;
/// Encodes the endpoints in the profiles into the TAO_TAG_ENDPOINTS
/// tag component of profiles.
virtual int encode_endpoints (TAO_MProfile &mprofile) = 0;
};
#if defined (__ACE_INLINE__)
# include "Acceptor_Filter.i"
#endif /* __ACE_INLINE__ */
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#include "ace/post.h"
#endif /* TAO_ACCEPTOR_FILTER_H */
|