1 #include "TestCompressor_Factory.h"
2 #include "TestCompressor.h"
4 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
8 Test_CompressorFactory::Test_CompressorFactory () :
9 ::TAO::CompressorFactory (COMPRESSORID_FOR_TESTING
),
10 compressor_ (::Compression::Compressor::_nil ())
14 ::Compression::Compressor_ptr
15 Test_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 TestCompressor (this, compression_level
);
24 return ::Compression::Compressor::_duplicate (compressor_
.in ());
28 TAO_END_VERSIONED_NAMESPACE_DECL