Class that loads the BiDir library. More...
#include <ZIOP.h>
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_policy_value (CORBA::Policy_ptr policy) const |
Get the compression low 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. |
Class that loads the BiDir library.
TAO_ZIOP_Loader::TAO_ZIOP_Loader | ( | void | ) |
Constructor.
TAO_ZIOP_Loader::~TAO_ZIOP_Loader | ( | void | ) | [virtual] |
Destructor.
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_policy_value | ( | CORBA::Policy_ptr | policy | ) | const [private] |
Get the compression low value, returns 0 when it is not set.
bool TAO_ZIOP_Loader::decompress | ( | Compression::Compressor_ptr | compressor, | |
const ::Compression::Buffer & | source, | |||
::Compression::Buffer & | target | |||
) | [private] |
bool TAO_ZIOP_Loader::decompress | ( | ACE_Data_Block ** | db, | |
TAO_Queued_Data & | qd, | |||
TAO_ORB_Core & | orb_core | |||
) | [virtual] |
Implements TAO_ZIOP_Adapter.
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_ORB_Core & | orb_core | |||
) | [virtual] |
Implements TAO_ZIOP_Adapter.
bool TAO_ZIOP_Loader::marshal_data | ( | TAO_OutputCDR & | cdr, | |
TAO_Stub & | stub | |||
) | [virtual] |
Implements TAO_ZIOP_Adapter.
const char * TAO_ZIOP_Loader::ziop_compressorid_name | ( | ::Compression::CompressorId | st | ) | [static] |
Converts compressor ID to a compressor name.
bool TAO_ZIOP_Loader::initialized_ [private] |
Set to true after init is called.