OW_NAMESPACE::CIM_NamespaceInstProv Class Reference

Inheritance diagram for OW_NAMESPACE::CIM_NamespaceInstProv:

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

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual ~CIM_NamespaceInstProv ()
virtual void getInstanceProviderInfo (InstanceProviderInfo &info)
 A provider should override this method to report which classes in which namespaces it instruments.
virtual void doSimpleEnumInstances (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMClass &cimClass, CIMInstanceResultHandlerIFC &result, EPropertiesFlag propertiesFlag)
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, 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.

Detailed Description

Definition at line 101 of file OW_provinstCIM_Namespace.cpp.


Constructor & Destructor Documentation

virtual OW_NAMESPACE::CIM_NamespaceInstProv::~CIM_NamespaceInstProv  )  [inline, virtual]
 

Definition at line 105 of file OW_provinstCIM_Namespace.cpp.


Member Function Documentation

virtual CIMObjectPath OW_NAMESPACE::CIM_NamespaceInstProv::createInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance cimInstance
[inline, 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 153 of file OW_provinstCIM_Namespace.cpp.

References OW_NAMESPACE::COMPONENT_NAME, OW_NAMESPACE::CIMRepository2::createNameSpace(), env, OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMInstance::getPropertyT(), OW_NAMESPACE::CIMProperty::getValueT(), OW_NAMESPACE::CIMException::INVALID_PARAMETER, name, ns, OW_LOG_DEBUG, OW_THROWCIM_SUBEX, OW_THROWCIMMSG, rep, and OW_NAMESPACE::CIMValue::toString().

virtual void OW_NAMESPACE::CIM_NamespaceInstProv::deleteInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMObjectPath cop
[inline, 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 194 of file OW_provinstCIM_Namespace.cpp.

References OW_NAMESPACE::COMPONENT_NAME, cop, OW_NAMESPACE::CIMRepository2::deleteNameSpace(), OW_NAMESPACE::WBEMFlags::E_SHALLOW, OW_NAMESPACE::CIMRepository2::enumClassNames(), env, OW_NAMESPACE::CIMException::FAILED, OW_NAMESPACE::CIMObjectPath::getKeyT(), OW_NAMESPACE::CIMProperty::getValueT(), handler, name, OW_LOG_DEBUG, OW_THROWCIM_SUBEX, OW_THROWCIMMSG, rep, and OW_NAMESPACE::CIMValue::toString().

virtual void OW_NAMESPACE::CIM_NamespaceInstProv::doSimpleEnumInstances const ProviderEnvironmentIFCRef env,
const String ns,
const CIMClass cimClass,
CIMInstanceResultHandlerIFC result,
EPropertiesFlag  propertiesFlag
[inline, virtual]
 

Definition at line 115 of file OW_provinstCIM_Namespace.cpp.

References OW_NAMESPACE::COMPONENT_NAME, env, hdl, ns, OW_NAMESPACE::Enumeration< T >::numberOfElements(), and OW_LOG_DEBUG.

virtual void OW_NAMESPACE::CIM_NamespaceInstProv::getInstanceProviderInfo InstanceProviderInfo info  )  [inline, virtual]
 

A provider should override this method to report which classes in which namespaces it instruments.

It should insert an entry for each class it is responsible for. The entry consists of the class name and an optional list of namespaces. If the namespace list is empty, all namespaces are implied. If the method does nothing, then the provider's class must have a provider qualifier that identifies the provider. This old behavior is deprecated and will be removed sometime in the future. This method has a default implementation that does nothing, to allow old providers to be migrated forward with little or no change, but once the old provider location method is removed, this member function will be pure virtual.

Reimplemented from OW_NAMESPACE::CppInstanceProviderIFC.

Definition at line 109 of file OW_provinstCIM_Namespace.cpp.

References OW_NAMESPACE::ProviderInfoBase< ClassInfoT >::addInstrumentedClass().

virtual void OW_NAMESPACE::CIM_NamespaceInstProv::modifyInstance const ProviderEnvironmentIFCRef env,
const String ns,
const CIMInstance modifiedInstance,
const CIMInstance previousInstance,
EIncludeQualifiersFlag  includeQualifiers,
const StringArray propertyList,
const CIMClass theClass
[inline, 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 180 of file OW_provinstCIM_Namespace.cpp.


The documentation for this class was generated from the following file:
Generated on Thu Feb 9 09:16:22 2006 for openwbem by  doxygen 1.4.6