Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / TAO / tao / PI / PolicyFactory_Loader.h
blob98ad244420f90b2dfaf4ecbe047ad074cf4c30d0
1 // -*- C++ -*-
4 //=============================================================================
5 /**
6 * @file PolicyFactory_Loader.h
8 * @author Johnny Willemsen <jwillemsen@remedy.nl>
9 */
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)
21 # 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
32 public:
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 ();
40 static int
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 */