OWBI1::BI1ReadOnlyInstanceProviderIFC Class Reference

This class implements deleteInstance, createInstance, and modifyInstance. More...

#include <OWBI1_ReadOnlyInstanceProviderIFC.hpp>

Inheritance diagram for OWBI1::BI1ReadOnlyInstanceProviderIFC:

Inheritance graph
[legend]
Collaboration diagram for OWBI1::BI1ReadOnlyInstanceProviderIFC:

Collaboration graph
[legend]
List of all members.

Private Member Functions

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, const CIMPropertyList &propertyList, const CIMClass &theClass)
 This method sets the instance specified in the object path.

Detailed Description

This class implements deleteInstance, createInstance, and modifyInstance.

All throw an CIMException::FAILED. If an instance provider is read-only, it can derive from this class and it won't have to implement the mutating functions. This class can be part of a multiple-inerhitance diamond. Thus the "public virtual" inheritance.

Definition at line 51 of file OWBI1_ReadOnlyInstanceProviderIFC.hpp.


Member Function Documentation

CIMObjectPath OWBI1::BI1ReadOnlyInstanceProviderIFC::createInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance cimInstance
[private, 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 OWBI1::BI1InstanceProviderIFC.

Definition at line 54 of file OWBI1_ReadOnlyInstanceProviderIFC.cpp.

References OWBI1::CIMException::FAILED, and OWBI1_THROWCIMMSG.

void OWBI1::BI1ReadOnlyInstanceProviderIFC::deleteInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMObjectPath cop
[private, virtual]
 

This method deletes the instance specified in the object path.

Parameters:
cop The instance to be deleted
Exceptions:
CIMException 

Implements OWBI1::BI1InstanceProviderIFC.

Definition at line 48 of file OWBI1_ReadOnlyInstanceProviderIFC.cpp.

References OWBI1::CIMException::FAILED, and OWBI1_THROWCIMMSG.

void OWBI1::BI1ReadOnlyInstanceProviderIFC::modifyInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance modifiedInstance,
const CIMInstance previousInstance,
const CIMPropertyList propertyList,
const CIMClass theClass
[private, 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 OWBI1::BI1InstanceProviderIFC.

Definition at line 60 of file OWBI1_ReadOnlyInstanceProviderIFC.cpp.

References OWBI1::CIMException::FAILED, and OWBI1_THROWCIMMSG.


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