00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00035 #include "OW_config.h"
00036 #include "OW_ProviderIFCBaseIFC.hpp"
00037 #include "OW_NoSuchProviderException.hpp"
00038
00039 namespace OW_NAMESPACE
00040 {
00041
00043 ProviderIFCBaseIFC::ProviderIFCBaseIFC()
00044 : signature(0xABCDEFA0)
00045 {
00046 }
00048 ProviderIFCBaseIFC::~ProviderIFCBaseIFC()
00049 {
00050 }
00052 void
00053 ProviderIFCBaseIFC::init(const ProviderEnvironmentIFCRef& env,
00054 InstanceProviderInfoArray& i,
00055 SecondaryInstanceProviderInfoArray& si,
00056 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00057 AssociatorProviderInfoArray& a,
00058 #endif
00059 MethodProviderInfoArray& m,
00060 IndicationProviderInfoArray& ind)
00061 {
00062 doInit(env, i,
00063 si,
00064 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00065 a,
00066 #endif
00067 m,
00068 ind);
00069 }
00071 InstanceProviderIFCRef
00072 ProviderIFCBaseIFC::getInstanceProvider(const ProviderEnvironmentIFCRef& env,
00073 const char* provIdString)
00074 {
00075 return doGetInstanceProvider(env, provIdString);
00076 }
00078 SecondaryInstanceProviderIFCRef
00079 ProviderIFCBaseIFC::getSecondaryInstanceProvider(const ProviderEnvironmentIFCRef& env,
00080 const char* provIdString)
00081 {
00082 return doGetSecondaryInstanceProvider(env, provIdString);
00083 }
00085 MethodProviderIFCRef
00086 ProviderIFCBaseIFC::getMethodProvider(const ProviderEnvironmentIFCRef& env,
00087 const char* provIdString)
00088 {
00089 return doGetMethodProvider(env, provIdString);
00090 }
00091 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00092
00093 AssociatorProviderIFCRef
00094 ProviderIFCBaseIFC::getAssociatorProvider(const ProviderEnvironmentIFCRef& env,
00095 const char* provIdString)
00096 {
00097 return doGetAssociatorProvider(env, provIdString);
00098 }
00099 #endif
00100
00101 IndicationExportProviderIFCRefArray
00102 ProviderIFCBaseIFC::getIndicationExportProviders(
00103 const ProviderEnvironmentIFCRef& env
00104 )
00105 {
00106 return doGetIndicationExportProviders(env);
00107 }
00109 PolledProviderIFCRefArray
00110 ProviderIFCBaseIFC::getPolledProviders(const ProviderEnvironmentIFCRef& env
00111 )
00112 {
00113 return doGetPolledProviders(env);
00114 }
00116 void
00117 ProviderIFCBaseIFC::unloadProviders(const ProviderEnvironmentIFCRef& env)
00118 {
00119 doUnloadProviders(env);
00120 }
00122 IndicationProviderIFCRef
00123 ProviderIFCBaseIFC::getIndicationProvider(const ProviderEnvironmentIFCRef& env,
00124 const char* provIdString)
00125 {
00126 return doGetIndicationProvider(env, provIdString);
00127 }
00129 void ProviderIFCBaseIFC::shuttingDown(const ProviderEnvironmentIFCRef& env)
00130 {
00131 doShuttingDown(env);
00132 }
00133
00135 InstanceProviderIFCRef
00136 ProviderIFCBaseIFC::doGetInstanceProvider(const ProviderEnvironmentIFCRef& env,
00137 const char* provIdString)
00138 {
00139 OW_THROW(NoSuchProviderException, "INTERNAL ERROR! Provider IFC didn't override ProviderIFCBaseIFC::doGetInstanceProvider()");
00140 }
00142 SecondaryInstanceProviderIFCRef
00143 ProviderIFCBaseIFC::doGetSecondaryInstanceProvider(const ProviderEnvironmentIFCRef& env,
00144 const char* provIdString)
00145 {
00146 OW_THROW(NoSuchProviderException, "INTERNAL ERROR! Provider IFC didn't override ProviderIFCBaseIFC::doGetSecondaryInstanceProvider()");
00147 }
00149 MethodProviderIFCRef
00150 ProviderIFCBaseIFC::doGetMethodProvider(const ProviderEnvironmentIFCRef& env,
00151 const char* provIdString)
00152 {
00153 OW_THROW(NoSuchProviderException, "INTERNAL ERROR! Provider IFC didn't override ProviderIFCBaseIFC::doGetMethodProvider()");
00154 }
00155 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00156
00157 AssociatorProviderIFCRef
00158 ProviderIFCBaseIFC::doGetAssociatorProvider(
00159 const ProviderEnvironmentIFCRef& env,
00160 const char* provIdString)
00161 {
00162 OW_THROW(NoSuchProviderException, "INTERNAL ERROR! Provider IFC didn't override ProviderIFCBaseIFC::doGetAssociatorProvider()");
00163 }
00164 #endif
00165
00166 IndicationExportProviderIFCRefArray
00167 ProviderIFCBaseIFC::doGetIndicationExportProviders(
00168 const ProviderEnvironmentIFCRef& env
00169 )
00170 {
00171 return IndicationExportProviderIFCRefArray();
00172 }
00174 PolledProviderIFCRefArray
00175 ProviderIFCBaseIFC::doGetPolledProviders(
00176 const ProviderEnvironmentIFCRef& env
00177 )
00178 {
00179 return PolledProviderIFCRefArray();
00180 }
00182 IndicationProviderIFCRef
00183 ProviderIFCBaseIFC::doGetIndicationProvider(
00184 const ProviderEnvironmentIFCRef& env,
00185 const char* provIdString)
00186 {
00187 OW_THROW(NoSuchProviderException, "INTERNAL ERROR! Provider IFC didn't override ProviderIFCBaseIFC::doGetIndicationProvider()");
00188 }
00190 void
00191 ProviderIFCBaseIFC::doUnloadProviders(const ProviderEnvironmentIFCRef& env)
00192 {
00193 }
00194
00196 void ProviderIFCBaseIFC::doShuttingDown(const ProviderEnvironmentIFCRef& env)
00197 {
00198 }
00199
00200 }
00201