OW_NAMESPACE::CMPIInstanceProviderProxy Class Reference

#include <OW_CMPIInstanceProviderProxy.hpp>

Inheritance diagram for OW_NAMESPACE::CMPIInstanceProviderProxy:

Inheritance graph
[legend]
Collaboration diagram for OW_NAMESPACE::CMPIInstanceProviderProxy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 CMPIInstanceProviderProxy (const CMPIFTABLERef &f)
virtual ~CMPIInstanceProviderProxy ()
virtual void enumInstanceNames (const ProviderEnvironmentIFCRef &env, const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result, const CIMClass &cimClass)
 This method enumerates all instances of the class which is specified in className.
virtual void enumInstances (const ProviderEnvironmentIFCRef &env, const String &ns, const String &className, CIMInstanceResultHandlerIFC &result, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EDeepFlag deep, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, const CIMClass &requestedClass, const CIMClass &cimClass)
 This method enumerates all instances of the class which is specified in className.
virtual CIMInstance getInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &instanceName, WBEMFlags::ELocalOnlyFlag localOnly, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, WBEMFlags::EIncludeClassOriginFlag includeClassOrigin, const StringArray *propertyList, const CIMClass &cimClass)
 This method retrieves the instance specified in the object path.
virtual void deleteInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &cop)
 This method deletes the instance specified in the object path.
virtual CIMObjectPath createInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &cimInstance)
 This method creates the instance specified in the object path.
virtual void modifyInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &modifiedInstance, const CIMInstance &previousInstance, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, const StringArray *propertyList, const CIMClass &theClass)
 This method sets the instance specified in the object path.

Private Attributes

CMPIFTABLERef m_ftable

Detailed Description

Definition at line 42 of file OW_CMPIInstanceProviderProxy.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::CMPIInstanceProviderProxy::CMPIInstanceProviderProxy const CMPIFTABLERef f  )  [inline]
 

Definition at line 45 of file OW_CMPIInstanceProviderProxy.hpp.

OW_NAMESPACE::CMPIInstanceProviderProxy::~CMPIInstanceProviderProxy  )  [virtual]
 

Definition at line 59 of file OW_CMPIInstanceProviderProxy.cpp.


Member Function Documentation

CIMObjectPath OW_NAMESPACE::CMPIInstanceProviderProxy::createInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance cimInstance
[virtual]
 

This method creates the instance specified in the object path.

If the instance does exist an CIMException with ID CIM_ERR_ALREADY_EXISTS must be thrown. The parameter should be the instance name.

Parameters:
cop The path to the instance to be set. The import part in this parameter is the namespace component.
cimInstance The instance to be set
Returns:
A CIM ObjectPath of the instance that was created.
Exceptions:
CIMException 

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 302 of file OW_CMPIInstanceProviderProxy.cpp.

References CMGetCharPtr, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, cop, env, OW_NAMESPACE::CIMException::FAILED, CMPISingleValueResultHandler< T >::getValue(), m_ftable, _CMPIStatus::msg, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, and _CMPIStatus::rc.

void OW_NAMESPACE::CMPIInstanceProviderProxy::deleteInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMObjectPath cop
[virtual]
 

This method deletes the instance specified in the object path.

Parameters:
cop The instance to be deleted
Exceptions:
CIMException 

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 261 of file OW_CMPIInstanceProviderProxy.cpp.

References CMGetCharPtr, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, cop, env, OW_NAMESPACE::CIMException::FAILED, m_ftable, _CMPIStatus::msg, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, _CMPIStatus::rc, and OW_NAMESPACE::CIMObjectPath::setNameSpace().

void OW_NAMESPACE::CMPIInstanceProviderProxy::enumInstanceNames const ProviderEnvironmentIFCRef env,
const String ns,
const String className,
CIMObjectPathResultHandlerIFC result,
const CIMClass cimClass
[virtual]
 

This method enumerates all instances of the class which is specified in className.

The entire instances and not just the names are returned.

Parameters:
cop The object path specifies the class that must be enumerated.
cimClass The class reference.
localOnly If true, only the non-inherited properties are to be returned, otherwise all properties are required.
Returns:
An array of CIMInstance containing names of the enumerated instances.
Exceptions:
CIMException - thrown if cop is incorrect or does not exist.

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 65 of file OW_CMPIInstanceProviderProxy.cpp.

References className, CMGetCharPtr, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, cop, env, OW_NAMESPACE::CIMException::FAILED, m_ftable, _CMPIStatus::msg, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, _CMPIStatus::rc, and result.

void OW_NAMESPACE::CMPIInstanceProviderProxy::enumInstances const ProviderEnvironmentIFCRef env,
const String ns,
const String className,
CIMInstanceResultHandlerIFC result,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EDeepFlag  deep,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
const CIMClass requestedClass,
const CIMClass cimClass
[virtual]
 

This method enumerates all instances of the class which is specified in className.

The entire instances and not just the names are returned.

Parameters:
cop The object path specifies the class that must be enumerated.
cimClass The class reference.
localOnly If true, only the non-inherited properties are to be returned, otherwise all properties are required.
Exceptions:
CIMException - thrown if cop is incorrect or does not exist.

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 110 of file OW_CMPIInstanceProviderProxy.cpp.

References className, CMGetCharPtr, CMPI_FLAG_IncludeClassOrigin, CMPI_FLAG_IncludeQualifiers, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, cop, env, i, m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, propertyList, result, and OW_NAMESPACE::Array< T >::size().

CIMInstance OW_NAMESPACE::CMPIInstanceProviderProxy::getInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMObjectPath instanceName,
WBEMFlags::ELocalOnlyFlag  localOnly,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
WBEMFlags::EIncludeClassOriginFlag  includeClassOrigin,
const StringArray propertyList,
const CIMClass cimClass
[virtual]
 

This method retrieves the instance specified in the object path.

Parameters:
cop The name of the instance to be retrieved.
cimClass The class to which the instance belongs. This is useful for providers which do not want to create instances from scratch. They can call the class newInstance() routine to create a template for the new instance.
localOnly If true, only the non-inherited properties are to be returned, otherwise all properties are required.
Returns:
The retrieved instance
Exceptions:
CIMException - thrown if cop is incorrect or does not exist

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 182 of file OW_CMPIInstanceProviderProxy.cpp.

References CMGetCharPtr, CMPI_FLAG_IncludeClassOrigin, CMPI_FLAG_IncludeQualifiers, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, env, i, m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, propertyList, OW_NAMESPACE::CIMObjectPath::setNameSpace(), and OW_NAMESPACE::Array< T >::size().

void OW_NAMESPACE::CMPIInstanceProviderProxy::modifyInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance modifiedInstance,
const CIMInstance previousInstance,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
const StringArray propertyList,
const CIMClass theClass
[virtual]
 

This method sets the instance specified in the object path.

If the instance does not exist an CIMException with ID CIM_ERR_NOT_FOUND must be thrown. The parameter should be the instance name.

Parameters:
cop The path of the instance to be set. The important part in this parameter is the namespace component.
cimInstance The instance to be set.
Exceptions:
CIMException 

Implements OW_NAMESPACE::InstanceProviderIFC.

Definition at line 349 of file OW_CMPIInstanceProviderProxy.cpp.

References CMGetCharPtr, CMPI_RC_OK, CMPI_uint32, CMPIInvocationFlags, OW_NAMESPACE::COMPONENT_NAME, context, env, i, m_ftable, _CMPIStatus::msg, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, and _CMPIStatus::rc.


Member Data Documentation

CMPIFTABLERef OW_NAMESPACE::CMPIInstanceProviderProxy::m_ftable [private]
 

Definition at line 163 of file OW_CMPIInstanceProviderProxy.hpp.

Referenced by createInstance(), deleteInstance(), enumInstanceNames(), enumInstances(), getInstance(), and modifyInstance().


The documentation for this class was generated from the following files:
Generated on Thu Feb 9 09:15:41 2006 for openwbem by  doxygen 1.4.6