OW_SharedLibraryRepository.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 
00035 #include "OW_config.h"
00036 #include "OW_SharedLibraryRepository.hpp"
00037 #include "OW_CIMQualifierType.hpp"
00038 #include "OW_CIMObjectPath.hpp"
00039 #include "OW_CIMClass.hpp"
00040 #include "OW_CIMInstance.hpp"
00041 #include "OW_CIMValue.hpp"
00042 #include "OW_String.hpp"
00043 #include "OW_Array.hpp"
00044 
00045 namespace OW_NAMESPACE
00046 {
00047 
00048 using namespace WBEMFlags;
00049 SharedLibraryRepository::SharedLibraryRepository(SharedLibraryRepositoryIFCRef ref)
00050    : RepositoryIFC()
00051    , m_ref(ref) {}
00052 SharedLibraryRepository::~SharedLibraryRepository()
00053 {}
00054 void SharedLibraryRepository::close() { m_ref->close(); }
00055 String SharedLibraryRepository::getName() const { return m_ref->getName(); }
00056 StringArray SharedLibraryRepository::getDependencies() const { return m_ref->getDependencies(); }
00057 void SharedLibraryRepository::init(const ServiceEnvironmentIFCRef& env) { m_ref->init(env); }
00058 void SharedLibraryRepository::initialized() { m_ref->initialized(); }
00059 void SharedLibraryRepository::start() { m_ref->start(); }
00060 void SharedLibraryRepository::started() { m_ref->started(); }
00061 void SharedLibraryRepository::shuttingDown() { m_ref->shuttingDown(); }
00062 void SharedLibraryRepository::shutdown() { m_ref->shutdown(); }
00063 void SharedLibraryRepository::open(const String &path) { m_ref->open(path); }
00064 ServiceEnvironmentIFCRef SharedLibraryRepository::getEnvironment() const
00065 {
00066    return m_ref->getEnvironment();
00067 }
00068 #if !defined(OW_DISABLE_INSTANCE_MANIPULATION) && !defined(OW_DISABLE_NAMESPACE_MANIPULATION)
00069 void SharedLibraryRepository::createNameSpace(const String& ns,
00070    OperationContext& context)
00071 {
00072    m_ref->createNameSpace(ns, context);
00073 }
00074 void SharedLibraryRepository::deleteNameSpace(const String& ns,
00075    OperationContext& context)
00076 {
00077    m_ref->deleteNameSpace(ns, context);
00078 }
00079 #endif // #ifndef OW_DISABLE_INSTANCE_MANIPULATION
00080 void SharedLibraryRepository::enumNameSpace(StringResultHandlerIFC& result,
00081    OperationContext& context)
00082 {
00083    return m_ref->enumNameSpace(result, context);
00084 }
00085 CIMQualifierType SharedLibraryRepository::getQualifierType(
00086    const String& ns,
00087    const String& qualifierName, OperationContext& context)
00088 {
00089    return m_ref->getQualifierType(ns, qualifierName, context);
00090 }
00091 #ifndef OW_DISABLE_QUALIFIER_DECLARATION
00092 void SharedLibraryRepository::enumQualifierTypes(
00093    const String& ns,
00094    CIMQualifierTypeResultHandlerIFC& result, OperationContext& context)
00095 {
00096    return m_ref->enumQualifierTypes(ns, result, context);
00097 }
00098 void SharedLibraryRepository::deleteQualifierType(const String& ns, const String& qualName,
00099    OperationContext& context)
00100 {
00101    m_ref->deleteQualifierType(ns, qualName, context);
00102 }
00103 void SharedLibraryRepository::setQualifierType(const String& ns,
00104    const CIMQualifierType &qt, OperationContext& context)
00105 {
00106    m_ref->setQualifierType(ns, qt, context);
00107 }
00108 #endif // #ifndef OW_DISABLE_QUALIFIER_DECLARATION
00109 CIMClass SharedLibraryRepository::getClass(
00110    const String& ns,
00111    const String& className,
00112    ELocalOnlyFlag localOnly, EIncludeQualifiersFlag includeQualifiers,
00113    EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList,
00114    OperationContext& context)
00115 {
00116    return m_ref->getClass(ns, className, localOnly, includeQualifiers,
00117       includeClassOrigin, propertyList, context);
00118 }
00119 #ifndef OW_DISABLE_INSTANCE_MANIPULATION
00120 CIMObjectPath SharedLibraryRepository::createInstance(const String& ns, const CIMInstance &ci,
00121    OperationContext& context)
00122 {
00123    return m_ref->createInstance(ns, ci, context);
00124 }
00125 CIMInstance SharedLibraryRepository::modifyInstance(
00126    const String& ns,
00127    const CIMInstance& modifiedInstance,
00128    EIncludeQualifiersFlag includeQualifiers,
00129    const StringArray* propertyList,
00130    OperationContext& context)
00131 {
00132    return m_ref->modifyInstance(ns, modifiedInstance, includeQualifiers,
00133       propertyList, context);
00134 }
00135 #if !defined(OW_DISABLE_PROPERTY_OPERATIONS)
00136 void SharedLibraryRepository::setProperty(
00137    const String& ns,
00138    const CIMObjectPath &name,
00139    const String &propertyName, const CIMValue &cv,
00140    OperationContext& context)
00141 {
00142    m_ref->setProperty(ns, name, propertyName, cv, context);
00143 }
00144 #endif // #if !defined(OW_DISABLE_PROPERTY_OPERATIONS)
00145 CIMInstance SharedLibraryRepository::deleteInstance(const String& ns, const CIMObjectPath &cop,
00146    OperationContext& context)
00147 {
00148    return m_ref->deleteInstance(ns, cop, context);
00149 }
00150 #endif // #ifndef OW_DISABLE_INSTANCE_MANIPULATION
00151 void SharedLibraryRepository::enumInstances(
00152    const String& ns,
00153    const String& className,
00154    CIMInstanceResultHandlerIFC& result,
00155    EDeepFlag deep,
00156    ELocalOnlyFlag localOnly,
00157    EIncludeQualifiersFlag includeQualifiers,
00158    EIncludeClassOriginFlag includeClassOrigin,
00159    const StringArray *propertyList,
00160    EEnumSubclassesFlag enumSubclasses,
00161    OperationContext& context)
00162 {
00163    return m_ref->enumInstances(ns, className, result, deep, localOnly,includeQualifiers,
00164       includeClassOrigin, propertyList, enumSubclasses, context);
00165 }
00166 #ifndef OW_DISABLE_SCHEMA_MANIPULATION
00167 void SharedLibraryRepository::createClass(const String& ns,
00168    const CIMClass &cimClass, OperationContext& context)
00169 {
00170    m_ref->createClass(ns, cimClass, context);
00171 }
00172 CIMClass SharedLibraryRepository::modifyClass(const String &ns,
00173    const CIMClass &cc, OperationContext& context)
00174 {
00175    return m_ref->modifyClass(ns, cc, context);
00176 }
00177 CIMClass SharedLibraryRepository::deleteClass(const String& ns, const String& className,
00178    OperationContext& context)
00179 {
00180    return m_ref->deleteClass(ns, className, context);
00181 }
00182 #endif
00183 void SharedLibraryRepository::enumClasses(const String& ns,
00184    const String& className,
00185    CIMClassResultHandlerIFC& result,
00186    EDeepFlag deep, ELocalOnlyFlag localOnly, EIncludeQualifiersFlag includeQualifiers,
00187    EIncludeClassOriginFlag includeClassOrigin, OperationContext& context)
00188 {
00189    return m_ref->enumClasses(ns, className, result, deep, localOnly, includeQualifiers,
00190       includeClassOrigin, context);
00191 }
00192 void SharedLibraryRepository::enumClassNames(
00193    const String& ns,
00194    const String& className,
00195    StringResultHandlerIFC& result,
00196    EDeepFlag deep, OperationContext& context)
00197 {
00198    m_ref->enumClassNames(ns, className, result, deep, context);
00199 }
00200 CIMValue SharedLibraryRepository::invokeMethod(
00201    const String& ns,
00202    const CIMObjectPath& path,
00203    const String &methodName, const CIMParamValueArray &inParams,
00204    CIMParamValueArray &outParams, OperationContext& context)
00205 {
00206    return m_ref->invokeMethod(ns, path, methodName, inParams,
00207       outParams, context);
00208 }
00209 void SharedLibraryRepository::enumInstanceNames(
00210    const String& ns,
00211    const String& className,
00212    CIMObjectPathResultHandlerIFC& result,
00213    EDeepFlag deep, OperationContext& context)
00214 {
00215    return m_ref->enumInstanceNames(ns, className, result, deep, context);
00216 }
00217 CIMInstance SharedLibraryRepository::getInstance(
00218    const String& ns,
00219    const CIMObjectPath& instanceName,
00220    ELocalOnlyFlag localOnly, EIncludeQualifiersFlag includeQualifiers,
00221    EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList,
00222    OperationContext& context)
00223 {
00224    return m_ref->getInstance(ns, instanceName, localOnly, includeQualifiers,
00225       includeClassOrigin, propertyList, context);
00226 }
00227 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00228 void SharedLibraryRepository::references(
00229    const String& ns,
00230    const CIMObjectPath &path,
00231    CIMInstanceResultHandlerIFC& result,
00232    const String &resultClass, const String &role,
00233    EIncludeQualifiersFlag includeQualifiers, EIncludeClassOriginFlag includeClassOrigin,
00234    const StringArray *propertyList, OperationContext& context)
00235 {
00236    m_ref->references(ns, path, result, resultClass, role, includeQualifiers,
00237       includeClassOrigin, propertyList, context);
00238 }
00239 void SharedLibraryRepository::referencesClasses(
00240    const String& ns,
00241    const CIMObjectPath &path,
00242    CIMClassResultHandlerIFC& result,
00243    const String &resultClass, const String &role,
00244    EIncludeQualifiersFlag includeQualifiers, EIncludeClassOriginFlag includeClassOrigin,
00245    const StringArray *propertyList, OperationContext& context)
00246 {
00247    m_ref->referencesClasses(ns, path, result, resultClass, role, includeQualifiers,
00248       includeClassOrigin, propertyList, context);
00249 }
00250 #endif
00251 #if !defined(OW_DISABLE_PROPERTY_OPERATIONS)
00252 CIMValue SharedLibraryRepository::getProperty(
00253    const String& ns,
00254    const CIMObjectPath &name,
00255    const String &propertyName, OperationContext& context)
00256 {
00257    return m_ref->getProperty(ns, name, propertyName, context);
00258 }
00259 #endif // #if !defined(OW_DISABLE_PROPERTY_OPERATIONS)
00260 
00261 #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00262 void SharedLibraryRepository::associatorNames(
00263    const String& ns,
00264    const CIMObjectPath &path,
00265    CIMObjectPathResultHandlerIFC& result,
00266    const String &assocClass,
00267    const String &resultClass, const String &role,
00268    const String &resultRole, OperationContext& context)
00269 {
00270    m_ref->associatorNames(ns, path, result, assocClass, resultClass, role,
00271       resultRole, context);
00272 }
00273 void SharedLibraryRepository::associators(
00274    const String& ns,
00275    const CIMObjectPath &path,
00276    CIMInstanceResultHandlerIFC& result,
00277    const String &assocClass, const String &resultClass,
00278    const String &role, const String &resultRole,
00279    EIncludeQualifiersFlag includeQualifiers, EIncludeClassOriginFlag includeClassOrigin,
00280    const StringArray *propertyList, OperationContext& context)
00281 {
00282    m_ref->associators(ns, path, result, assocClass, resultClass, role,
00283       resultRole, includeQualifiers, includeClassOrigin, propertyList,
00284       context);
00285 }
00286 void SharedLibraryRepository::associatorsClasses(
00287    const String& ns,
00288    const CIMObjectPath &path,
00289    CIMClassResultHandlerIFC& result,
00290    const String &assocClass, const String &resultClass,
00291    const String &role, const String &resultRole,
00292    EIncludeQualifiersFlag includeQualifiers, EIncludeClassOriginFlag includeClassOrigin,
00293    const StringArray *propertyList, OperationContext& context)
00294 {
00295    m_ref->associatorsClasses(ns, path, result, assocClass, resultClass, role,
00296       resultRole, includeQualifiers, includeClassOrigin, propertyList,
00297       context);
00298 }
00299 void SharedLibraryRepository::referenceNames(
00300    const String& ns,
00301    const CIMObjectPath &path,
00302    CIMObjectPathResultHandlerIFC& result,
00303    const String &resultClass,
00304    const String &role, OperationContext& context)
00305 {
00306    m_ref->referenceNames(ns, path, result, resultClass, role, context);
00307 }
00308 #endif // #ifndef OW_DISABLE_ASSOCIATION_TRAVERSAL
00309 void SharedLibraryRepository::execQuery(
00310    const String& ns,
00311    CIMInstanceResultHandlerIFC& result,
00312    const String &query, const String &queryLanguage,
00313    OperationContext& context)
00314 {
00315    m_ref->execQuery(ns, result, query, queryLanguage, context);
00316 }
00317 void SharedLibraryRepository::beginOperation(WBEMFlags::EOperationFlag op, OperationContext& context)
00318 {
00319    m_ref->beginOperation(op, context);
00320 }
00321 void SharedLibraryRepository::endOperation(WBEMFlags::EOperationFlag op, OperationContext& context, WBEMFlags::EOperationResultFlag result)
00322 {
00323    m_ref->endOperation(op, context, result);
00324 }
00325 
00326 } // end namespace OW_NAMESPACE
00327 

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