#include <OW_CppInstanceProviderIFC.hpp>
Inheritance diagram for OW_NAMESPACE::CppInstanceProviderIFC:
Public Member Functions | |
CppInstanceProviderIFC () | |
virtual | ~CppInstanceProviderIFC () |
virtual void | getInstanceProviderInfoWithEnv (const ProviderRegistrationEnvironmentIFCRef &env, InstanceProviderInfo &info) |
A provider should override this method to report which classes in which namespaces it instruments. | |
virtual void | getInstanceProviderInfo (InstanceProviderInfo &info) |
A provider should override this method to report which classes in which namespaces it instruments. | |
virtual void | enumInstanceNames (const ProviderEnvironmentIFCRef &env, const String &ns, const String &className, CIMObjectPathResultHandlerIFC &result, const CIMClass &cimClass)=0 |
This method enumerates all names of instances of the class which is specified in cop. | |
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)=0 |
This method retrieves the instance specified in the object path. | |
virtual CIMObjectPath | createInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMInstance &cimInstance)=0 |
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)=0 |
This method sets the instance specified in the object path. | |
virtual void | deleteInstance (const ProviderEnvironmentIFCRef &env, const String &ns, const CIMObjectPath &cop)=0 |
This method deletes the instance specified in the object path. | |
virtual CppInstanceProviderIFC * | getInstanceProvider () |
We do the following because gcc seems to have a problem with dynamic_cast. |
Definition at line 52 of file OW_CppInstanceProviderIFC.hpp.
|
Definition at line 131 of file OW_CppInstanceProviderIFC.cpp. |
|
Definition at line 136 of file OW_CppInstanceProviderIFC.cpp. |
|
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.
Implemented in OW_NAMESPACE::CppReadOnlyInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInstProv, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, and OW_NAMESPACE::NameSpaceProvider. Referenced by OW_NAMESPACE::ProviderAgentCIMOMHandle::createInstance(). |
|
This method deletes the instance specified in the object path.
Implemented in OW_NAMESPACE::CppReadOnlyInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInstProv, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, and OW_NAMESPACE::NameSpaceProvider. Referenced by OW_NAMESPACE::ProviderAgentCIMOMHandle::deleteInstance(). |
|
This method enumerates all names of instances of the class which is specified in cop.
Implemented in OW_NAMESPACE::CppSimpleInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, and OW_NAMESPACE::NameSpaceProvider. Referenced by OW_NAMESPACE::ProviderAgentCIMOMHandle::enumInstanceNames(), and enumInstances(). |
|
This method enumerates all instances of the class which is specified in className. The entire instances and not just the names are returned. If you don't override this method, the default implementation will be used which utilizes enumInstanceNames() and getInstance()
Reimplemented in OW_NAMESPACE::CppSimpleInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, and OW_NAMESPACE::NameSpaceProvider. Definition at line 90 of file OW_CppInstanceProviderIFC.cpp. References cimClass, className, enumInstanceNames(), env, ns, propertyList, and result. Referenced by OW_NAMESPACE::ProviderAgentCIMOMHandle::enumInstances(). |
|
This method retrieves the instance specified in the object path.
Implemented in OW_NAMESPACE::CppSimpleInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, and OW_NAMESPACE::NameSpaceProvider. Referenced by OW_NAMESPACE::_RHEnumInstances::doHandle(), and OW_NAMESPACE::ProviderAgentCIMOMHandle::getInstance(). |
|
We do the following because gcc seems to have a problem with dynamic_cast. If often fails, especially when compiling with optimizations. It will return a (supposedly) valid pointer, when it should return NULL. Reimplemented from OW_NAMESPACE::CppProviderBaseIFC. Definition at line 125 of file OW_CppInstanceProviderIFC.cpp. |
|
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 in OW_NAMESPACE::CIM_NamespaceInstProv, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, OW_NAMESPACE::OpenWBEM_ObjectManagerInstProv, OW_NAMESPACE::OpenWBEM_UnitaryComputerSystem, and OW_NAMESPACE::NameSpaceProvider. Definition at line 119 of file OW_CppInstanceProviderIFC.cpp. Referenced by getInstanceProviderInfoWithEnv(). |
|
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. Definition at line 110 of file OW_CppInstanceProviderIFC.cpp. References getInstanceProviderInfo(). |
|
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.
Implemented in OW_NAMESPACE::CppReadOnlyInstanceProviderIFC, OW_NAMESPACE::CIM_NamespaceInstProv, OW_NAMESPACE::CIM_NamespaceInManagerInstProv, OW_NAMESPACE::OpenWBEM_ConfigSettingDataInstProv, and OW_NAMESPACE::NameSpaceProvider. Referenced by OW_NAMESPACE::ProviderAgentCIMOMHandle::modifyInstance(). |