OW_NAMESPACE::NPIInstanceProviderProxy Class Reference

#include <OW_NPIInstanceProviderProxy.hpp>

Inheritance diagram for OW_NAMESPACE::NPIInstanceProviderProxy:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

 NPIInstanceProviderProxy (const FTABLERef &f)
virtual ~NPIInstanceProviderProxy ()
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 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.
virtual void deleteInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &cop)
 This method deletes the instance specified in the object path.

Private Attributes

FTABLERef m_ftable

Detailed Description

Definition at line 39 of file OW_NPIInstanceProviderProxy.hpp.


Constructor & Destructor Documentation

OW_NAMESPACE::NPIInstanceProviderProxy::NPIInstanceProviderProxy const FTABLERef f  )  [inline]
 

Definition at line 42 of file OW_NPIInstanceProviderProxy.hpp.

OW_NAMESPACE::NPIInstanceProviderProxy::~NPIInstanceProviderProxy  )  [virtual]
 

Definition at line 53 of file OW_NPIInstanceProviderProxy.cpp.


Member Function Documentation

CIMObjectPath OW_NAMESPACE::NPIInstanceProviderProxy::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 201 of file OW_NPIInstanceProviderProxy.cpp.

References OW_NAMESPACE::CIMNULL, OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::CIMException::FAILED, m_ftable, ns, OW_LOG_DEBUG, and OW_THROWCIMMSG.

void OW_NAMESPACE::NPIInstanceProviderProxy::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 274 of file OW_NPIInstanceProviderProxy.cpp.

References OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::CIMException::FAILED, m_ftable, ns, OW_LOG_DEBUG, and OW_THROWCIMMSG.

void OW_NAMESPACE::NPIInstanceProviderProxy::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 58 of file OW_NPIInstanceProviderProxy.cpp.

References _VectorGet(), cimClass, className, OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMClass::getName(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), i, m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, result, OW_NAMESPACE::CIMObjectPath::setClassName(), and VectorSize().

void OW_NAMESPACE::NPIInstanceProviderProxy::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 102 of file OW_NPIInstanceProviderProxy.cpp.

References _VectorGet(), cimClass, className, OW_NAMESPACE::CIMInstance::clone(), OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMClass::getName(), OW_NAMESPACE::ResultHandlerIFC< T >::handle(), i, m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, propertyList, requestedClass, result, OW_NAMESPACE::CIMInstance::setClassName(), and VectorSize().

CIMInstance OW_NAMESPACE::NPIInstanceProviderProxy::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 153 of file OW_NPIInstanceProviderProxy.cpp.

References cimClass, OW_NAMESPACE::CIMNULL, OW_NAMESPACE::CIMInstance::clone(), OW_NAMESPACE::COMPONENT_NAME, cop, env, OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMClass::getName(), m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, propertyList, and OW_NAMESPACE::CIMInstance::setClassName().

void OW_NAMESPACE::NPIInstanceProviderProxy::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 237 of file OW_NPIInstanceProviderProxy.cpp.

References OW_NAMESPACE::COMPONENT_NAME, cop, OW_NAMESPACE::CIMInstance::createModifiedInstance(), env, OW_NAMESPACE::CIMException::FAILED, m_ftable, ns, OW_LOG_DEBUG, OW_THROWCIMMSG, propertyList, and theClass.


Member Data Documentation

FTABLERef OW_NAMESPACE::NPIInstanceProviderProxy::m_ftable [private]
 

Definition at line 160 of file OW_NPIInstanceProviderProxy.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:16:06 2006 for openwbem by  doxygen 1.4.6