OW_ProviderIFCBaseIFC.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * Copyright (C) 2003-2004 Vintela, Inc. All rights reserved.
00003 *
00004 * Redistribution and use in source and binary forms, with or without
00005 * modification, are permitted provided that the following conditions are met:
00006 *
00007 *  - Redistributions of source code must retain the above copyright notice,
00008 *    this list of conditions and the following disclaimer.
00009 *
00010 *  - Redistributions in binary form must reproduce the above copyright notice,
00011 *    this list of conditions and the following disclaimer in the documentation
00012 *    and/or other materials provided with the distribution.
00013 *
00014 *  - Neither the name of Vintela, Inc. nor the names of its
00015 *    contributors may be used to endorse or promote products derived from this
00016 *    software without specific prior written permission.
00017 *
00018 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS ``AS IS''
00019 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
00020 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
00021 * ARE DISCLAIMED. IN NO EVENT SHALL Vintela, Inc. OR THE CONTRIBUTORS
00022 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
00023 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
00024 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
00025 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
00026 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
00027 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
00028 * POSSIBILITY OF SUCH DAMAGE.
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 } // end namespace OW_NAMESPACE
00201 

Generated on Thu Feb 9 08:48:08 2006 for openwbem by  doxygen 1.4.6