当前位置: 首页>>代码示例>>C++>>正文


C++ CIMName::equal方法代码示例

本文整理汇总了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");
        }
    }
}
开发者ID:deleisha,项目名称:neopegasus,代码行数:44,代码来源:NISTestClient.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:41,代码来源:UNIX_BIOSStringProvider.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:41,代码来源:UNIX_AlarmDeviceCapabilitiesProvider.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_ComputerSystem_ZOS.hpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_CollectionInSystem_ZOS.hpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_CollectedSoftwareFeatures_ZOS.hpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_ComputerSystemIRQ_ZOS.hpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:21,代码来源:UNIX_BIOSElement.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:21,代码来源:UNIX_BGPServiceStatistics_ZOS.hpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:13,代码来源:UNIX_BootConfigSetting.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers,代码行数:13,代码来源:UNIX_AuthorizedPrivilege.cpp

示例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;
}
开发者ID:brunolauze,项目名称:openpegasus-providers-old,代码行数:13,代码来源:UNIX_CIMOMStatisticalData.cpp

示例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


注:本文中的CIMName::equal方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。