TAO_ZIOP  2.0.8
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
TAO_ZIOP_Loader Class Reference

Class that loads the ZIOP library. More...

#include <ZIOP.h>

Inheritance diagram for TAO_ZIOP_Loader:
Inheritance graph
[legend]
Collaboration diagram for TAO_ZIOP_Loader:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 TAO_ZIOP_Loader (void)
 Constructor.
virtual ~TAO_ZIOP_Loader (void)
 Destructor.
virtual bool decompress (ACE_Data_Block **db, TAO_Queued_Data &qd, TAO_ORB_Core &orb_core)
virtual bool marshal_data (TAO_OutputCDR &cdr, TAO_Stub &stub)
virtual bool marshal_data (TAO_OutputCDR &cdr, TAO_ORB_Core &orb_core)
virtual int init (int argc, ACE_TCHAR *[])
 Initialize the BiDIR loader hooks.
virtual void load_policy_validators (TAO_Policy_Validator &validator)

Static Public Member Functions

static int Initializer (void)
 Used to force the initialization of the ORB code.
static const char * ziop_compressorid_name (::Compression::CompressorId st)
 Converts compressor ID to a compressor name.

Private Member Functions

void dump_msg (const char *type, const u_char *ptr, size_t len, size_t original_data_length,::Compression::CompressorId compressor_id,::Compression::CompressionLevel compression_level)
 dump a ZIOP datablock after (de)compression
CORBA::ULong compression_low_value (CORBA::Policy_ptr policy) const
 Get the compression low value, returns 0 when it is not set.
Compression::CompressionRatio compression_minratio_value (CORBA::Policy_ptr policy) const
 Get the compression min ratio value, returns 0 when it is not set.
bool get_compressor_details (::Compression::CompressorIdLevelList *list, Compression::CompressorId &compressor_id, Compression::CompressionLevel &compression_level)
bool get_compression_details (CORBA::Policy_ptr compression_enabling_policy, CORBA::Policy_ptr compression_level_list_policy, Compression::CompressorId &compressor_id, Compression::CompressionLevel &compression_level)
bool complete_compression (Compression::Compressor_ptr compressor, TAO_OutputCDR &cdr, ACE_Message_Block &mb, char *initial_rd_ptr, CORBA::ULong low_value, Compression::CompressionRatio min_ratio, CORBA::ULong original_data_length, Compression::CompressorId compressor_id)
bool compress_data (TAO_OutputCDR &cdr, CORBA::Object_ptr compression_manager, CORBA::ULong low_value,::Compression::CompressionRatio min_ratio,::Compression::CompressorId compressor_id,::Compression::CompressionLevel compression_level)
bool compress (Compression::Compressor_ptr compressor, const ::Compression::Buffer &source,::Compression::Buffer &target)
bool decompress (Compression::Compressor_ptr compressor, const ::Compression::Buffer &source,::Compression::Buffer &target)
::Compression::CompressionRatio get_ratio (CORBA::OctetSeq &uncompressed, CORBA::OctetSeq &compressed)
bool check_min_ratio (const ::Compression::CompressionRatio &this_ratio,::Compression::CompressionRatio overall_ratio,::Compression::CompressionRatio min_ratio) const

Private Attributes

bool initialized_
 Set to true after init is called.

Detailed Description

Class that loads the ZIOP library.


Constructor & Destructor Documentation

TAO_ZIOP_Loader::TAO_ZIOP_Loader ( void  )

Constructor.

TAO_ZIOP_Loader::~TAO_ZIOP_Loader ( void  ) [virtual]

Destructor.


Member Function Documentation

bool TAO_ZIOP_Loader::check_min_ratio ( const ::Compression::CompressionRatio this_ratio,
::Compression::CompressionRatio  overall_ratio,
::Compression::CompressionRatio  min_ratio 
) const [private]
bool TAO_ZIOP_Loader::complete_compression ( Compression::Compressor_ptr  compressor,
TAO_OutputCDR cdr,
ACE_Message_Block mb,
char *  initial_rd_ptr,
CORBA::ULong  low_value,
Compression::CompressionRatio  min_ratio,
CORBA::ULong  original_data_length,
Compression::CompressorId  compressor_id 
) [private]
bool TAO_ZIOP_Loader::compress ( Compression::Compressor_ptr  compressor,
const ::Compression::Buffer source,
::Compression::Buffer target 
) [private]
bool TAO_ZIOP_Loader::compress_data ( TAO_OutputCDR cdr,
CORBA::Object_ptr  compression_manager,
CORBA::ULong  low_value,
::Compression::CompressionRatio  min_ratio,
::Compression::CompressorId  compressor_id,
::Compression::CompressionLevel  compression_level 
) [private]
CORBA::ULong TAO_ZIOP_Loader::compression_low_value ( CORBA::Policy_ptr  policy) const [private]

Get the compression low value, returns 0 when it is not set.

Compression::CompressionRatio TAO_ZIOP_Loader::compression_minratio_value ( CORBA::Policy_ptr  policy) const [private]

Get the compression min ratio value, returns 0 when it is not set.

bool TAO_ZIOP_Loader::decompress ( ACE_Data_Block **  db,
TAO_Queued_Data qd,
TAO_ORB_Core orb_core 
) [virtual]

Implements TAO_ZIOP_Adapter.

bool TAO_ZIOP_Loader::decompress ( Compression::Compressor_ptr  compressor,
const ::Compression::Buffer source,
::Compression::Buffer target 
) [private]
void TAO_ZIOP_Loader::dump_msg ( const char *  type,
const u_char *  ptr,
size_t  len,
size_t  original_data_length,
::Compression::CompressorId  compressor_id,
::Compression::CompressionLevel  compression_level 
) [private]

dump a ZIOP datablock after (de)compression

bool TAO_ZIOP_Loader::get_compression_details ( CORBA::Policy_ptr  compression_enabling_policy,
CORBA::Policy_ptr  compression_level_list_policy,
Compression::CompressorId compressor_id,
Compression::CompressionLevel compression_level 
) [private]
bool TAO_ZIOP_Loader::get_compressor_details ( ::Compression::CompressorIdLevelList list,
Compression::CompressorId compressor_id,
Compression::CompressionLevel compression_level 
) [private]
Compression::CompressionRatio TAO_ZIOP_Loader::get_ratio ( CORBA::OctetSeq uncompressed,
CORBA::OctetSeq compressed 
) [private]
int TAO_ZIOP_Loader::init ( int  argc,
ACE_TCHAR [] 
) [virtual]

Initialize the BiDIR loader hooks.

Register the BiDir ORBInitializer.

Reimplemented from ACE_Shared_Object.

int TAO_ZIOP_Loader::Initializer ( void  ) [static]

Used to force the initialization of the ORB code.

void TAO_ZIOP_Loader::load_policy_validators ( TAO_Policy_Validator validator) [virtual]

Implements TAO_ZIOP_Adapter.

bool TAO_ZIOP_Loader::marshal_data ( TAO_OutputCDR cdr,
TAO_Stub stub 
) [virtual]

Implements TAO_ZIOP_Adapter.

bool TAO_ZIOP_Loader::marshal_data ( TAO_OutputCDR cdr,
TAO_ORB_Core orb_core 
) [virtual]

Implements TAO_ZIOP_Adapter.

const char * TAO_ZIOP_Loader::ziop_compressorid_name ( ::Compression::CompressorId  st) [static]

Converts compressor ID to a compressor name.


Member Data Documentation

Set to true after init is called.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Friends Defines