00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file ZIOP_Stub_Factory.h 00006 * 00007 * $Id: ZIOP_Stub_Factory.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * Defines the a factory interface for creating Stubs. 00010 * This class creates the ZIOP stub, that is used in 00011 * the ZIOP library 00012 * 00013 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00014 */ 00015 //============================================================================= 00016 00017 #ifndef TAO_ZIOP_STUB_FACTORY_H_ 00018 #define TAO_ZIOP_STUB_FACTORY_H_ 00019 00020 #include /**/ "ace/pre.h" 00021 00022 #include "tao/orbconf.h" 00023 00024 #include "tao/ZIOP/ziop_export.h" 00025 00026 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00027 # pragma once 00028 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00029 00030 #include "tao/Stub_Factory.h" 00031 00032 #if defined (TAO_HAS_CORBA_MESSAGING) && TAO_HAS_CORBA_MESSAGING != 0 00033 00034 #include "ace/Service_Config.h" 00035 00036 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00037 00038 /** 00039 * @class TAO_ZIOP_Stub_Factory 00040 * 00041 * This class is a factory whose product is the TAO_ZIOP_Stub used by 00042 * TAO. This factory, or one of its subclasses is dynamically 00043 * plugged into the ORB_Core, and is used by the ORB_Core to create 00044 * Stub Objects. 00045 */ 00046 class TAO_ZIOP_Export TAO_ZIOP_Stub_Factory : public TAO_Stub_Factory 00047 { 00048 public: 00049 // -- Ctor/Dtor -- 00050 virtual ~TAO_ZIOP_Stub_Factory (void); 00051 00052 /// Creates a Stub Object. 00053 virtual TAO_Stub *create_stub (const char *repository_id, 00054 const TAO_MProfile &profiles, 00055 TAO_ORB_Core *orb_core); 00056 }; 00057 00058 00059 ACE_STATIC_SVC_DECLARE_EXPORT (TAO_ZIOP, TAO_ZIOP_Stub_Factory) 00060 ACE_FACTORY_DECLARE (TAO_ZIOP, TAO_ZIOP_Stub_Factory) 00061 00062 TAO_END_VERSIONED_NAMESPACE_DECL 00063 00064 #endif 00065 00066 #include /**/ "ace/post.h" 00067 #endif /* TAO_ZIOP_STUB_FACTORY_H_ */