本文整理汇总了C++中CIMProperty::setPropagated方法的典型用法代码示例。如果您正苦于以下问题:C++ CIMProperty::setPropagated方法的具体用法?C++ CIMProperty::setPropagated怎么用?C++ CIMProperty::setPropagated使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CIMProperty
的用法示例。
在下文中一共展示了CIMProperty::setPropagated方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: resolve
//.........这里部分代码省略.........
CIMName className = cimClass.getClassName();
for (Uint32 i = 0, n = _properties.size(); i < n; i++)
{
CIMProperty& property = _properties[i];
Uint32 index = cimClass.findProperty(property.getName());
if (index == PEG_NOT_FOUND)
{
//
// Allow addition of Creator property to Indication Subscription,
// Filter and Handler instances
//
// l10n add language property support
if (!(((className.equal
(CIMName (PEGASUS_CLASSNAME_INDSUBSCRIPTION))) ||
(className.equal
(CIMName (PEGASUS_CLASSNAME_FORMATTEDINDSUBSCRIPTION))) ||
(className.equal
(CIMName (PEGASUS_CLASSNAME_INDHANDLER_CIMXML))) ||
(className.equal
(CIMName (PEGASUS_CLASSNAME_LSTNRDST_CIMXML))) ||
(className.equal
(CIMName (PEGASUS_CLASSNAME_INDHANDLER_SNMP))) ||
#ifdef PEGASUS_ENABLE_SYSTEM_LOG_HANDLER
(className.equal
(CIMName (PEGASUS_CLASSNAME_LSTNRDST_SYSTEM_LOG))) ||
#endif
#ifdef PEGASUS_ENABLE_EMAIL_HANDLER
(className.equal
(CIMName (PEGASUS_CLASSNAME_LSTNRDST_EMAIL))) ||
#endif
(className.equal (CIMName (PEGASUS_CLASSNAME_INDFILTER)))) &&
((property.getName ().equal
(CIMName (PEGASUS_PROPERTYNAME_INDSUB_CREATOR))) ||
(property.getName ().equal
(CIMName (PEGASUS_PROPERTYNAME_INDSUB_ACCEPTLANGS))) ||
(property.getName ().equal
(CIMName (PEGASUS_PROPERTYNAME_INDSUB_CONTENTLANGS))))))
{
throw NoSuchProperty(property.getName().getString ());
}
}
else
{
// resolve the property
Resolver::resolveProperty (property, context, nameSpace, true,
cimClass.getProperty (index), propagateQualifiers);
}
}
//----------------------------------------------------------------------
// Inject all properties from the class that are not included in the
// instance. Copy over the class-origin and set the propagated flag
// to true. NOTE: The propagated flag indicates that the property
// was not part of the property set input with the create and
// was inherited from the default in the class (see cimxml spec sect 3.1.5)
//----------------------------------------------------------------------
for (Uint32 i = 0, m = 0, n = cimClass.getPropertyCount(); i < n; i++)
{
CIMConstProperty property = cimClass.getProperty(i);
const CIMName& name = property.getName();
// See if this instance already contains a property with this name:
Boolean found = false;
for (Uint32 j = m, s = _properties.size(); j < s; j++)
{
if (name.equal(_properties[j].getName()))
{
found = true;
break;
}
}
if (!found)
{
CIMProperty p;
if (propagateQualifiers)
{
p = property.clone();
}
else
{
p = CIMProperty(
property.getName(),
property.getValue(),
property.getArraySize(),
property.getReferenceClassName(),
property.getClassOrigin(),
property.getPropagated());
}
p.setPropagated(true);
_properties.insert(m++, p);
}
}
}