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

Diff for /pegasus/src/Pegasus/Common/CIMPropertyRep.cpp between version 1.35 and 1.36

version 1.35, 2002/08/14 22:44:39 version 1.36, 2002/08/20 17:39:37
Line 53 
Line 53 
     _propagated(propagated)     _propagated(propagated)
 { {
     if (arraySize && (!value.isArray() || value.getArraySize() != arraySize))     if (arraySize && (!value.isArray() || value.getArraySize() != arraySize))
                 throw IncompatibleTypes();                  throw IncompatibleTypesException();
  
     if (_value.getType() == CIMTYPE_NONE)     if (_value.getType() == CIMTYPE_NONE)
                 throw NullType();                 throw NullType();
Line 62 
Line 62 
     if (!referenceClassName.isNull())     if (!referenceClassName.isNull())
     {     {
         if (_value.getType() != CIMTYPE_REFERENCE)         if (_value.getType() != CIMTYPE_REFERENCE)
             throw ExpectedReferenceValue();              throw ExpectedReferenceValueException();
     }     }
     else     else
     {     {
         if (_value.getType() == CIMTYPE_REFERENCE)         if (_value.getType() == CIMTYPE_REFERENCE)
             throw MissingReferenceClassName();              throw MissingReferenceClassNameException();
     }     }
 } }
  
Line 98 
Line 98 
     // Check the type:     // Check the type:
  
     if (!inheritedProperty.getValue().typeCompatible(_value))     if (!inheritedProperty.getValue().typeCompatible(_value))
         throw TypeMismatch();          throw TypeMismatchException();
  
     // Validate the qualifiers of the property (according to     // Validate the qualifiers of the property (according to
     // superClass's property with the same name). This method     // superClass's property with the same name). This method
Line 331 
Line 331 
     // CIMType of value is immutable:     // CIMType of value is immutable:
  
     if (!value.typeCompatible(_value))     if (!value.typeCompatible(_value))
         throw IncompatibleTypes();          throw IncompatibleTypesException();
  
     if (_arraySize && _arraySize != value.getArraySize())     if (_arraySize && _arraySize != value.getArraySize())
         throw IncompatibleTypes();          throw IncompatibleTypesException();
  
     _value = value;     _value = value;
 } }


Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2