Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / Compression / Compression_Manager.h
blobb0728f0e2d5c7b409b7c1ad299bf7f7d2b33cd06
1 // -*- C++ -*-
3 // ===================================================================
4 /**
5 * @file Compression_Manager.h
7 * @author Johnny Willemsen <jwillemsen@remedy.nl>
8 */
9 // ===================================================================
11 #ifndef TAO_COMPRESSION_MANAGER_H
12 #define TAO_COMPRESSION_MANAGER_H
14 #include /**/ "ace/pre.h"
16 #include "tao/Compression/compression_export.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
19 # pragma once
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 #include "tao/Compression/Compression.h"
23 #include "tao/LocalObject.h"
25 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
27 namespace TAO
29 class TAO_Compression_Export CompressionManager :
30 public virtual ::Compression::CompressionManager,
31 public virtual ::CORBA::LocalObject
33 public:
34 virtual ~CompressionManager ();
36 virtual void register_factory (::Compression::CompressorFactory_ptr
37 compressor_factory);
39 virtual void unregister_factory (::Compression::CompressorId
40 compressor_id);
42 virtual ::Compression::CompressorFactory_ptr get_factory
43 (::Compression::CompressorId compressor_id);
45 virtual ::Compression::Compressor_ptr get_compressor
46 (::Compression::CompressorId compressor_id,
47 ::Compression::CompressionLevel compression_level);
49 virtual ::Compression::CompressorFactorySeq *get_factories ();
51 private:
52 TAO_SYNCH_MUTEX mutex_;
53 ::Compression::CompressorFactorySeq factories_;
57 TAO_END_VERSIONED_NAMESPACE_DECL
59 #include /**/ "ace/post.h"
60 #endif /* TAO_COMPRESSION_MANAGER_H */