version 1.158, 2008/06/26 18:32:39
|
version 1.158.4.1, 2008/08/13 10:33:04
|
|
|
// PEGASUS_SNIA_INTEROP_COMPATIBILITY is defined, then | // PEGASUS_SNIA_INTEROP_COMPATIBILITY is defined, then |
// the EmbeddedObject qualifier will always be added, | // the EmbeddedObject qualifier will always be added, |
// whether it's a class or an instance. | // whether it's a class or an instance. |
if (rep->findQualifier(CIMName("EmbeddedObject")) == |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDOBJECT) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
// Note that addQualifiers() cannot be called on a const | // Note that addQualifiers() cannot be called on a const |
|
|
// constness. | // constness. |
CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); | CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); |
tmpRep->addQualifier( | tmpRep->addQualifier( |
CIMQualifier(CIMName("EmbeddedObject"), true)); |
CIMQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDOBJECT, |
|
true)); |
} | } |
} | } |
} | } |
|
|
// Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY is | // Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY is |
// defined, then the EmbeddedInstance qualifier will be added | // defined, then the EmbeddedInstance qualifier will be added |
# ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY | # ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY |
if (rep->findQualifier(CIMName("EmbeddedInstance")) == |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDINSTANCE == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
// Note that addQualifiers() cannot be called on a const | // Note that addQualifiers() cannot be called on a const |
|
|
// the array are of the same type | // the array are of the same type |
CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); | CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); |
tmpRep->addQualifier(CIMQualifier( | tmpRep->addQualifier(CIMQualifier( |
CIMName("EmbeddedInstance"), |
PEGASUS_QUALIFIERNAME_EMBEDDEDINSTANCE, |
a[0].getClassName().getString())); | a[0].getClassName().getString())); |
} | } |
# endif | # endif |
|
|
// Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY | // Note that if the macro PEGASUS_SNIA_INTEROP_COMPATIBILITY |
// is defined, then the EmbeddedObject qualifier will always | // is defined, then the EmbeddedObject qualifier will always |
// be added, whether it's a class or an instance. | // be added, whether it's a class or an instance. |
if (rep->findQualifier(CIMName("EmbeddedObject")) == |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDOBJECT) == |
PEG_NOT_FOUND) | PEG_NOT_FOUND) |
{ | { |
// Note that addQualifiers() cannot be called on a const | // Note that addQualifiers() cannot be called on a const |
|
|
// constness. | // constness. |
CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); | CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); |
tmpRep->addQualifier( | tmpRep->addQualifier( |
CIMQualifier(CIMName("EmbeddedObject"), true)); |
CIMQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDOBJECT, |
|
true)); |
} | } |
} | } |
} | } |
|
|
out << " EMBEDDEDOBJECT=\"instance\""; | out << " EMBEDDEDOBJECT=\"instance\""; |
| |
# ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY | # ifdef PEGASUS_SNIA_INTEROP_COMPATIBILITY |
if (rep->findQualifier(CIMName("EmbeddedObject")) == PEG_NOT_FOUND) |
if (rep->findQualifier(PEGASUS_QUALIFIERNAME_EMBEDDEDOBJECT) |
|
== PEG_NOT_FOUND) |
{ | { |
// Note that addQualifiers() cannot be called on a const | // Note that addQualifiers() cannot be called on a const |
// CIMQualifierRep. In this case we really do want to add | // CIMQualifierRep. In this case we really do want to add |
|
|
// constness. | // constness. |
CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); | CIMPropertyRep* tmpRep = const_cast<CIMPropertyRep*>(rep); |
tmpRep->addQualifier(CIMQualifier( | tmpRep->addQualifier(CIMQualifier( |
CIMName("EmbeddedInstance"), |
PEGASUS_QUALIFIERNAME_EMBEDDEDINSTANCE, |
a.getClassName().getString())); | a.getClassName().getString())); |
} | } |
# endif | # endif |