1 #include "tao/Compression/bzip2/Bzip2Compressor_Factory.h"
2 #include "tao/Compression/bzip2/Bzip2Compressor.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 Bzip2_CompressorFactory::Bzip2_CompressorFactory () :
9 ::TAO::CompressorFactory (::Compression::COMPRESSORID_BZIP2
),
10 compressor_ (::Compression::Compressor::_nil ())
14 ::Compression::Compressor_ptr
15 Bzip2_CompressorFactory::get_compressor (
16 ::Compression::CompressionLevel compression_level
)
18 // @todo, make a array based on compression level
19 if (CORBA::is_nil (compressor_
.in ()))
21 compressor_
= new Bzip2Compressor (this, compression_level
);
24 return ::Compression::Compressor::_duplicate (compressor_
.in ());
28 TAO_END_VERSIONED_NAMESPACE_DECL