00001 // -*- C -*- 00002 00003 // =================================================================== 00004 /** 00005 * @file ZIOP_Policy_i.h 00006 * 00007 * $Id: ZIOP_Policy_i.h 84457 2009-02-13 14:52:13Z msmit $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 // =================================================================== 00012 00013 #ifndef TAO_ZIOP_POLICY_I_H 00014 #define TAO_ZIOP_POLICY_I_H 00015 #include /**/ "ace/pre.h" 00016 #include "tao/ZIOP/ziop_export.h" 00017 00018 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00019 # pragma once 00020 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00021 00022 #include "tao/ZIOP/ZIOP.h" 00023 #include "tao/LocalObject.h" 00024 00025 #if defined(_MSC_VER) 00026 # pragma warning(push) 00027 # pragma warning(disable:4250) 00028 #endif /* _MSC_VER */ 00029 00030 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00031 00032 namespace TAO 00033 { 00034 /** 00035 * @class CompressorIdPolicy 00036 * 00037 * @brief Implementation of the ZIOP::CompressorIdPolicy 00038 */ 00039 class CompressorIdLevelListPolicy 00040 : public virtual ::ZIOP::CompressorIdLevelListPolicy 00041 , public virtual ::CORBA::LocalObject 00042 { 00043 public: 00044 CompressorIdLevelListPolicy (void); 00045 00046 /// Constructor. 00047 CompressorIdLevelListPolicy (const ::Compression::CompressorIdLevelList& val); 00048 00049 /// Copy constructor. 00050 CompressorIdLevelListPolicy (const CompressorIdLevelListPolicy &rhs); 00051 00052 /// Returns a copy of <this>. 00053 virtual CompressorIdLevelListPolicy *clone (void) const; 00054 00055 virtual ::Compression::CompressorIdLevelList * compressor_ids (); 00056 00057 virtual CORBA::PolicyType policy_type (void); 00058 00059 virtual CORBA::Policy_ptr copy (void); 00060 00061 virtual void destroy (void); 00062 00063 virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; 00064 00065 // Returns the scope at which this policy can be applied. See orbconf.h. 00066 TAO_Policy_Scope _tao_scope (void) const; 00067 00068 /// This method writes a CDR representation of the current object. 00069 CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr); 00070 00071 /// This method reads the object state from a CDR representation. 00072 CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr); 00073 00074 private: 00075 /// The attribute 00076 ::Compression::CompressorIdLevelList value_; 00077 }; 00078 00079 /** 00080 * @class CompressionEnablingPolicy 00081 * 00082 * @brief Implementation of the ZIOP::CompressionEnablingPolicy 00083 */ 00084 class CompressionEnablingPolicy 00085 : public virtual ::ZIOP::CompressionEnablingPolicy 00086 , public virtual ::CORBA::LocalObject 00087 { 00088 public: 00089 CompressionEnablingPolicy (void); 00090 00091 /// Constructor. 00092 CompressionEnablingPolicy (const ::CORBA::Boolean val); 00093 00094 /// Copy constructor. 00095 CompressionEnablingPolicy (const CompressionEnablingPolicy &rhs); 00096 00097 /// Returns a copy of <this>. 00098 virtual CompressionEnablingPolicy *clone (void) const; 00099 00100 /// = The ZIOP::BidirectionalPolicy methods 00101 virtual ::CORBA::Boolean compression_enabled (void); 00102 00103 virtual CORBA::PolicyType policy_type (void); 00104 00105 virtual CORBA::Policy_ptr copy (void); 00106 00107 virtual void destroy (void); 00108 00109 virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; 00110 00111 // Returns the scope at which this policy can be applied. See orbconf.h. 00112 TAO_Policy_Scope _tao_scope (void) const; 00113 00114 /// This method writes a CDR representation of the current object. 00115 CORBA::Boolean _tao_encode (TAO_OutputCDR &out_cdr); 00116 00117 /// This method reads the object state from a CDR representation. 00118 CORBA::Boolean _tao_decode (TAO_InputCDR &in_cdr); 00119 00120 private: 00121 00122 /// The attribute 00123 ::CORBA::Boolean value_; 00124 }; 00125 00126 /** 00127 * @class CompressionLowValuePolicy 00128 * 00129 * @brief Implementation of the ZIOP::CompressionLowValuePolicy 00130 */ 00131 class CompressionLowValuePolicy 00132 : public virtual ::ZIOP::CompressionLowValuePolicy 00133 , public virtual ::CORBA::LocalObject 00134 { 00135 public: 00136 00137 /// Constructor. 00138 CompressionLowValuePolicy (const ::CORBA::ULong val); 00139 00140 /// Copy constructor. 00141 CompressionLowValuePolicy (const CompressionLowValuePolicy &rhs); 00142 00143 /// Returns a copy of <this>. 00144 virtual CompressionLowValuePolicy *clone (void) const; 00145 00146 /// = The ZIOP::BidirectionalPolicy methods 00147 virtual ::CORBA::ULong low_value (void); 00148 00149 virtual CORBA::PolicyType policy_type (void); 00150 00151 virtual CORBA::Policy_ptr copy (void); 00152 00153 virtual void destroy (void); 00154 00155 virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; 00156 00157 private: 00158 00159 /// The attribute 00160 ::CORBA::ULong value_; 00161 }; 00162 00163 /** 00164 * @class CompressionMinRatioPolicy 00165 * 00166 * @brief Implementation of the ZIOP::CompressionMinRatioPolicy 00167 */ 00168 class CompressionMinRatioPolicy 00169 : public virtual ::ZIOP::CompressionMinRatioPolicy 00170 , public virtual ::CORBA::LocalObject 00171 { 00172 public: 00173 00174 /// Constructor. 00175 CompressionMinRatioPolicy (const ::Compression::CompressionRatio val); 00176 00177 /// Copy constructor. 00178 CompressionMinRatioPolicy (const CompressionMinRatioPolicy &rhs); 00179 00180 /// Returns a copy of <this>. 00181 virtual CompressionMinRatioPolicy *clone (void) const; 00182 00183 virtual ::Compression::CompressionRatio ratio (void); 00184 00185 virtual CORBA::PolicyType policy_type (void); 00186 00187 virtual CORBA::Policy_ptr copy (void); 00188 00189 virtual void destroy (void); 00190 00191 virtual TAO_Cached_Policy_Type _tao_cached_type (void) const; 00192 00193 private: 00194 00195 /// The attribute 00196 ::Compression::CompressionRatio value_; 00197 }; 00198 } 00199 00200 TAO_END_VERSIONED_NAMESPACE_DECL 00201 00202 #if defined(_MSC_VER) 00203 # pragma warning(pop) 00204 #endif /* _MSC_VER */ 00205 00206 #include /**/ "ace/post.h" 00207 #endif /* TAO_BIDIR_POLICY_I_H */ 00208 00209