00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Compression.h 00006 * 00007 * $Id: Compression.h 82351 2008-07-22 08:15:32Z johnnyw $ 00008 * 00009 * Dynamic loader object for Compression 00010 * 00011 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00012 */ 00013 //============================================================================= 00014 00015 #ifndef TAO_COMPRESSION_GIOP_H 00016 #define TAO_COMPRESSION_GIOP_H 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/Compression/compression_export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/Versioned_Namespace.h" 00026 #include "tao/Object_Loader.h" 00027 #include "ace/Service_Config.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 /** 00032 * @class TAO_Compression_Loader 00033 * 00034 * @brief Class that loads the Compression library. 00035 */ 00036 00037 class TAO_Compression_Export TAO_Compression_Loader : public TAO_Object_Loader 00038 { 00039 public: 00040 /// Creates a Compression Manager and returns it. 00041 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb, int argc, 00042 ACE_TCHAR *argv []); 00043 00044 /// Used to force the initialization of the ORB code. 00045 static int Initializer (void); 00046 }; 00047 00048 static int 00049 TAO_Requires_Compression_Initializer = TAO_Compression_Loader::Initializer 00050 (); 00051 00052 TAO_END_VERSIONED_NAMESPACE_DECL 00053 00054 ACE_STATIC_SVC_DECLARE (TAO_Compression_Loader) 00055 ACE_FACTORY_DECLARE (TAO_Compression, TAO_Compression_Loader) 00056 00057 #define TAO_COMPRESSION_SAFE_INCLUDE 00058 #include "tao/Compression/CompressionC.h" 00059 #undef TAO_COMPRESSION_SAFE_INCLUDE 00060 00061 #include /**/ "ace/post.h" 00062 #endif /* TAO_COMPRESSION_GIOP_H */