OW_CppProviderBaseIFC.cpp

Go to the documentation of this file.
00001 /*******************************************************************************
00002 * Copyright (C) 2001-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 
00036 #include "OW_config.h"
00037 #include "OW_CppProviderBaseIFC.hpp"
00038 
00039 namespace OW_NAMESPACE
00040 {
00041 
00043 CppProviderBaseIFC::CppProviderBaseIFC()
00044    : m_dt(0)
00045    , m_persist(false)
00046 {
00047 }
00048 
00050 CppProviderBaseIFC::CppProviderBaseIFC(const CppProviderBaseIFC& arg)
00051    : IntrusiveCountableBase(arg)
00052    , m_dt(arg.m_dt)
00053    , m_persist(arg.m_persist)
00054 {
00055 }
00056 
00058 CppProviderBaseIFC::~CppProviderBaseIFC()
00059 {
00060 }
00061 
00063 void CppProviderBaseIFC::updateAccessTime()
00064 {
00065    m_dt.setToCurrent();
00066 }
00067 
00069 void
00070 CppProviderBaseIFC::initialize(const ProviderEnvironmentIFCRef&) {}
00072 CppInstanceProviderIFC*
00073 CppProviderBaseIFC::getInstanceProvider()
00074 {
00075    return 0;
00076 }
00077 
00079 CppSecondaryInstanceProviderIFC*
00080 CppProviderBaseIFC::getSecondaryInstanceProvider()
00081 {
00082    return 0;
00083 }
00084 
00086 CppMethodProviderIFC*
00087 CppProviderBaseIFC::getMethodProvider()
00088 {
00089    return 0;
00090 }
00091 
00092 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00093 
00094 CppAssociatorProviderIFC*
00095 CppProviderBaseIFC::getAssociatorProvider()
00096 {
00097    return 0;
00098 }
00099 #endif
00100 
00102 CppIndicationExportProviderIFC*
00103 CppProviderBaseIFC::getIndicationExportProvider()
00104 {
00105    return 0;
00106 }
00107 
00109 CppPolledProviderIFC*
00110 CppProviderBaseIFC::getPolledProvider()
00111 {
00112    return 0;
00113 }
00114 
00116 CppIndicationProviderIFC*
00117 CppProviderBaseIFC::getIndicationProvider()
00118 {
00119    return 0;
00120 }
00121 
00123 DateTime
00124 CppProviderBaseIFC::getLastAccessTime() const
00125 {
00126    return m_dt;
00127 }
00128 
00130 bool
00131 CppProviderBaseIFC::canUnload()
00132 {
00133    return true;
00134 }
00135 
00137 bool
00138 CppProviderBaseIFC::getPersist() const
00139 {
00140    return m_persist;
00141 }
00142 
00144 void
00145 CppProviderBaseIFC::setPersist(bool persist)
00146 {
00147    m_persist = persist;
00148 }
00149 
00151 void CppProviderBaseIFC::shuttingDown(const ProviderEnvironmentIFCRef& env)
00152 {
00153 }
00154 
00155 } // end namespace OW_NAMESPACE
00156 
00157 

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