OW_NAMESPACE::CppReadOnlyInstanceProviderIFC Class Reference

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

#include <OW_CppReadOnlyInstanceProviderIFC.hpp>

Inheritance diagram for OW_NAMESPACE::CppReadOnlyInstanceProviderIFC:

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

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, WBEMFlags::EIncludeQualifiersFlag includeQualifiers, const StringArray *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 OW_CppReadOnlyInstanceProviderIFC.hpp.


Member Function Documentation

CIMObjectPath OW_NAMESPACE::CppReadOnlyInstanceProviderIFC::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 OW_NAMESPACE::CppInstanceProviderIFC.

Definition at line 54 of file OW_CppReadOnlyInstanceProviderIFC.cpp.

References OW_NAMESPACE::CIMException::FAILED, and OW_THROWCIMMSG.

void OW_NAMESPACE::CppReadOnlyInstanceProviderIFC::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 OW_NAMESPACE::CppInstanceProviderIFC.

Definition at line 48 of file OW_CppReadOnlyInstanceProviderIFC.cpp.

References OW_NAMESPACE::CIMException::FAILED, and OW_THROWCIMMSG.

void OW_NAMESPACE::CppReadOnlyInstanceProviderIFC::modifyInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance modifiedInstance,
const CIMInstance previousInstance,
WBEMFlags::EIncludeQualifiersFlag  includeQualifiers,
const StringArray 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 OW_NAMESPACE::CppInstanceProviderIFC.

Definition at line 60 of file OW_CppReadOnlyInstanceProviderIFC.cpp.

References OW_NAMESPACE::CIMException::FAILED, and OW_THROWCIMMSG.


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