本文整理汇总了C++中CIMName::equal方法的典型用法代码示例。如果您正苦于以下问题:C++ CIMName::equal方法的具体用法?C++ CIMName::equal怎么用?C++ CIMName::equal使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIMName
的用法示例。
在下文中一共展示了CIMName::equal方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: _validateKeys
/**
_validateKeys method of the NIS provider Test Client
*/
void NISTestClient::_validateKeys(
CIMObjectPath &cimRef,
Boolean verboseTest)
{
// don't have a try here - want it to be caught by caller
String keyVal;
CIMName keyName;
Array<CIMKeyBinding> keyBindings = cimRef.getKeyBindings();
if (verboseTest)
cout << "Retrieved " << keyBindings.size() << " keys" <<endl;
for (Uint32 j = 0; j < keyBindings.size(); j++)
{
keyName = keyBindings[j].getName();
keyVal = keyBindings[j].getValue();
if (verboseTest)
cout << "checking key " << keyName.getString() << endl;
if (keyName.equal("CreationClassName") &&
!goodCreationClassName(keyVal, verboseTest))
{
errorExit ("CreationClassName not PG_NISServerService");
}
else if (keyName.equal("Name") &&
!goodName(keyVal, verboseTest))
{
errorExit ("Name not correct");
}
else if (keyName.equal("SystemCreationClassName") &&
!goodSystemCreationClassName(keyVal, verboseTest))
{
errorExit ("SystemCreationClassName not correct");
}
else if (keyName.equal("SystemName") &&
!goodSystemName(keyVal, verboseTest))
{
errorExit ("SystemName not correct");
}
}
}
示例2: constructInstance
CIMInstance UNIX_BIOSStringProvider::constructInstance(
const CIMName &className,
const CIMNamespaceName &nameSpace,
const UNIX_BIOSString &instanceObject) const
{
CIMProperty p;
CIMInstance inst(className);
// Set path
inst.setPath(CIMObjectPath(String(""), // hostname
nameSpace,
className,
constructKeyBindings(instanceObject)));
//CIM_ManagedElement Properties
if (instanceObject.getInstanceID(p)) inst.addProperty(p);
if (instanceObject.getCaption(p)) inst.addProperty(p);
if (instanceObject.getDescription(p)) inst.addProperty(p);
if (instanceObject.getElementName(p)) inst.addProperty(p);
if (instanceObject.getGeneration(p)) inst.addProperty(p);
if (className.equal("CIM_ManagedElement")) return inst;
//CIM_BIOSAttribute Properties
if (instanceObject.getAttributeName(p)) inst.addProperty(p);
if (instanceObject.getCurrentValue(p)) inst.addProperty(p);
if (instanceObject.getDefaultValue(p)) inst.addProperty(p);
if (instanceObject.getPendingValue(p)) inst.addProperty(p);
if (instanceObject.getIsOrderedList(p)) inst.addProperty(p);
if (instanceObject.getIsReadOnly(p)) inst.addProperty(p);
if (className.equal("CIM_BIOSAttribute")) return inst;
//CIM_BIOSString Properties
if (instanceObject.getStringType(p)) inst.addProperty(p);
if (instanceObject.getMinLength(p)) inst.addProperty(p);
if (instanceObject.getMaxLength(p)) inst.addProperty(p);
if (instanceObject.getValueExpression(p)) inst.addProperty(p);
return inst;
}
示例3: constructInstance
CIMInstance UNIX_AlarmDeviceCapabilitiesProvider::constructInstance(
const CIMName &className,
const CIMNamespaceName &nameSpace,
const UNIX_AlarmDeviceCapabilities &instanceObject) const
{
CIMProperty p;
CIMInstance inst(className);
// Set path
inst.setPath(CIMObjectPath(String(""), // hostname
nameSpace,
className,
constructKeyBindings(instanceObject)));
//CIM_ManagedElement Properties
if (instanceObject.getInstanceID(p)) inst.addProperty(p);
if (instanceObject.getCaption(p)) inst.addProperty(p);
if (instanceObject.getDescription(p)) inst.addProperty(p);
if (instanceObject.getElementName(p)) inst.addProperty(p);
if (instanceObject.getGeneration(p)) inst.addProperty(p);
if (className.equal("CIM_ManagedElement")) return inst;
//CIM_Capabilities Properties
if (className.equal("CIM_Capabilities")) return inst;
//CIM_EnabledLogicalElementCapabilities Properties
if (instanceObject.getElementNameEditSupported(p)) inst.addProperty(p);
if (instanceObject.getMaxElementNameLen(p)) inst.addProperty(p);
if (instanceObject.getRequestedStatesSupported(p)) inst.addProperty(p);
if (instanceObject.getElementNameMask(p)) inst.addProperty(p);
if (instanceObject.getStateAwareness(p)) inst.addProperty(p);
if (className.equal("CIM_EnabledLogicalElementCapabilities")) return inst;
//CIM_AlarmDeviceCapabilities Properties
if (instanceObject.getRequestedAlarmStatesSupported(p)) inst.addProperty(p);
if (instanceObject.getAlarmIndicatorTypesConfigurable(p)) inst.addProperty(p);
return inst;
}
示例4: find
Boolean UNIX_ComputerSystem::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String creationClassNameKey;
String nameKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_CREATION_CLASS_NAME)) creationClassNameKey = kb.getValue();
else if (keyName.equal(PROPERTY_NAME)) nameKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
示例5: find
Boolean UNIX_CollectionInSystem::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String parentKey;
String childKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_PARENT)) parentKey = kb.getValue();
else if (keyName.equal(PROPERTY_CHILD)) childKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
示例6: find
Boolean UNIX_CollectedSoftwareFeatures::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String collectionKey;
String memberKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_COLLECTION)) collectionKey = kb.getValue();
else if (keyName.equal(PROPERTY_MEMBER)) memberKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
示例7: find
Boolean UNIX_ComputerSystemIRQ::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String groupComponentKey;
String partComponentKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_GROUP_COMPONENT)) groupComponentKey = kb.getValue();
else if (keyName.equal(PROPERTY_PART_COMPONENT)) partComponentKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
示例8: find
Boolean UNIX_ApplicationSystemDependency::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String antecedentKey;
String dependentKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_ANTECEDENT)) antecedentKey = kb.getValue();
else if (keyName.equal(PROPERTY_DEPENDENT)) dependentKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_ApplicationSystemDependency_ZOS.hpp
示例9: validateKey
Boolean UNIX_BIOSElement::validateKey(CIMKeyBinding &kb) const
{
/* Keys */
//Name
//Version
//SoftwareElementState
//SoftwareElementID
//TargetOperatingSystem
CIMName name = kb.getName();
if (name.equal(PROPERTY_NAME) ||
name.equal(PROPERTY_VERSION) ||
name.equal(PROPERTY_SOFTWARE_ELEMENT_STATE) ||
name.equal(PROPERTY_SOFTWARE_ELEMENT_ID) ||
name.equal(PROPERTY_TARGET_OPERATING_SYSTEM)
)
return true;
return false;
}
示例10: find
Boolean UNIX_BGPServiceStatistics::find(Array<CIMKeyBinding> &kbArray)
{
CIMKeyBinding kb;
String statsKey;
String elementKey;
for(Uint32 i = 0; i < kbArray.size(); i++)
{
kb = kbArray[i];
CIMName keyName = kb.getName();
if (keyName.equal(PROPERTY_STATS)) statsKey = kb.getValue();
else if (keyName.equal(PROPERTY_ELEMENT)) elementKey = kb.getValue();
}
/* EXecute find with extracted keys */
return false;
}
示例11: constructInstance
CIMInstance UNIX_BlockStatisticsCapabilitiesProvider::constructInstance(
const CIMName &className,
const CIMNamespaceName &nameSpace,
const UNIX_BlockStatisticsCapabilities &instanceObject) const
{
CIMProperty p;
CIMInstance inst(className);
// Set path
inst.setPath(CIMObjectPath(String(""), // hostname
nameSpace,
className,
constructKeyBindings(instanceObject)));
//CIM_ManagedElement Properties
if (instanceObject.getInstanceID(p)) inst.addProperty(p);
if (instanceObject.getCaption(p)) inst.addProperty(p);
if (instanceObject.getDescription(p)) inst.addProperty(p);
if (instanceObject.getElementName(p)) inst.addProperty(p);
if (instanceObject.getGeneration(p)) inst.addProperty(p);
if (className.equal("CIM_ManagedElement")) return inst;
//CIM_Capabilities Properties
if (className.equal("CIM_Capabilities")) return inst;
//CIM_StatisticsCapabilities Properties
if (instanceObject.getElementTypesSupported(p)) inst.addProperty(p);
if (instanceObject.getSynchronousMethodsSupported(p)) inst.addProperty(p);
if (instanceObject.getAsynchronousMethodsSupported(p)) inst.addProperty(p);
if (className.equal("CIM_StatisticsCapabilities")) return inst;
//CIM_BlockStatisticsCapabilities Properties
if (instanceObject.getClockTickInterval(p)) inst.addProperty(p);
if (instanceObject.getSupportedFeatures(p)) inst.addProperty(p);
if (instanceObject.getRateElementTypesSupported(p)) inst.addProperty(p);
return inst;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:40,代码来源:UNIX_BlockStatisticsCapabilitiesProvider.cpp
示例12: validateKey
Boolean UNIX_BootConfigSetting::validateKey(CIMKeyBinding &kb) const
{
/* Keys */
//InstanceID
CIMName name = kb.getName();
if (name.equal(PROPERTY_INSTANCE_ID)
)
return true;
return false;
}
示例13: validateKey
Boolean UNIX_AuthorizedPrivilege::validateKey(CIMKeyBinding &kb) const
{
/* Keys */
//InstanceID
CIMName name = kb.getName();
if (name.equal(PROPERTY_INSTANCE_ID)
)
return true;
return false;
}
示例14: validateKey
Boolean UNIX_CIMOMStatisticalData::validateKey(CIMKeyBinding &kb) const
{
/* Keys */
//InstanceID
CIMName name = kb.getName();
if (name.equal(PROPERTY_INSTANCE_ID)
)
return true;
return false;
}
示例15: validateKey
Boolean UNIX_CertificateManagementCapabilities::validateKey(CIMKeyBinding &kb) const
{
/* Keys */
//InstanceID
CIMName name = kb.getName();
if (name.equal(PROPERTY_INSTANCE_ID)
)
return true;
return false;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:13,代码来源:UNIX_CertificateManagementCapabilities.cpp