4 //=============================================================================
6 * @file PolicyFactory_Loader.h
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
10 //=============================================================================
13 #ifndef TAO_POLICYFACTORY_LOADER_H
14 #define TAO_POLICYFACTORY_LOADER_H
16 #include /**/ "ace/pre.h"
18 #include "tao/PI/pi_export.h"
20 #if !defined (ACE_LACKS_PRAGMA_ONCE)
22 #endif /* ACE_LACKS_PRAGMA_ONCE */
24 #include "tao/PolicyFactory_Registry_Factory.h"
25 #include "ace/Service_Config.h"
27 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
29 class TAO_PI_Export TAO_PolicyFactory_Loader
30 : public TAO_PolicyFactory_Registry_Factory
33 /// Creates a Codec factory and returns it.
34 virtual TAO::PolicyFactory_Registry_Adapter
* create ();
36 /// Used to force the initialization of the ORB code.
37 static int Initializer ();
41 TAO_Requires_PolicyFactory_Initializer
= TAO_PolicyFactory_Loader::Initializer ();
44 ACE_STATIC_SVC_DECLARE (TAO_PolicyFactory_Loader
)
45 ACE_FACTORY_DECLARE (TAO_PI
, TAO_PolicyFactory_Loader
)
47 TAO_END_VERSIONED_NAMESPACE_DECL
49 #include /**/ "ace/post.h"
51 #endif /* TAO_POLICYFACTORY_LOADER_H */