00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef TAO_POLICY_FACTORY_REGISTRY_ADAPTER_H
00014 #define TAO_POLICY_FACTORY_REGISTRY_ADAPTER_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "tao/TAO_Export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024 #include "tao/Basic_Types.h"
00025
00026 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
00027
00028
00029 namespace CORBA
00030 {
00031 typedef ULong PolicyType;
00032
00033 class Policy;
00034 typedef Policy *Policy_ptr;
00035
00036 class Any;
00037 }
00038
00039 namespace PortableInterceptor
00040 {
00041 class PolicyFactory;
00042 typedef PolicyFactory *PolicyFactory_ptr;
00043 }
00044
00045 namespace TAO
00046 {
00047
00048
00049
00050
00051
00052
00053
00054
00055 class TAO_Export PolicyFactory_Registry_Adapter
00056 {
00057 public:
00058 virtual ~PolicyFactory_Registry_Adapter (void);
00059
00060
00061
00062
00063 virtual void register_policy_factory (
00064 CORBA::PolicyType type,
00065 PortableInterceptor::PolicyFactory_ptr policy_factory) = 0;
00066
00067
00068
00069 virtual CORBA::Policy_ptr create_policy (CORBA::PolicyType type,
00070 const CORBA::Any &value) = 0;
00071
00072
00073
00074 virtual CORBA::Policy_ptr _create_policy (CORBA::PolicyType type) = 0;
00075
00076
00077
00078 virtual bool factory_exists (CORBA::PolicyType & type) const = 0;
00079 };
00080 }
00081
00082 TAO_END_VERSIONED_NAMESPACE_DECL
00083
00084 #include "ace/post.h"
00085
00086 #endif