cmpiBroker.cpp File Reference

#include <iostream>
#include "cmpisrv.h"
#include "OW_Format.hpp"
#include "OW_CIMException.hpp"
#include "OW_CIMProperty.hpp"
#include "OW_CIMObjectPath.hpp"
#include "OW_ProviderEnvironmentIFC.hpp"
#include "OW_ResultHandlers.hpp"
#include "OW_String.hpp"
#include "OW_Logger.hpp"
#include "OW_CIMOMHandleIFC.hpp"

Include dependency graph for cmpiBroker.cpp:

Go to the source code of this file.

Namespaces

namespace  OpenWBEM::WBEMFlags

Defines

#define CM_CIMOM()   (* static_cast<OpenWBEM::ProviderEnvironmentIFCRef *>(CMPI_ThreadContext::getBroker()->hdl))->getCIMOMHandle()
#define CM_LOGGER()   (* static_cast<OpenWBEM::ProviderEnvironmentIFCRef *>(CMPI_ThreadContext::getBroker()->hdl))->getLogger(COMPONENT_NAME)
#define CM_Context(ctx)   (((CMPI_Context*)ctx)->ctx)
#define CM_Instance(ci)   ((OpenWBEM::CIMInstance*)ci->hdl)
#define CM_ObjectPath(cop)   ((OpenWBEM::CIMObjectPath*)cop->hdl)
#define CM_LocalOnly(flgs)   (((flgs) & CMPI_FLAG_LocalOnly)!=0)
#define CM_ClassOrigin(flgs)   (((flgs) & CMPI_FLAG_IncludeClassOrigin)!=0)
#define CM_IncludeQualifiers(flgs)   (((flgs) & CMPI_FLAG_IncludeQualifiers) !=0)
#define CM_DeepInheritance(flgs)   (((flgs) & CMPI_FLAG_DeepInheritance)!=0)
#define DDD(X)   X

Functions

const OpenWBEM::String COMPONENT_NAME ("ow.provider.cmpi.ifc")
OpenWBEM::StringArraygetList (const char **l, OpenWBEM::StringArray &sra)
OpenWBEM::CIMClass * mbGetClass (const CMPIBroker *, const OpenWBEM::CIMObjectPath &cop)
static CMPIInstancembGetInstance (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char **properties, CMPIStatus *rc)
static CMPIObjectPathmbCreateInstance (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const CMPIInstance *ci, CMPIStatus *rc)
static CMPIStatus mbModifyInstance (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const CMPIInstance *ci, const char **)
static CMPIStatus mbDeleteInstance (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop)
static CMPIEnumerationmbExecQuery (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *query, const char *lang, CMPIStatus *rc)
static CMPIEnumerationmbEnumInstances (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char **properties, CMPIStatus *rc)
static CMPIEnumerationmbEnumInstanceNames (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, CMPIStatus *rc)
static CMPIEnumerationmbAssociators (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, const char **properties, CMPIStatus *rc)
static CMPIEnumerationmbAssociatorNames (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *assocClass, const char *resultClass, const char *role, const char *resultRole, CMPIStatus *rc)
static CMPIEnumerationmbReferences (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *resultClass, const char *role, const char **properties, CMPIStatus *rc)
static CMPIEnumerationmbReferenceNames (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *resultClass, const char *role, CMPIStatus *rc)
static CMPIData mbInvokeMethod (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *method, const CMPIArgs *in, CMPIArgs *out, CMPIStatus *rc)
static CMPIStatus mbSetProperty (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *name, const CMPIValue *val, CMPIType type)
static CMPIData mbGetProperty (const CMPIBroker *, const CMPIContext *ctx, const CMPIObjectPath *cop, const char *name, CMPIStatus *rc)

Variables

static CMPIBrokerFT broker_FT
CMPIBrokerFTCMPI_Broker_Ftab = & broker_FT


Define Documentation

 
#define CM_CIMOM  )     (* static_cast<OpenWBEM::ProviderEnvironmentIFCRef *>(CMPI_ThreadContext::getBroker()->hdl))->getCIMOMHandle()
 

Definition at line 43 of file cmpiBroker.cpp.

Referenced by mbAssociatorNames(), mbAssociators(), mbCreateInstance(), mbDeleteInstance(), mbEnumInstanceNames(), mbEnumInstances(), mbExecQuery(), mbGetClass(), mbGetInstance(), mbGetProperty(), mbModifyInstance(), mbReferenceNames(), mbReferences(), and mbSetProperty().

#define CM_ClassOrigin flgs   )     (((flgs) & CMPI_FLAG_IncludeClassOrigin)!=0)
 

Definition at line 51 of file cmpiBroker.cpp.

Referenced by mbAssociators(), mbEnumInstances(), mbGetInstance(), and mbReferences().

#define CM_Context ctx   )     (((CMPI_Context*)ctx)->ctx)
 

Definition at line 47 of file cmpiBroker.cpp.

#define CM_DeepInheritance flgs   )     (((flgs) & CMPI_FLAG_DeepInheritance)!=0)
 

Definition at line 55 of file cmpiBroker.cpp.

Referenced by mbEnumInstances().

#define CM_IncludeQualifiers flgs   )     (((flgs) & CMPI_FLAG_IncludeQualifiers) !=0)
 

Definition at line 53 of file cmpiBroker.cpp.

Referenced by mbAssociators(), mbEnumInstances(), mbGetInstance(), mbModifyInstance(), and mbReferences().

#define CM_Instance ci   )     ((OpenWBEM::CIMInstance*)ci->hdl)
 

Definition at line 48 of file cmpiBroker.cpp.

Referenced by mbCreateInstance(), and mbModifyInstance().

#define CM_LocalOnly flgs   )     (((flgs) & CMPI_FLAG_LocalOnly)!=0)
 

Definition at line 50 of file cmpiBroker.cpp.

Referenced by mbEnumInstances(), and mbGetInstance().

 
#define CM_LOGGER  )     (* static_cast<OpenWBEM::ProviderEnvironmentIFCRef *>(CMPI_ThreadContext::getBroker()->hdl))->getLogger(COMPONENT_NAME)
 

Definition at line 45 of file cmpiBroker.cpp.

Referenced by mbAssociatorNames(), mbAssociators(), mbCreateInstance(), mbDeleteInstance(), mbEncNewArray(), mbEncNewInstance(), mbEncNewObjectPath(), mbEnumInstanceNames(), mbEnumInstances(), mbExecQuery(), mbGetClass(), mbGetInstance(), mbGetProperty(), mbInvokeMethod(), mbModifyInstance(), mbReferenceNames(), mbReferences(), and mbSetProperty().

#define CM_ObjectPath cop   )     ((OpenWBEM::CIMObjectPath*)cop->hdl)
 

Definition at line 49 of file cmpiBroker.cpp.

Referenced by mbAssociatorNames(), mbAssociators(), mbCreateInstance(), mbDeleteInstance(), mbEnumInstanceNames(), mbEnumInstances(), mbExecQuery(), mbGetInstance(), mbGetProperty(), mbModifyInstance(), mbReferenceNames(), mbReferences(), and mbSetProperty().

#define DDD  )     X
 

Definition at line 58 of file cmpiBroker.cpp.


Function Documentation

const OpenWBEM::String @0::COMPONENT_NAME "ow.provider.cmpi.ifc"   )  [static]
 

OpenWBEM::StringArray* getList const char **  l,
OpenWBEM::StringArray sra
 

Definition at line 65 of file cmpiBroker.cpp.

References i.

Referenced by mbAssociators(), mbEnumInstances(), mbGetInstance(), and mbReferences().

static CMPIEnumeration* mbAssociatorNames const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  assocClass,
const char *  resultClass,
const char *  role,
const char *  resultRole,
CMPIStatus rc
[static]
 

Definition at line 457 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, and result.

static CMPIEnumeration* mbAssociators const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  assocClass,
const char *  resultClass,
const char *  role,
const char *  resultRole,
const char **  properties,
CMPIStatus rc
[static]
 

Definition at line 401 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_ClassOrigin, CM_IncludeQualifiers, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMPIInvocationFlags, CMSetStatus, cop, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, _CMPIContext::ft, _CMPIContextFT::getEntry, getList(), OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, result, _CMPIValue::uint32, and _CMPIData::value.

static CMPIObjectPath* mbCreateInstance const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const CMPIInstance ci,
CMPIStatus rc
[static]
 

Definition at line 161 of file cmpiBroker.cpp.

References CM_CIMOM, CM_Instance, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_NOT_SUPPORTED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::XMLClass::getNameSpace(), and OW_LOG_DEBUG.

static CMPIStatus mbDeleteInstance const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop
[static]
 

Definition at line 238 of file cmpiBroker.cpp.

References CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERROR, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMReturn, cop, OW_NAMESPACE::XMLClass::getNameSpace(), and OW_LOG_DEBUG.

static CMPIEnumeration* mbEnumInstanceNames const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
CMPIStatus rc
[static]
 

Definition at line 362 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::getClassName(), OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, and result.

static CMPIEnumeration* mbEnumInstances const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char **  properties,
CMPIStatus rc
[static]
 

Definition at line 314 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_ClassOrigin, CM_DeepInheritance, CM_IncludeQualifiers, CM_LocalOnly, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMPIInvocationFlags, CMSetStatus, cop, OW_NAMESPACE::WBEMFlags::E_DEEP, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_LOCAL_ONLY, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, OW_NAMESPACE::WBEMFlags::E_SHALLOW, _CMPIContext::ft, OW_NAMESPACE::getClassName(), _CMPIContextFT::getEntry, getList(), OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, result, _CMPIValue::uint32, and _CMPIData::value.

static CMPIEnumeration* mbExecQuery const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  query,
const char *  lang,
CMPIStatus rc
[static]
 

Definition at line 275 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, and result.

OpenWBEM::CIMClass* mbGetClass const CMPIBroker ,
const OpenWBEM::CIMObjectPath &  cop
 

Definition at line 83 of file cmpiBroker.cpp.

References CM_CIMOM, CM_LOGGER, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, and OW_LOG_DEBUG.

Referenced by mbEncClassPathIsA(), and mbEncNewInstance().

static CMPIInstance* mbGetInstance const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char **  properties,
CMPIStatus rc
[static]
 

Definition at line 116 of file cmpiBroker.cpp.

References CM_CIMOM, CM_ClassOrigin, CM_IncludeQualifiers, CM_LocalOnly, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMPIInvocationFlags, CMSetStatus, cop, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_LOCAL_ONLY, OW_NAMESPACE::WBEMFlags::E_NOT_LOCAL_ONLY, _CMPIContext::ft, _CMPIContextFT::getEntry, getList(), OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, _CMPIValue::uint32, and _CMPIData::value.

static CMPIData mbGetProperty const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  name,
CMPIStatus rc
[static]
 

Definition at line 664 of file cmpiBroker.cpp.

References CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_nullValue, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, type2CMPIType(), and value2CMPIData().

static CMPIData mbInvokeMethod const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  method,
const CMPIArgs in,
CMPIArgs out,
CMPIStatus rc
[static]
 

Definition at line 607 of file cmpiBroker.cpp.

References CM_LOGGER, CMPI_nullValue, CMPI_RC_ERR_NOT_SUPPORTED, CMSetStatus, cop, and OW_LOG_DEBUG.

static CMPIStatus mbModifyInstance const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const CMPIInstance ci,
const char ** 
[static]
 

Definition at line 201 of file cmpiBroker.cpp.

References CM_CIMOM, CM_IncludeQualifiers, CM_Instance, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMPIInvocationFlags, CMReturn, cop, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, _CMPIContext::ft, _CMPIContextFT::getEntry, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, _CMPIValue::uint32, and _CMPIData::value.

static CMPIEnumeration* mbReferenceNames const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  resultClass,
const char *  role,
CMPIStatus rc
[static]
 

Definition at line 561 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMSetStatus, cop, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, and result.

static CMPIEnumeration* mbReferences const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  resultClass,
const char *  role,
const char **  properties,
CMPIStatus rc
[static]
 

Definition at line 506 of file cmpiBroker.cpp.

References cia, CM_CIMOM, CM_ClassOrigin, CM_IncludeQualifiers, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMPIInvocationFlags, CMSetStatus, cop, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_EXCLUDE_QUALIFIERS, OW_NAMESPACE::WBEMFlags::E_INCLUDE_CLASS_ORIGIN, OW_NAMESPACE::WBEMFlags::E_INCLUDE_QUALIFIERS, _CMPIContext::ft, _CMPIContextFT::getEntry, getList(), OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, result, _CMPIValue::uint32, and _CMPIData::value.

static CMPIStatus mbSetProperty const CMPIBroker ,
const CMPIContext ctx,
const CMPIObjectPath cop,
const char *  name,
const CMPIValue val,
CMPIType  type
[static]
 

Definition at line 623 of file cmpiBroker.cpp.

References CM_CIMOM, CM_LOGGER, CM_ObjectPath, CMPI_RC_ERR_FAILED, CMPI_RC_ERROR_SYSTEM, CMPI_RC_OK, CMReturn, cop, OW_NAMESPACE::XMLClass::getNameSpace(), OW_LOG_DEBUG, val, and value2CIMValue().


Variable Documentation

CMPIBrokerFT broker_FT [static]
 

Initial value:

Definition at line 706 of file cmpiBroker.cpp.

CMPIBrokerFT* CMPI_Broker_Ftab = & broker_FT
 

Definition at line 730 of file cmpiBroker.cpp.


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