(file) Return to RepositoryQueryContext.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / CQL / Attic

Diff for /pegasus/src/Pegasus/CQL/Attic/RepositoryQueryContext.cpp between version 1.1 and 1.1.2.1

version 1.1, 2004/08/20 18:22:36 version 1.1.2.1, 2004/08/20 18:22:36
Line 0 
Line 1 
   #include "RepositoryQueryContext.h"
   
   PEGASUS_NAMESPACE_BEGIN
   
   
   RepositoryQueryContext::RepositoryQueryContext(CIMNamespaceName inNS, CIMRepository* inCIMRep):QueryContext(inNS){
           _CIMRep = inCIMRep;
   }
   
   CIMClass RepositoryQueryContext::getClass(CIMName inClassName){
           /* Hardcoded defaults */
           Boolean localOnly = false;
           Boolean includeQualifiers = true;
           Boolean includeClassOrigin = false;
           CIMPropertyList _emptyCIMPropertyList;
   
           try{
                   CIMClass _class = _CIMRep->getClass(
                                                  getNamespace(),
                                                  inClassName,
                                                  localOnly,
                                                  includeQualifiers,
                                                  includeClassOrigin,
                                                  _emptyCIMPropertyList);
                   return _class;
           }catch(Exception e){
                   // error
                   PEGASUS_STD(cout) << e.getMessage() << PEGASUS_STD(endl);
                   return CIMClass();
           }
   
   }
   
   PEGASUS_NAMESPACE_END
   


Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2