1 #include "tao/Policy.pidl"
2 #include "tao/IOP.pidl"
3 #include "tao/Compression/Compression_include.pidl"
7 struct CompressionData {
8 Compression::CompressorId compressor;
9 unsigned long original_length;
10 Compression::Buffer data;
14 // ORB Policies for ZIOP
18 * Tag Id for CompressionEnablingPolicy
20 const CORBA::PolicyType COMPRESSION_ENABLING_POLICY_ID = 64;
23 * The ZIOP CompressionEnablingPolicy. Has an boolean attribute indicating
24 * if compression is enabled or not.
26 typedef boolean CompressionEnablingPolicyValue;
28 local interface CompressionEnablingPolicy : CORBA::Policy
30 readonly attribute CompressionEnablingPolicyValue compression_enabled;
34 * Tag Id for CompressorIdPolicy
36 const CORBA::PolicyType COMPRESSOR_ID_LEVEL_LIST_POLICY_ID = 65;
39 * The ZIOP CompressorIdListPolicy. Has an CompressorId attribute indicating
40 * the compression algorithm to be used.
42 local interface CompressorIdLevelListPolicy : CORBA::Policy
44 readonly attribute Compression::CompressorIdLevelList compressor_ids;
47 const CORBA::PolicyType COMPRESSION_LOW_VALUE_POLICY_ID = 66;
49 typedef unsigned long CompressionLowValuePolicyValue;
51 local interface CompressionLowValuePolicy : CORBA::Policy
53 readonly attribute CompressionLowValuePolicyValue low_value;
57 * The ZIOP CompressionMinRatioPolicy. If the compression ratio is smaller
58 * than this setting, a message is send uncompressed.
60 const CORBA::PolicyType COMPRESSION_MIN_RATIO_POLICY_ID = 67;
62 local interface CompressionMinRatioPolicy : CORBA::Policy
64 readonly attribute Compression::CompressionRatio ratio;