(file) Return to XmlWriter.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

Diff for /pegasus/src/Pegasus/Common/XmlWriter.cpp between version 1.158 and 1.158.4.1

version 1.158, 2008/06/26 18:32:39 version 1.158.4.1, 2008/08/13 10:33:04
Line 1035 
Line 1035 
                 // 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
Line 1044 
Line 1044 
                     // 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));
                 }                 }
             }             }
         }         }
Line 1069 
Line 1070 
                 // 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
Line 1081 
Line 1082 
                     // 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
Line 1197 
Line 1198 
                 // 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
Line 1206 
Line 1207 
                     // 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));
                 }                 }
             }             }
         }         }
Line 1220 
Line 1222 
             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
Line 1228 
Line 1231 
                 // 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


Legend:
Removed from v.1.158  
changed lines
  Added in v.1.158.4.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2