(file) Return to CMPISCMOUtilities.cpp CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / ProviderManager2 / CMPI

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPI/CMPISCMOUtilities.cpp between version 1.1.2.6 and 1.1.2.7

version 1.1.2.6, 2009/10/15 06:47:13 version 1.1.2.7, 2009/10/16 11:05:46
Line 115 
Line 115 
     const char* ns,     const char* ns,
     const char* cls)     const char* cls)
 { {
       Boolean isDirty=false;
     const CIMObjectPath& cimPath = cimInst.getPath();     const CIMObjectPath& cimPath = cimInst.getPath();
  
     const CString nameSpace = cimPath.getNameSpace().getString().getCString();     const CString nameSpace = cimPath.getNameSpace().getString().getCString();
     const CString className = cimPath.getClassName().getString().getCString();     const CString className = cimPath.getClassName().getString().getCString();
     SCMOClass* scmoClass = mbGetSCMOClass(  
         0,      if (!ns)
         ns ? ns : (const char*)nameSpace,      {
         cls ? cls : (const char*)className);          ns = (const char*)nameSpace;
       }
       if (!cls)
       {
           cls = (const char*)className;
       }
   
       SCMOClass* scmoClass = mbGetSCMOClass(0,ns,cls);
   
       if (0 == scmoClass)
       {
           isDirty=true;
           if (!ns)
           {
               ns="";
           }
           if (!cls)
           {
               cls="";
           }
           scmoClass = new SCMOClass(cls,ns);
       }
  
     SCMOInstance* scmoInst = new SCMOInstance(*scmoClass, cimInst);     SCMOInstance* scmoInst = new SCMOInstance(*scmoClass, cimInst);
  
       if (isDirty)
       {
           scmoInst->markAsCompromised();
       }
   
     return scmoInst;     return scmoInst;
 } }
  
Line 137 
Line 164 
     const char* ns,     const char* ns,
     const char* cls)     const char* cls)
 { {
       Boolean isDirty=false;
     CString nameSpace = cimPath.getNameSpace().getString().getCString();     CString nameSpace = cimPath.getNameSpace().getString().getCString();
     CString className = cimPath.getClassName().getString().getCString();     CString className = cimPath.getClassName().getString().getCString();
     SCMOClass* scmoClass = mbGetSCMOClass(  
         0,      if (!ns)
         ns ? ns : (const char*)nameSpace,      {
         cls ? cls : (const char*)className);          ns = (const char*)nameSpace;
       }
       if (!cls)
       {
           cls = (const char*)className;
       }
   
   
       SCMOClass* scmoClass = mbGetSCMOClass(0,ns,cls);
   
       if (0 == scmoClass)
       {
           isDirty=true;
           if (!ns)
           {
               ns="";
           }
           if (!cls)
           {
               cls="";
           }
           scmoClass = new SCMOClass(cls,ns);
       }
  
     SCMOInstance* scmoRef = new SCMOInstance(*scmoClass, cimPath);     SCMOInstance* scmoRef = new SCMOInstance(*scmoClass, cimPath);
       if (isDirty)
       {
           scmoRef->markAsCompromised();
       }
  
     return scmoRef;     return scmoRef;
 } }
Line 263 
Line 317 
             if (scmoValue->simple.hasValue)             if (scmoValue->simple.hasValue)
             {             {
                 data->value.uint64 = scmoValue->simple.val.u64;                 data->value.uint64 = scmoValue->simple.val.u64;
                 data->state = CMPI_goodValue;  
             }             }
             else             else
             {             {


Legend:
Removed from v.1.1.2.6  
changed lines
  Added in v.1.1.2.7

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2