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

Diff for /pegasus/src/Pegasus/ProviderManager2/CMPI/CMPI_Value.cpp between version 1.38 and 1.38.2.1

version 1.38, 2010/02/04 07:17:17 version 1.38.2.1, 2011/10/18 13:45:16
Line 115 
Line 115 
 /** /**
   Function to convert CMPIValue to SCMBUnion   Function to convert CMPIValue to SCMBUnion
 */ */
 SCMBUnion value2SCMOValue(const CMPIValue* data,const CMPIType type)  SCMBUnion value2SCMOValue(
       const CMPIValue* data,
       const CMPIType type,
       Boolean &nullValue)
 { {
     SCMBUnion scmoData= { { { 0 }, 0 } };     SCMBUnion scmoData= { { { 0 }, 0 } };
       nullValue = false;
  
     PEGASUS_ASSERT(!(type&CMPI_ARRAY));     PEGASUS_ASSERT(!(type&CMPI_ARRAY));
  
       if (data == NULL)
       {
           nullValue = true;
           return scmoData;
       }
   
     switch (type)     switch (type)
     {     {
         case CMPI_dateTime:         case CMPI_dateTime:
Line 131 
Line 141 
             {             {
                 scmoData.dateTimeValue = *cimdt;                 scmoData.dateTimeValue = *cimdt;
             }             }
               else
               {
                   nullValue = true;
               }
             break;             break;
         }         }
         case CMPI_chars:         case CMPI_chars:
Line 141 
Line 155 
                 scmoData.extString.length =                 scmoData.extString.length =
                     strlen(scmoData.extString.pchar);                     strlen(scmoData.extString.pchar);
             }             }
               else
               {
                   nullValue = true;
               }
             break;             break;
         }         }
         case CMPI_charsptr:         case CMPI_charsptr:
Line 151 
Line 169 
                 scmoData.extString.length =                 scmoData.extString.length =
                     strlen(scmoData.extString.pchar);                     strlen(scmoData.extString.pchar);
             }             }
               else
               {
                   nullValue = true;
               }
             break;             break;
         }         }
         case CMPI_string:         case CMPI_string:
Line 164 
Line 186 
                 scmoData.extString.length =                 scmoData.extString.length =
                     strlen(scmoData.extString.pchar);                     strlen(scmoData.extString.pchar);
             }             }
               else
               {
                   nullValue = true;
               }
             break;             break;
         }         }
         case CMPI_ref:         case CMPI_ref:
Line 173 
Line 199 
             {             {
                 scmoData.extRefPtr = (SCMOInstance*)data->inst->hdl;                 scmoData.extRefPtr = (SCMOInstance*)data->inst->hdl;
             }             }
               else
               {
                   nullValue = true;
               }
             break;             break;
         }         }
         case CMPI_boolean:         case CMPI_boolean:


Legend:
Removed from v.1.38  
changed lines
  Added in v.1.38.2.1

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2