Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / ZIOP / ZIOP_Policy_i.h
blobfb7be623b81bffa106da7baa78fbec6aeebb0f3b
1 // -*- C -*-
3 // ===================================================================
4 /**
5 * @file ZIOP_Policy_i.h
7 * @author Johnny Willemsen - jwillemsen@remedy.nl
8 */
9 // ===================================================================
11 #ifndef TAO_ZIOP_POLICY_I_H
12 #define TAO_ZIOP_POLICY_I_H
13 #include /**/ "ace/pre.h"
14 #include "tao/ZIOP/ziop_export.h"
16 #if !defined (ACE_LACKS_PRAGMA_ONCE)
17 # pragma once
18 #endif /* ACE_LACKS_PRAGMA_ONCE */
20 #include "tao/ZIOP/ZIOP.h"
21 #include "tao/LocalObject.h"
23 #if defined(_MSC_VER)
24 # pragma warning(push)
25 # pragma warning(disable:4250)
26 #endif /* _MSC_VER */
28 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
30 namespace TAO
32 /**
33 * @class CompressorIdPolicy
35 * @brief Implementation of the ZIOP::CompressorIdPolicy
37 class CompressorIdLevelListPolicy
38 : public virtual ::ZIOP::CompressorIdLevelListPolicy
39 , public virtual ::CORBA::LocalObject
41 public:
42 CompressorIdLevelListPolicy ();
44 /// Constructor.
45 CompressorIdLevelListPolicy (const ::Compression::CompressorIdLevelList& val);
47 /// Copy constructor.
48 CompressorIdLevelListPolicy (const CompressorIdLevelListPolicy &rhs);
50 /// Returns a copy of this CompressorIdLevelListPolicy.
51 virtual CompressorIdLevelListPolicy *clone () const;
53 virtual ::Compression::CompressorIdLevelList * compressor_ids ();
55 virtual CORBA::PolicyType policy_type ();
57 virtual CORBA::Policy_ptr copy ();
59 virtual void destroy ();
61 virtual TAO_Cached_Policy_Type _tao_cached_type () const;
63 // Returns the scope at which this policy can be applied. See orbconf.h.
64 TAO_Policy_Scope _tao_scope () const;
66 /// This method writes a CDR representation of the current object.
67 CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr);
69 /// This method reads the object state from a CDR representation.
70 CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr);
72 private:
73 /// The attribute
74 ::Compression::CompressorIdLevelList value_;
77 /**
78 * @class CompressionEnablingPolicy
80 * @brief Implementation of the ZIOP::CompressionEnablingPolicy
82 class CompressionEnablingPolicy
83 : public virtual ::ZIOP::CompressionEnablingPolicy
84 , public virtual ::CORBA::LocalObject
86 public:
87 CompressionEnablingPolicy ();
89 /// Constructor.
90 CompressionEnablingPolicy (const ::CORBA::Boolean val);
92 /// Copy constructor.
93 CompressionEnablingPolicy (const CompressionEnablingPolicy &rhs);
95 /// Returns a copy of this CompressionEnablingPolicy.
96 virtual CompressionEnablingPolicy *clone () const;
98 /// = The ZIOP::BidirectionalPolicy methods
99 virtual ::CORBA::Boolean compression_enabled ();
101 virtual CORBA::PolicyType policy_type ();
103 virtual CORBA::Policy_ptr copy ();
105 virtual void destroy ();
107 virtual TAO_Cached_Policy_Type _tao_cached_type () const;
109 // Returns the scope at which this policy can be applied. See orbconf.h.
110 TAO_Policy_Scope _tao_scope () const;
112 /// This method writes a CDR representation of the current object.
113 CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr);
115 /// This method reads the object state from a CDR representation.
116 CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr);
118 private:
119 /// The attribute
120 ::CORBA::Boolean value_;
124 * @class CompressionLowValuePolicy
126 * @brief Implementation of the ZIOP::CompressionLowValuePolicy
128 class CompressionLowValuePolicy
129 : public virtual ::ZIOP::CompressionLowValuePolicy
130 , public virtual ::CORBA::LocalObject
132 public:
133 /// Constructor.
134 CompressionLowValuePolicy (const ::CORBA::ULong val);
136 /// Copy constructor.
137 CompressionLowValuePolicy (const CompressionLowValuePolicy &rhs);
139 /// Returns a copy of this CompressionLowValuePolicy.
140 virtual CompressionLowValuePolicy *clone () const;
142 /// = The ZIOP::BidirectionalPolicy methods
143 virtual ::CORBA::ULong low_value ();
145 virtual CORBA::PolicyType policy_type ();
147 virtual CORBA::Policy_ptr copy ();
149 virtual void destroy ();
151 virtual TAO_Cached_Policy_Type _tao_cached_type () const;
153 private:
154 /// The attribute
155 ::CORBA::ULong value_;
159 * @class CompressionMinRatioPolicy
161 * @brief Implementation of the ZIOP::CompressionMinRatioPolicy
163 class CompressionMinRatioPolicy
164 : public virtual ::ZIOP::CompressionMinRatioPolicy
165 , public virtual ::CORBA::LocalObject
167 public:
168 /// Constructor.
169 CompressionMinRatioPolicy (const ::Compression::CompressionRatio val);
171 /// Copy constructor.
172 CompressionMinRatioPolicy (const CompressionMinRatioPolicy &rhs);
174 /// Returns a copy of this CompressionMinRatioPolicy.
175 virtual CompressionMinRatioPolicy *clone () const;
177 virtual ::Compression::CompressionRatio ratio ();
179 virtual CORBA::PolicyType policy_type ();
181 virtual CORBA::Policy_ptr copy ();
183 virtual void destroy ();
185 virtual TAO_Cached_Policy_Type _tao_cached_type () const;
187 private:
188 /// The attribute
189 ::Compression::CompressionRatio value_;
193 TAO_END_VERSIONED_NAMESPACE_DECL
195 #if defined(_MSC_VER)
196 # pragma warning(pop)
197 #endif /* _MSC_VER */
199 #include /**/ "ace/post.h"
200 #endif /* TAO_BIDIR_POLICY_I_H */