00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file ORT_Adapter_Factory_Impl.h 00006 * 00007 * $Id: ORT_Adapter_Factory_Impl.h 79958 2007-11-09 09:04:45Z johnnyw $ 00008 * 00009 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 #ifndef TAO_ORT_ADAPTER_FACTORY_IMPL_H 00014 #define TAO_ORT_ADAPTER_FACTORY_IMPL_H 00015 00016 #include /**/ "ace/pre.h" 00017 00018 #include "ace/Service_Config.h" 00019 00020 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00021 # pragma once 00022 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00023 00024 #include "tao/ObjRefTemplate/ort_export.h" 00025 #include "tao/PortableServer/ORT_Adapter_Factory.h" 00026 #include "tao/Versioned_Namespace.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 namespace TAO 00031 { 00032 /** 00033 * @class ORT_Adapter_Factory_Impl 00034 * 00035 * @brief ORT_Adapter_Factory_Impl 00036 * 00037 * Class that creates instances of TAO::ORT_Adapter 00038 * (one per POA). This is the derived class that contains the actual 00039 * implementation. 00040 */ 00041 class TAO_ORT_Export ORT_Adapter_Factory_Impl 00042 : public ORT_Adapter_Factory 00043 { 00044 public: 00045 /// Create an adapter 00046 virtual TAO::ORT_Adapter * create (); 00047 00048 /// Destroy an adapter that is created by this factory 00049 virtual void destroy (TAO::ORT_Adapter * adapter); 00050 00051 // Used to force the initialization of the code. 00052 static int Initializer (void); 00053 }; 00054 } 00055 00056 static int TAO_Requires_ORTFactory_Initializer = 00057 TAO::ORT_Adapter_Factory_Impl::Initializer (); 00058 00059 TAO_END_VERSIONED_NAMESPACE_DECL 00060 00061 ACE_STATIC_SVC_DECLARE (ORT_Adapter_Factory_Impl) 00062 ACE_FACTORY_DECLARE (TAO_ORT, ORT_Adapter_Factory_Impl) 00063 00064 #define TAO_OBJREF_TEMPLATE_SAFE_INCLUDE 00065 #include "tao/ObjRefTemplate/ObjectReferenceTemplateC.h" 00066 #undef TAO_OBJREF_TEMPLATE_SAFE_INCLUDE 00067 #include /**/ "ace/post.h" 00068 00069 #endif /* TAO_ORT_ADAPTER_FACTORY_IMPL_H */