version 1.9, 2003/11/17 19:22:54
|
version 1.10, 2004/01/27 13:48:11
|
|
|
return false; | return false; |
} | } |
| |
|
const WQLSelectStatement WQLSelectStatement::EMPTY=WQLSelectStatement(); |
|
|
WQLSelectStatement::WQLSelectStatement() | WQLSelectStatement::WQLSelectStatement() |
{ | { |
// | // |
|
|
return stack.top(); | return stack.top(); |
} | } |
| |
|
void WQLSelectStatement::applyProjection(CIMInstance& ci) |
|
{ |
|
if (_allProperties) return; |
|
|
|
for (int i=ci.getPropertyCount(); i!=0; i--) { |
|
CIMName pn=ci.getProperty(i-1).getName(); |
|
for (int ii=0,mm=_selectPropertyNames.size(); ii<mm; ii++) { |
|
if (_selectPropertyNames[ii]==pn) break; |
|
ci.removeProperty(i-1); |
|
break; |
|
} |
|
} |
|
} |
|
|
|
void WQLSelectStatement::applyProjection(CIMObject& ci) |
|
{ |
|
if (_allProperties) return; |
|
|
|
for (int i=ci.getPropertyCount(); i!=0; i--) { |
|
CIMName pn=ci.getProperty(i-1).getName(); |
|
for (int ii=0,mm=_selectPropertyNames.size(); ii<mm; ii++) { |
|
if (_selectPropertyNames[ii]==pn) break; |
|
ci.removeProperty(i-1); |
|
break; |
|
} |
|
} |
|
} |
|
|
void WQLSelectStatement::print() const | void WQLSelectStatement::print() const |
{ | { |
// | // |