cmpiValue.cpp File Reference

#include <iostream>
#include "cmpisrv.h"
#include "OW_Char16.hpp"
#include "OW_CIMValue.hpp"
#include "OW_CIMDateTime.hpp"

Include dependency graph for cmpiValue.cpp:

Go to the source code of this file.

Defines

#define CopyToArray(pt, ct)
#define CopyToStringArray(pt, ct)
#define CopyToEncArray(pt, ct)
#define CopyFromArray(pt, ct)
#define CopyFromStringArray(pt, ct)
#define CopyFromEncArray(pt, ct, cn)

Functions

OpenWBEM::CIMValue value2CIMValue (const CMPIValue *data, const CMPIType type, CMPIrc *rc)
CMPIrc value2CMPIData (const OpenWBEM::CIMValue &v, CMPIType t, CMPIData *data)
CMPIType type2CMPIType (OpenWBEM::CIMDataType pt, int array)
CMPIrc key2CMPIData (const OpenWBEM::String &v, OpenWBEM::CIMDataType t, CMPIData *data)


Define Documentation

#define CopyFromArray pt,
ct   ) 
 

Value:

{ OpenWBEM::Array<pt> ar; \
   v.get(ar); \
   for (int i=0; i<aSize; i++) aData[i].value.ct=ar[i]; }

Definition at line 220 of file cmpiValue.cpp.

Referenced by value2CMPIData().

#define CopyFromEncArray pt,
ct,
cn   ) 
 

Value:

{ OpenWBEM::Array<pt> ar; \
   v.get(ar); \
   for (int i=0; i<aSize; i++) { \
    aData[i].value.cn=(ct*)new CMPI_Object(new pt(ar[i])); } }

Definition at line 229 of file cmpiValue.cpp.

Referenced by value2CMPIData().

#define CopyFromStringArray pt,
ct   ) 
 

Value:

{ OpenWBEM::Array<pt> ar; \
   v.get(ar); \
   for (int i=0; i<aSize; i++) { \
     aData[i].value.ct=(CMPIString*)new CMPI_Object(ar[i]); } }

Definition at line 224 of file cmpiValue.cpp.

Referenced by value2CMPIData().

#define CopyToArray pt,
ct   ) 
 

Value:

{ pt##Array ar(aSize); \
   for (int i=0; i<aSize; i++) ar[i]=pt(aData[i].value.ct); \
   v.set(OpenWBEM::CIMValue(ar)); }

Definition at line 30 of file cmpiValue.cpp.

Referenced by value2CIMValue().

#define CopyToEncArray pt,
ct   ) 
 

Value:

{ OpenWBEM::Array<pt> ar(aSize); \
   for (int i=0; i<aSize; i++) ar[i]=*((pt*)aData[i].value.ct->hdl); \
   v.set(OpenWBEM::CIMValue(ar)); }

Definition at line 38 of file cmpiValue.cpp.

#define CopyToStringArray pt,
ct   ) 
 

Value:

{ OpenWBEM::Array<pt> ar(aSize); \
   for (int i=0; i<aSize; i++) ar[i]=OpenWBEM::String(((char*)aData[i].value)->ct); \
   v.set(OpenWBEM::CIMValue(ar)); }

Definition at line 34 of file cmpiValue.cpp.


Function Documentation

CMPIrc key2CMPIData const OpenWBEM::String &  v,
OpenWBEM::CIMDataType  t,
CMPIData data
 

Definition at line 390 of file cmpiValue.cpp.

References CMPI_keyValue, CMPI_sint64, _CMPIValue::sint64, _CMPIData::state, _CMPIData::type, and _CMPIData::value.

CMPIType type2CMPIType OpenWBEM::CIMDataType  pt,
int  array
 

Definition at line 359 of file cmpiValue.cpp.

References CMPI_ARRAY, CMPI_boolean, CMPI_char16, CMPI_dateTime, CMPI_real32, CMPI_real64, CMPI_ref, CMPI_sint16, CMPI_sint32, CMPI_sint64, CMPI_sint8, CMPI_string, CMPI_uint16, CMPI_uint32, CMPI_uint64, and CMPI_uint8.

Referenced by mbGetProperty(), refGetKey(), and refGetKeyAt().

OpenWBEM::CIMValue value2CIMValue const CMPIValue data,
const CMPIType  type,
CMPIrc rc
 

Definition at line 43 of file cmpiValue.cpp.

References _CMPIValue::array, OW_NAMESPACE::CIMNULL, CMPI_ARRAY, CMPI_chars, CMPI_charsA, CMPI_RC_OK, CMPI_SINT, CMPI_sint16, CMPI_sint32, CMPI_sint64, CMPI_sint8, CMPI_string, CMPI_UINT, CopyToArray, _CMPIArray::hdl, i, _CMPIValue::sint32, _CMPIData::type, and _CMPIData::value.

Referenced by argsAddArg(), mbSetProperty(), refAddKey(), and resultReturnData().

CMPIrc value2CMPIData const OpenWBEM::CIMValue &  v,
CMPIType  t,
CMPIData data
 

Definition at line 235 of file cmpiValue.cpp.

References _CMPIValue::array, _CMPIValue::boolean, _CMPIValue::char16, CMPI_ARRAY, CMPI_boolean, CMPI_char16, CMPI_dateTime, CMPI_RC_ERR_NOT_SUPPORTED, CMPI_RC_OK, CMPI_real32, CMPI_real64, CMPI_ref, CMPI_SINT, CMPI_sint16, CMPI_sint32, CMPI_sint64, CMPI_sint8, CMPI_string, CMPI_UINT, CMPI_uint16, CMPI_uint32, CMPI_uint64, CMPI_uint8, CopyFromArray, CopyFromEncArray, CopyFromStringArray, _CMPIValue::dateTime, _CMPIValue::real32, _CMPIValue::real64, _CMPIValue::ref, _CMPIValue::sint16, _CMPIValue::sint32, _CMPIValue::sint64, _CMPIValue::sint8, _CMPIData::state, _CMPIValue::string, string2CMPIString(), _CMPIData::type, _CMPIValue::uint16, _CMPIValue::uint32, _CMPIValue::uint64, _CMPIValue::uint8, and _CMPIData::value.

Referenced by mbGetProperty(), refGetKey(), and refGetKeyAt().


Generated on Thu Feb 9 08:49:18 2006 for openwbem by  doxygen 1.4.6