blob: 91b8e9ee1632607bbc7682649848b9b1472ffa14 (
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
|
// $Id$
// =========================================================================
//
// = LIBRARY
// TAO
//
// = FILENAME
// IORManip_Filter.h
//
// = AUTHOR
// Chad Elliott <elliott_c@ociweb.com>
//
// =========================================================================
#ifndef TAO_IORMANIP_FILTER_H
#define TAO_IORMANIP_FILTER_H
#include /**/ "ace/pre.h"
#include "tao/GIOP_Message_State.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#include "tao/corbafwd.h"
#include "tao/IORManipulation/ior_manip_export.h"
#include "tao/Environment.h"
#include "ace/CORBA_macros.h"
TAO_BEGIN_VERSIONED_NAMESPACE_DECL
class TAO_Profile;
class TAO_MProfile;
namespace CORBA
{
class Object;
typedef Object *Object_ptr;
}
class TAO_IORManip_Export TAO_IORManip_Filter
{
public:
/// Constructor.
TAO_IORManip_Filter (void);
/// Destructor.
virtual ~TAO_IORManip_Filter (void);
/// Perform filtering using the profile passed in as a guide.
/// If no profile is provided, filter using the profile_matches() method.
CORBA::Object_ptr sanitize_profiles (CORBA::Object_ptr object,
TAO_Profile* profile = 0);
protected:
/// This will be the bulk of the filtering code.
virtual void filter_and_add (TAO_Profile* profile,
TAO_MProfile& profiles,
TAO_Profile* guideline = 0) = 0;
private:
/// The sanitize_profiles() methods call this to do the work.
CORBA::Object_ptr sanitize (CORBA::Object_ptr object,
TAO_Profile* profile);
};
TAO_END_VERSIONED_NAMESPACE_DECL
#include /**/ "ace/post.h"
#endif /* TAO_IORMANIP_FILTER_H */
|