version 1.1.2.1, 2004/08/20 18:22:36
|
version 1.1.2.2, 2004/08/26 14:55:12
|
|
|
#undef PEGASUS_ARRAY_T | #undef PEGASUS_ARRAY_T |
| |
//##ModelId=40FC34920351 | //##ModelId=40FC34920351 |
|
CQLFactor::CQLFactor(const CQLFactor& inCQLFact) |
|
{ |
|
_CQLVal = inCQLFact._CQLVal; |
|
_CQLFunct = inCQLFact._CQLFunct; |
|
_CQLExp = inCQLFact._CQLExp; |
|
_invert = inCQLFact._invert; |
|
} |
|
|
CQLFactor::CQLFactor(CQLValue inCQLVal) | CQLFactor::CQLFactor(CQLValue inCQLVal) |
{ | { |
|
_CQLVal = inCQLVal; |
} | } |
| |
//##ModelId=40FC34BC0061 | //##ModelId=40FC34BC0061 |
CQLFactor::CQLFactor(CQLExpression& inCQLExp) | CQLFactor::CQLFactor(CQLExpression& inCQLExp) |
{ | { |
|
_CQLExp = new CQLExpression(inCQLExp); |
} | } |
| |
//##ModelId=40FC34E30391 | //##ModelId=40FC34E30391 |
CQLFactor::CQLFactor(CQLFunction inCQLFunc) | CQLFactor::CQLFactor(CQLFunction inCQLFunc) |
{ | { |
|
_CQLFunct = new CQLFunction(inCQLFunc); |
} | } |
| |
//##ModelId=40FC33B70262 | //##ModelId=40FC33B70262 |
CQLValue CQLFactor::getValue(CIMInstance CI, QueryContext& QueryCtx) | CQLValue CQLFactor::getValue(CIMInstance CI, QueryContext& QueryCtx) |
{ | { |
return CQLValue(Uint64(0)); |
return _CQLVal; |
|
} |
|
|
|
CQLValue CQLFactor::resolveValue(CIMInstance CI, QueryContext& QueryCtx) |
|
{ |
|
_CQLVal.resolve(CI,QueryCtx); |
|
return _CQLVal; |
|
} |
|
|
|
Boolean CQLFactor::isSimpleValue() |
|
{ |
|
return (_CQLExp == NULL && _CQLFunct == NULL); |
|
} |
|
|
|
CQLFunction CQLFactor::getCQLFunction() |
|
{ |
|
return *_CQLFunct; |
|
} |
|
|
|
CQLExpression CQLFactor::getCQLExpression() |
|
{ |
|
return *_CQLExp; |
|
} |
|
|
|
String CQLFactor::toString() |
|
{ |
|
if(_CQLFunct != NULL) |
|
{ |
|
_CQLFunct->toString(); |
|
} |
|
else if(_CQLExp != NULL) |
|
{ |
|
_CQLExp->toString(); |
} | } |
|
else |
|
{ |
|
_CQLVal.toString(); |
|
} |
|
} |
|
|
|
void CQLFactor::applyScopes(Array<CQLScope> inScopes) |
|
{ |
|
return; |
|
} |
|
|
| |
PEGASUS_NAMESPACE_END | PEGASUS_NAMESPACE_END |