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

Diff for /pegasus/src/Pegasus/CQL/CQLValueRep.cpp between version 1.1.2.10 and 1.1.2.11

version 1.1.2.10, 2004/10/11 16:31:02 version 1.1.2.11, 2004/10/14 19:25:18
Line 220 
Line 220 
          }          }
          break;          break;
       default:       default:
          throw(1);           throw(Exception(String("")));
          break;          break;
    }    }
    _isResolved = true;    _isResolved = true;
Line 349 
Line 349 
  
       if(classList.size() != 1)       if(classList.size() != 1)
       {       {
          throw(1);           throw(Exception(String("")));
       }       }
  
       className = classList[0].getName().getString();       className = classList[0].getName().getString();
Line 438 
Line 438 
  
       if(propertyIndex == PEG_NOT_FOUND)       if(propertyIndex == PEG_NOT_FOUND)
       {       {
          throw(1);           throw(Exception(String("")));
       }       }
  
       // We will check the property type to determine what processing       // We will check the property type to determine what processing
Line 520 
Line 520 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    switch(_valueType)    switch(_valueType)
Line 638 
Line 638 
          }          }
          break;          break;
          case CQLIdentifier_type:          case CQLIdentifier_type:
             throw(1);              throw(Exception(String("")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("")));
          break;          break;
    }    }
    return false;    return false;
Line 653 
Line 653 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    return !(this->operator==(x));    return !(this->operator==(x));
Line 664 
Line 664 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    switch(_valueType)    switch(_valueType)
Line 762 
Line 762 
          }          }
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("")));
          break;          break;
    }    }
    return false;    return false;
Line 786 
Line 786 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    switch(_valueType)    switch(_valueType)
Line 884 
Line 884 
          }          }
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    return false;    return false;
Line 908 
Line 908 
 { {
 if(!_validate(x)) if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    switch(_valueType)    switch(_valueType)
Line 1006 
Line 1006 
          }          }
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    return false;    return false;
Line 1030 
Line 1030 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    switch(_valueType)    switch(_valueType)
Line 1128 
Line 1128 
          }          }
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    return false;    return false;
Line 1153 
Line 1153 
  
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
Line 1165 
Line 1165 
    switch(_valueType)    switch(_valueType)
    {    {
       case Boolean_type:       case Boolean_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case Sint64_type:       case Sint64_type:
          if(x._valueType == Sint64_type)          if(x._valueType == Sint64_type)
Line 1213 
Line 1213 
          return CQLValueRep(*_theValue._S + *x._theValue._S);          return CQLValueRep(*_theValue._S + *x._theValue._S);
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
  
Line 1239 
Line 1239 
 { {
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
       _valueType == Null_type)       _valueType == Null_type)
Line 1250 
Line 1250 
    switch(_valueType)    switch(_valueType)
    {    {
       case Boolean_type:       case Boolean_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case Sint64_type:       case Sint64_type:
          if(x._valueType == Sint64_type)          if(x._valueType == Sint64_type)
Line 1295 
Line 1295 
          }          }
          break;          break;
       case String_type:       case String_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    // control should never reach here    // control should never reach here
Line 1324 
Line 1324 
  
    if(!_validate(x))    if(!_validate(x))
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
Line 1336 
Line 1336 
    switch(_valueType)    switch(_valueType)
    {    {
       case Boolean_type:       case Boolean_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case Sint64_type:       case Sint64_type:
          if(x._valueType == Sint64_type)          if(x._valueType == Sint64_type)
Line 1381 
Line 1381 
          }          }
          break;          break;
       case String_type:       case String_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    // control should never reach here    // control should never reach here
Line 1410 
Line 1410 
    if(!_validate(x) ||    if(!_validate(x) ||
       x._theValue._U64 == 0)       x._theValue._U64 == 0)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    if(x._valueType == Null_type ||    if(x._valueType == Null_type ||
Line 1422 
Line 1422 
    switch(_valueType)    switch(_valueType)
    {    {
       case Boolean_type:       case Boolean_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case Sint64_type:       case Sint64_type:
          if(x._valueType == Sint64_type)          if(x._valueType == Sint64_type)
Line 1467 
Line 1467 
          }          }
          break;          break;
       case String_type:       case String_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMDateTime_type:       case CIMDateTime_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMReference_type:       case CIMReference_type:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CIMInstance_type:       case CIMInstance_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
       case CQLIdentifier_type:       case CQLIdentifier_type:
             throw(1);              throw(Exception(String("CQLValueRep::")));
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    // control should never reach here    // control should never reach here
Line 1527 
Line 1527 
       _valueType != CIMInstance_type ||       _valueType != CIMInstance_type ||
       inVal._valueType != String_type)       inVal._valueType != String_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    CIMName  className;    CIMName  className;
Line 1555 
Line 1555 
    if( _valueType != String_type ||    if( _valueType != String_type ||
       inVal._valueType != String_type)       inVal._valueType != String_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    // Poughkepsie is doing this, Dan Gorey.    // Poughkepsie is doing this, Dan Gorey.
Line 1589 
Line 1589 
 { {
    if(_valueType != Uint64_type)    if(_valueType != Uint64_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return _theValue._U64;    return _theValue._U64;
 } }
Line 1598 
Line 1598 
 { {
    if(_valueType != Boolean_type)    if(_valueType != Boolean_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return _theValue._B;    return _theValue._B;
 } }
Line 1607 
Line 1607 
 { {
    if(_valueType != Sint64_type)    if(_valueType != Sint64_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return _theValue._S64;    return _theValue._S64;
 } }
Line 1616 
Line 1616 
 { {
    if(_valueType != Real_type)    if(_valueType != Real_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return _theValue._R64;    return _theValue._R64;
 } }
Line 1625 
Line 1625 
 { {
    if(_valueType != String_type)    if(_valueType != String_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return *_theValue._S;    return *_theValue._S;
 } }
Line 1634 
Line 1634 
 { {
    if(_valueType != CIMDateTime_type)    if(_valueType != CIMDateTime_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    return *_theValue._DT;    return *_theValue._DT;
Line 1644 
Line 1644 
 { {
    if(_valueType != CIMReference_type)    if(_valueType != CIMReference_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return *_theValue._OP;    return *_theValue._OP;
 } }
Line 1653 
Line 1653 
 { {
    if(_valueType != CIMInstance_type)    if(_valueType != CIMInstance_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
    return *_theValue._IN;    return *_theValue._IN;
 } }
Line 1662 
Line 1662 
 { {
    if(_valueType != CIMClass_type)    if(_valueType != CIMClass_type)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    return *_theValue._CL;    return *_theValue._CL;
Line 1776 
Line 1776 
          break;          break;
  
       default:       default:
          throw(1);           throw(Exception(String("CQLValueRep::")));
          break;          break;
    }    }
    return true;    return true;
Line 1941 
Line 1941 
             break;             break;
          }          }
          default:          default:
             throw(1);              throw(Exception(String("CQLValueRep::")));
       } // switch statement       } // switch statement
  
    }    }
Line 2071 
Line 2071 
             break;             break;
          }          }
          default:          default:
             throw(1);              throw(Exception(String("CQLValueRep::")));
       } // switch statement       } // switch statement
    }    }
    _isResolved = true;    _isResolved = true;
Line 2126 
Line 2126 
  
    if(propertyIndex == PEG_NOT_FOUND)    if(propertyIndex == PEG_NOT_FOUND)
    {    {
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    CIMProperty queryPropObj = QueryClass.getProperty(propertyIndex);    CIMProperty queryPropObj = QueryClass.getProperty(propertyIndex);
Line 2139 
Line 2139 
    if(qualIndex == PEG_NOT_FOUND)    if(qualIndex == PEG_NOT_FOUND)
    {    {
       // This property can not be processed with a symbolic constant.       // This property can not be processed with a symbolic constant.
       throw(1);        throw(Exception(String("CQLValueRep::")));
    }    }
  
    valueMap = queryPropObj.getQualifier(qualIndex).getValue();    valueMap = queryPropObj.getQualifier(qualIndex).getValue();
Line 2169 
Line 2169 
       {       {
          // The symbolic constant provided is not valid          // The symbolic constant provided is not valid
          // for this property.          // for this property.
          throw(1);           throw(Exception(String("CQLValueRep::")));
       }       }
  
       // The symbolic constant defined in the CQLIdentifier is       // The symbolic constant defined in the CQLIdentifier is
Line 2204 
Line 2204 
       {       {
          // The symbolic constant provided is not valid          // The symbolic constant provided is not valid
          // for this property.          // for this property.
          throw(1);           throw(Exception(String("CQLValueRep::")));
       }       }
  
       CString cStr = valueMapArray[matchIndex].getCString();       CString cStr = valueMapArray[matchIndex].getCString();


Legend:
Removed from v.1.1.2.10  
changed lines
  Added in v.1.1.2.11

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2