blob: 5c16581ab60a18a79c11b6cd0b86407cd19ada42 (
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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
|
/* -*- C++ -*- */
//=============================================================================
/**
* @file Buffering_Constraint_Policy.h
*
* $Id$
*
* @author Irfan Pyarali (irfan@cs.wustl.edu)
*/
//=============================================================================
#ifndef TAO_BUFFERING_CONSTRAINT_POLICY_H
#define TAO_BUFFERING_CONSTRAINT_POLICY_H
#include "ace/pre.h"
#include "tao/orbconf.h"
#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */
#if (TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1)
#include "tao/TAOC.h"
#include "tao/LocalObject.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_Export TAO_Buffering_Constraint_Policy
: public TAO::BufferingConstraintPolicy,
public TAO_Local_RefCounted_Object
{
// = TITLE
// Implementation class for TAO-specific Buffering Constraint
// Policy.
//
// = DESCRIPTION
// This policy is used to control the buffering of requests by
// the ORB.
//
public:
/// Constructor.
TAO_Buffering_Constraint_Policy (const TAO::BufferingConstraint &buffering_constraint);
/// Copy constructor.
TAO_Buffering_Constraint_Policy (const TAO_Buffering_Constraint_Policy &rhs);
/// Helper method for the implementation of CORBA::ORB::create_policy.
static CORBA::Policy_ptr create (const CORBA::Any& val,
CORBA::Environment &ACE_TRY_ENV = TAO_default_environment ());
/// Returns a copy of <this>.
virtual TAO_Buffering_Constraint_Policy *clone (void) const;
// = The TAO::Buffering_Constraint_Policy methods
virtual TAO::BufferingConstraint buffering_constraint (CORBA::Environment &ACE_TRY_ENV)
ACE_THROW_SPEC (());
void get_buffering_constraint (TAO::BufferingConstraint &) const;
virtual CORBA::PolicyType policy_type (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
ACE_THROW_SPEC ((CORBA::SystemException));
virtual CORBA::Policy_ptr copy (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
ACE_THROW_SPEC ((CORBA::SystemException));
virtual void destroy (CORBA_Environment &ACE_TRY_ENV = TAO_default_environment ())
ACE_THROW_SPEC ((CORBA::SystemException));
private:
/// The attribute
TAO::BufferingConstraint buffering_constraint_;
};
#if defined(_MSC_VER) && (_MSC_VER >= 1200)
#pragma warning(pop)
#endif /* _MSC_VER */
#if defined (__ACE_INLINE__)
#include "tao/Buffering_Constraint_Policy.i"
#endif /* __ACE_INLINE__ */
#endif /* TAO_HAS_BUFFERING_CONSTRAINT_POLICY == 1 */
#include "ace/post.h"
#endif /* TAO_BUFFERING_CONSTRAINT_POLICY_H */
|