00001 // -*- C++ -*- 00002 00003 //============================================================================= 00004 /** 00005 * @file Valuetype_Adapter_Factory_Impl.h 00006 * 00007 * $Id: Valuetype_Adapter_Factory_Impl.h 84281 2009-01-30 15:01:17Z wotte $ 00008 * 00009 * @author Kees van Marle <kvmarle@remedy.nl> 00010 */ 00011 //============================================================================= 00012 00013 00014 #ifndef TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H 00015 #define TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H 00016 00017 #include /**/ "ace/pre.h" 00018 00019 #include "tao/Valuetype/valuetype_export.h" 00020 00021 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00022 # pragma once 00023 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00024 00025 #include "tao/Valuetype_Adapter_Factory.h" 00026 #include "ace/Service_Config.h" 00027 00028 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00029 00030 class TAO_Valuetype_Adapter; 00031 00032 /** 00033 * @class TAO_Valuetype_Adapter_Factory_Impl 00034 * 00035 * @brief TAO_Valuetype_Adapter_Factory_Impl. 00036 * 00037 * Class that creates instances of TAO_Valuetype_Adapter (one per ORB). 00038 * This is the derived class that contains the actual implementations. 00039 */ 00040 class TAO_Valuetype_Export TAO_Valuetype_Adapter_Factory_Impl 00041 : public TAO_Valuetype_Adapter_Factory 00042 { 00043 public: 00044 virtual ~TAO_Valuetype_Adapter_Factory_Impl (void); 00045 00046 virtual TAO_Valuetype_Adapter * create (void); 00047 00048 // Used to force the initialization of the ORB code. 00049 static int Initializer (void); 00050 }; 00051 00052 static int 00053 TAO_Requires_ValueType_Initializer = 00054 TAO_Valuetype_Adapter_Factory_Impl::Initializer (); 00055 00056 00057 ACE_STATIC_SVC_DECLARE (TAO_Valuetype_Adapter_Factory_Impl) 00058 ACE_FACTORY_DECLARE (TAO_Valuetype, TAO_Valuetype_Adapter_Factory_Impl) 00059 00060 TAO_END_VERSIONED_NAMESPACE_DECL 00061 00062 #define TAO_VALUETYPE_SAFE_INCLUDE 00063 // #include "tao/ValueType/ValueTypeC.h" 00064 #undef TAO_VALUETYPE_SAFE_INCLUDE 00065 00066 #include /**/ "ace/post.h" 00067 00068 #endif /* TAO_VALUETYPE_ADAPTER_FACTORY_IMPL_H */