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

Diff for /pegasus/src/Pegasus/WQL/WQLSelectStatement.cpp between version 1.9 and 1.10

version 1.9, 2003/11/17 19:22:54 version 1.10, 2004/01/27 13:48:11
Line 125 
Line 125 
     return false;     return false;
 } }
  
   const WQLSelectStatement WQLSelectStatement::EMPTY=WQLSelectStatement();
   
 WQLSelectStatement::WQLSelectStatement() WQLSelectStatement::WQLSelectStatement()
 { {
     //     //
Line 376 
Line 378 
     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
 { {
     //     //


Legend:
Removed from v.1.9  
changed lines
  Added in v.1.10

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2