version 1.5.2.3, 2004/02/03 22:48:36
|
version 1.5.2.4, 2004/02/05 16:28:45
|
|
|
String SystemCreationClassName = System::getSystemCreationClassName (); | String SystemCreationClassName = System::getSystemCreationClassName (); |
if (SystemCreationClassName == String::EMPTY) | if (SystemCreationClassName == String::EMPTY) |
{ | { |
// This in place because global is often Empty |
//Attn: Get this globally. For now This in place because global is often Empty |
SystemCreationClassName = "CIM_ComputerSystem"; | SystemCreationClassName = "CIM_ComputerSystem"; |
} | } |
| |
|
|
return(instance); | return(instance); |
} | } |
| |
|
/* build a single instance of the cimxmlcommunicationmechanism class |
CIMInstance _buildInstancCIMXMLCommunicationMechanism() |
using the parameter provided as the name property |
|
@parm name String representing the name to be used for this object. |
|
@return CIMInstance of the class |
|
*/ |
|
CIMInstance _buildInstancCIMXMLCommunicationMechanism(const String& name) |
{ | { |
PEG_METHOD_ENTER(TRC_CONTROLPROVIDER, | PEG_METHOD_ENTER(TRC_CONTROLPROVIDER, |
"InteropProvider::_buildInstanceCIMXMLCommunicationMechanism()"); | "InteropProvider::_buildInstanceCIMXMLCommunicationMechanism()"); |
|
|
//CreationClassName | //CreationClassName |
instance.addProperty( | instance.addProperty( |
(CIMProperty(CIM_NAMESPACE_PROPERTY_CREATIONCLASSNAME, | (CIMProperty(CIM_NAMESPACE_PROPERTY_CREATIONCLASSNAME, |
CIM_OBJECTMANAGERCOMMUNICATIONMECHANISM_CLASSNAME.getString() ))); |
CIM_CIMXMLCOMMUNICATIONMECHANISM_CLASSNAME.getString() ))); |
| |
//Name, this CommunicationMechanism. | //Name, this CommunicationMechanism. |
String name = "PegasusCommunicationMechanism"; |
|
instance.addProperty( | instance.addProperty( |
(CIMProperty(CIM_NAMESPACE_PROPERTY_NAME, | (CIMProperty(CIM_NAMESPACE_PROPERTY_NAME, |
name ))); | name ))); |
|
|
| |
if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) | if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) |
{ | { |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism(); |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism("PegasusCIMXMLCommunications"); |
handler.deliver(instance); | handler.deliver(instance); |
handler.complete(); | handler.complete(); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
|
|
| |
if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) | if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) |
{ | { |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism(); |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism("PegasusCIMXMLCommunications"); |
handler.deliver(instance); | handler.deliver(instance); |
handler.complete(); | handler.complete(); |
PEG_METHOD_EXIT(); | PEG_METHOD_EXIT(); |
|
|
| |
if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) | if (classEnum == CIM_CIMXMLCOMMUNICATIONMECHANISM) |
{ | { |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism(); |
CIMInstance instance = _buildInstancCIMXMLCommunicationMechanism("PegasusCIMXMLCommunications"); |
CIMObjectPath ref = _buildInstancePath(CIMNamespaceName(), | CIMObjectPath ref = _buildInstancePath(CIMNamespaceName(), |
CIM_CIMXMLCOMMUNICATIONMECHANISM_CLASSNAME, instance); | CIM_CIMXMLCOMMUNICATIONMECHANISM_CLASSNAME, instance); |
handler.deliver(ref); | handler.deliver(ref); |