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

Diff for /pegasus/src/Pegasus/Common/CIMValue.cpp between version 1.40 and 1.41

version 1.40, 2002/08/21 00:15:44 version 1.41, 2002/08/26 16:26:10
Line 1125 
Line 1125 
     if (_rep->_type != CIMTYPE_BOOLEAN || _rep->_isArray)     if (_rep->_type != CIMTYPE_BOOLEAN || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._booleanValue != 0;     x = _rep->_u._booleanValue != 0;
 } }
  
Line 1133 
Line 1134 
     if (_rep->_type != CIMTYPE_UINT8 || _rep->_isArray)     if (_rep->_type != CIMTYPE_UINT8 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._uint8Value;     x = _rep->_u._uint8Value;
 } }
  
Line 1141 
Line 1143 
     if (_rep->_type != CIMTYPE_SINT8 || _rep->_isArray)     if (_rep->_type != CIMTYPE_SINT8 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._sint8Value;     x = _rep->_u._sint8Value;
 } }
  
Line 1149 
Line 1152 
     if (_rep->_type != CIMTYPE_UINT16 || _rep->_isArray)     if (_rep->_type != CIMTYPE_UINT16 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._uint16Value;     x = _rep->_u._uint16Value;
 } }
  
Line 1157 
Line 1161 
     if (_rep->_type != CIMTYPE_SINT16 || _rep->_isArray)     if (_rep->_type != CIMTYPE_SINT16 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._sint16Value;     x = _rep->_u._sint16Value;
 } }
  
Line 1165 
Line 1170 
     if (_rep->_type != CIMTYPE_UINT32 || _rep->_isArray)     if (_rep->_type != CIMTYPE_UINT32 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._uint32Value;     x = _rep->_u._uint32Value;
 } }
  
Line 1173 
Line 1179 
     if (_rep->_type != CIMTYPE_SINT32 || _rep->_isArray)     if (_rep->_type != CIMTYPE_SINT32 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._sint32Value;     x = _rep->_u._sint32Value;
 } }
  
Line 1181 
Line 1188 
     if (_rep->_type != CIMTYPE_UINT64 || _rep->_isArray)     if (_rep->_type != CIMTYPE_UINT64 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._uint64Value;     x = _rep->_u._uint64Value;
 } }
  
Line 1189 
Line 1197 
     if (_rep->_type != CIMTYPE_SINT64 || _rep->_isArray)     if (_rep->_type != CIMTYPE_SINT64 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._sint64Value;     x = _rep->_u._sint64Value;
 } }
  
Line 1197 
Line 1206 
     if (_rep->_type != CIMTYPE_REAL32 || _rep->_isArray)     if (_rep->_type != CIMTYPE_REAL32 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._real32Value;     x = _rep->_u._real32Value;
 } }
  
Line 1205 
Line 1215 
     if (_rep->_type != CIMTYPE_REAL64 || _rep->_isArray)     if (_rep->_type != CIMTYPE_REAL64 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._real64Value;     x = _rep->_u._real64Value;
 } }
  
Line 1213 
Line 1224 
     if (_rep->_type != CIMTYPE_CHAR16 || _rep->_isArray)     if (_rep->_type != CIMTYPE_CHAR16 || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = _rep->_u._char16Value;     x = _rep->_u._char16Value;
 } }
  
Line 1221 
Line 1233 
     if (_rep->_type != CIMTYPE_STRING || _rep->_isArray)     if (_rep->_type != CIMTYPE_STRING || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._stringValue;     x = *_rep->_u._stringValue;
 } }
  
Line 1229 
Line 1242 
     if (_rep->_type != CIMTYPE_DATETIME || _rep->_isArray)     if (_rep->_type != CIMTYPE_DATETIME || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._dateTimeValue;     x = *_rep->_u._dateTimeValue;
 } }
  
Line 1237 
Line 1251 
     if (_rep->_type != CIMTYPE_REFERENCE || _rep->_isArray)     if (_rep->_type != CIMTYPE_REFERENCE || _rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._referenceValue;     x = *_rep->_u._referenceValue;
 } }
  
Line 1245 
Line 1260 
     if (_rep->_type != CIMTYPE_BOOLEAN || !_rep->_isArray)     if (_rep->_type != CIMTYPE_BOOLEAN || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._booleanArray;     x = *_rep->_u._booleanArray;
 } }
  
Line 1253 
Line 1269 
     if (_rep->_type != CIMTYPE_UINT8 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_UINT8 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._uint8Array;     x = *_rep->_u._uint8Array;
 } }
  
Line 1261 
Line 1278 
     if (_rep->_type != CIMTYPE_SINT8 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_SINT8 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._sint8Array;     x = *_rep->_u._sint8Array;
 } }
  
Line 1269 
Line 1287 
     if (_rep->_type != CIMTYPE_UINT16 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_UINT16 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._uint16Array;     x = *_rep->_u._uint16Array;
 } }
  
Line 1277 
Line 1296 
     if (_rep->_type != CIMTYPE_SINT16 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_SINT16 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._sint16Array;     x = *_rep->_u._sint16Array;
 } }
  
Line 1285 
Line 1305 
     if (_rep->_type != CIMTYPE_UINT32 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_UINT32 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._uint32Array;     x = *_rep->_u._uint32Array;
 } }
  
Line 1293 
Line 1314 
     if (_rep->_type != CIMTYPE_SINT32 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_SINT32 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._sint32Array;     x = *_rep->_u._sint32Array;
 } }
  
Line 1301 
Line 1323 
     if (_rep->_type != CIMTYPE_UINT64 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_UINT64 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._uint64Array;     x = *_rep->_u._uint64Array;
 } }
  
Line 1309 
Line 1332 
     if (_rep->_type != CIMTYPE_SINT64 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_SINT64 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._sint64Array;     x = *_rep->_u._sint64Array;
 } }
  
Line 1317 
Line 1341 
     if (_rep->_type != CIMTYPE_REAL32 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_REAL32 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._real32Array;     x = *_rep->_u._real32Array;
 } }
  
Line 1325 
Line 1350 
     if (_rep->_type != CIMTYPE_REAL64 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_REAL64 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._real64Array;     x = *_rep->_u._real64Array;
 } }
  
Line 1333 
Line 1359 
     if (_rep->_type != CIMTYPE_CHAR16 || !_rep->_isArray)     if (_rep->_type != CIMTYPE_CHAR16 || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._char16Array;     x = *_rep->_u._char16Array;
 } }
  
Line 1341 
Line 1368 
     if (_rep->_type != CIMTYPE_STRING || !_rep->_isArray)     if (_rep->_type != CIMTYPE_STRING || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._stringArray;     x = *_rep->_u._stringArray;
 } }
  
 void CIMValue::get(Array<CIMDateTime>& x) const void CIMValue::get(Array<CIMDateTime>& x) const
 { {
 // ATTN-RK-20020815: Use UninitializedObjectException here if CIMValue is null?  
   
     if (_rep->_type != CIMTYPE_DATETIME || !_rep->_isArray)     if (_rep->_type != CIMTYPE_DATETIME || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._dateTimeArray;     x = *_rep->_u._dateTimeArray;
 } }
  
Line 1359 
Line 1386 
     if (_rep->_type != CIMTYPE_REFERENCE || !_rep->_isArray)     if (_rep->_type != CIMTYPE_REFERENCE || !_rep->_isArray)
         throw TypeMismatchException();         throw TypeMismatchException();
  
       if (!_rep->_isNull)
     x = *_rep->_u._referenceArray;     x = *_rep->_u._referenceArray;
 } }
  


Legend:
Removed from v.1.40  
changed lines
  Added in v.1.41

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2