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

Diff for /pegasus/src/Pegasus/Server/QuerySupportRouter.cpp between version 1.9 and 1.10

version 1.9, 2012/05/16 08:45:16 version 1.10, 2013/06/29 17:55:08
Line 39 
Line 39 
  
 PEGASUS_NAMESPACE_BEGIN PEGASUS_NAMESPACE_BEGIN
  
   // Call the appropriate handleQueryRequest handler for the defined
   // query language type or return false if the language type not supported.
 Boolean QuerySupportRouter::routeHandleExecQueryRequest( Boolean QuerySupportRouter::routeHandleExecQueryRequest(
     CIMOperationRequestDispatcher* opThis,     CIMOperationRequestDispatcher* opThis,
     CIMExecQueryRequestMessage* msg)     CIMExecQueryRequestMessage* msg)
Line 49 
Line 51 
     else if(msg->queryLanguage == "DMTF:CQL")     else if(msg->queryLanguage == "DMTF:CQL")
         ((CQLOperationRequestDispatcher*)opThis)->handleQueryRequest(msg);         ((CQLOperationRequestDispatcher*)opThis)->handleQueryRequest(msg);
 #endif #endif
     else return false;      else
       {
     return true;          return false;
 } }
  
 void QuerySupportRouter::routeHandleExecQueryResponseAggregation(      return true;
     CIMOperationRequestDispatcher* opThis,  
     OperationAggregate* poA)  
 {  
     if (poA->_queryLanguage=="WQL")  
         ((WQLOperationRequestDispatcher*)opThis)->  
             handleQueryResponseAggregation(poA);  
 #ifdef PEGASUS_ENABLE_CQL  
     else if(poA->_queryLanguage == "DMTF:CQL")  
         ((CQLOperationRequestDispatcher*)opThis)->  
             handleQueryResponseAggregation(poA);  
 #endif  
 } }
  
 void QuerySupportRouter::routeApplyQueryToEnumeration(  // Get pointer to the correct function.  Note that since
   // the queryLanguage has already been tested in
   // routeHandleExecQueryRequest the assert should be unreachable.
   applyQueryFunctionPtr QuerySupportRouter::getFunctPtr(
     CIMOperationRequestDispatcher* opThis,     CIMOperationRequestDispatcher* opThis,
     CIMResponseMessage* msg,  
     QueryExpressionRep* query)     QueryExpressionRep* query)
 { {
     if (query->getQueryLanguage()=="WQL")     if (query->getQueryLanguage()=="WQL")
         ((WQLOperationRequestDispatcher*)opThis)->      {
             applyQueryToEnumeration(msg,query);          return &((WQLOperationRequestDispatcher*)opThis)->
               applyQueryToEnumeration;
       }
 #ifdef PEGASUS_ENABLE_CQL #ifdef PEGASUS_ENABLE_CQL
     else if(query->getQueryLanguage() == "DMTF:CQL")     else if(query->getQueryLanguage() == "DMTF:CQL")
         ((CQLOperationRequestDispatcher*)opThis)->      {
             applyQueryToEnumeration(msg,query);          return &((CQLOperationRequestDispatcher*)opThis)->
               applyQueryToEnumeration;
       }
       else
       {
           PEGASUS_UNREACHABLE(PEGASUS_ASSERT(false);)
       }
 #endif #endif
 } }
  


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