version 1.10, 2006/06/19 19:37:28
|
version 1.11, 2007/04/18 20:14:35
|
|
|
// | // |
//============================================================================== | //============================================================================== |
// | // |
// Author: Dave Rosckes (rosckes@us.ibm.com) |
|
// |
|
// Modified By: David Dillard, VERITAS Software Corp. |
|
// (david.dillard@veritas.com) |
|
// Vijay Eli, IBM (vijayeli@in.ibm.com) bug#3590 |
|
// |
|
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
| |
#ifndef PEGASUS_CQLVALUE_H | #ifndef PEGASUS_CQLVALUE_H |
|
|
public: | public: |
| |
enum NumericType { Hex, Binary, Decimal, Real}; | enum NumericType { Hex, Binary, Decimal, Real}; |
enum CQLValueType { Null_type, Sint64_type, Uint64_type, Real_type, String_type, |
enum CQLValueType { Null_type, Sint64_type, Uint64_type, |
|
Real_type, String_type, |
CIMDateTime_type, CIMReference_type, CQLIdentifier_type, | CIMDateTime_type, CIMReference_type, CQLIdentifier_type, |
CIMObject_type, Boolean_type}; | CIMObject_type, Boolean_type}; |
| |
|
|
Boolean operator!=(const CQLValue& x) const; | Boolean operator!=(const CQLValue& x) const; |
| |
/** | /** |
operator <= compares two CQLValue objects to see if leftside is less than or |
operator <= compares two CQLValue objects to see if leftside is |
equal to right side and performs type checking. |
less than or equal to right side and performs type checking. |
| |
@param x Right hand side of operator. | @param x Right hand side of operator. |
@return Boolean. | @return Boolean. |
|
|
Boolean operator<=(const CQLValue& x) const; | Boolean operator<=(const CQLValue& x) const; |
| |
/** | /** |
operator >= compares two CQLValue objects to see if leftside is greater than or |
operator >= compares two CQLValue objects to see if leftside |
equal to rightside and performs type checking. |
is greater than or equal to rightside and performs type checking. |
| |
@param x Right hand side of operator. | @param x Right hand side of operator. |
@return Boolean. | @return Boolean. |
|
|
*/ | */ |
Boolean isNull() const; | Boolean isNull() const; |
| |
/** This will test to determine if the CQLValue isa String contained in the cid, |
/** This will test to determine if the CQLValue isa String contained |
that identifies a class. The CQLValue must be of a type Instance or Class; Also |
in the cid, that identifies a class. The CQLValue must be of a |
the cid must contain a String that is a valid class name. |
type Instance or Class; Also the cid must contain a String that |
|
is a valid class name. |
| |
@param cid Contains the class name. | @param cid Contains the class name. |
@param QueryCtx Contains query related data. | @param QueryCtx Contains query related data. |