00001 // -*- C++ -*- 00002 00003 00004 //============================================================================= 00005 /** 00006 * @file PolicyFactory_Loader.h 00007 * 00008 * $Id: PolicyFactory_Loader.h 84281 2009-01-30 15:01:17Z wotte $ 00009 * 00010 * @author Johnny Willemsen <jwillemsen@remedy.nl> 00011 */ 00012 //============================================================================= 00013 00014 00015 #ifndef TAO_POLICYFACTORY_LOADER_H 00016 #define TAO_POLICYFACTORY_LOADER_H 00017 00018 #include /**/ "ace/pre.h" 00019 00020 #include "tao/PI/pi_export.h" 00021 00022 #if !defined (ACE_LACKS_PRAGMA_ONCE) 00023 # pragma once 00024 #endif /* ACE_LACKS_PRAGMA_ONCE */ 00025 00026 #include "tao/PolicyFactory_Registry_Factory.h" 00027 #include "ace/Service_Config.h" 00028 00029 TAO_BEGIN_VERSIONED_NAMESPACE_DECL 00030 00031 class TAO_PI_Export TAO_PolicyFactory_Loader 00032 : public TAO_PolicyFactory_Registry_Factory 00033 { 00034 public: 00035 /// Creates a Codec factory and returns it. 00036 virtual TAO::PolicyFactory_Registry_Adapter* create (void); 00037 00038 /// Used to force the initialization of the ORB code. 00039 static int Initializer (void); 00040 }; 00041 00042 static int 00043 TAO_Requires_PolicyFactory_Initializer = TAO_PolicyFactory_Loader::Initializer (); 00044 00045 00046 ACE_STATIC_SVC_DECLARE (TAO_PolicyFactory_Loader) 00047 ACE_FACTORY_DECLARE (TAO_PI, TAO_PolicyFactory_Loader) 00048 00049 TAO_END_VERSIONED_NAMESPACE_DECL 00050 00051 #include /**/ "ace/post.h" 00052 00053 #endif /* TAO_POLICYFACTORY_LOADER_H */