00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file CodecFactory.h 00006 * 00007 * $Id: CodecFactory.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * @author Carlos O'Ryan <coryan@uci.edu> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_CODECFACTORY_H 00015 #define TAO_CODECFACTORY_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/CodecFactory/codecfactory_export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #define TAO_CODECFACTORY_SAFE_INCLUDE 00026 #include "tao/CodecFactory/IOP_CodecC.h" 00027 #undef TAO_CODECFACTORY_SAFE_INCLUDE 00028 00029 #include "tao/Object_Loader.h" 00030 #include "ace/Service_Config.h" 00031 00032 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00033 00034 class TAO_CodecFactory_Export TAO_CodecFactory_Loader 00035 : public TAO_Object_Loader 00036 { 00037 public: 00038 /// Creates a Codec factory and returns it. 00039 virtual CORBA::Object_ptr create_object (CORBA::ORB_ptr orb, 00040 int argc, 00041 ACE_TCHAR *argv []); 00042 00043 /// Used to force the initialization of the ORB code. 00044 static int Initializer (void); 00045 }; 00046 00047 static int 00048 TAO_Requires_CodecFactory_Initializer = TAO_CodecFactory_Loader::Initializer (); 00049 00050 ACE_STATIC_SVC_DECLARE (TAO_CodecFactory_Loader) 00051 ACE_FACTORY_DECLARE (TAO_CodecFactory, TAO_CodecFactory_Loader) 00052 00053 TAO_END_VERSIONED_NAMESPACE_DECL 00054 00055 00056 #include /**/ "ace/post.h" 00057 00058 #endif /* TAO_CODECFACTORY_H */