Merge pull request #2316 from jwillemsen/jwi-taskcommenttypo
[ACE_TAO.git] / TAO / tao / Compression / bzip2 / Bzip2Compressor_Factory.cpp
blob7f5cc30d6b1e126ce2541543d68a4a12dd975a27
1 #include "tao/Compression/bzip2/Bzip2Compressor_Factory.h"
2 #include "tao/Compression/bzip2/Bzip2Compressor.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
6 namespace TAO
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