int Value_money_null::Compare( const I_Value& inOther, COMPARE_TYPE inCompareType ) const { argused1( inCompareType ); FBL_CHECK( get_Type() == inOther.get_Type() ); // If one of values (this or inOther) have null... if( get_IsNull() ) { if( inOther.get_IsNull() ) return 0; // Both are NULL else return -1; // Any NULL is less then NOT NULL } else { if( inOther.get_IsNull() ) return 1; // Any NOT NULL is greater then NULL else { // ... have not null values - compare them. return Value_money::Compare( inOther ); } } }
STDMETHODIMP CItemObject::GetDataForItemID(IUserObject *Userobj,VARIANT ItemId, FolderType type, VARIANT *pVal) { HRESULT hr = S_OK; dlog.trace(L"Begin ItemObject::GetDataForItemID"); std::map<BSTR, BSTR> pIt; std::map<BSTR, BSTR>::iterator it; //SBinary ItemID; FolderType ft; if (type == NULL) { get_Type(&ft); } else { ft = type; } CComPtr<IMapiAccessWrap> Mapi; dlog.trace(L"GetMapiAccessObject for itemobject->getData "); hr = Userobj->GetMapiAccessObject(L"",&Mapi); if(FAILED(hr)) { dlog.err(L"GetMapiAccessObject failed for itemobject->getData with hresult",hr); return hr; } if(Mapi != NULL) { hr = Mapi->GetData(L"",ItemId,ft,pVal); if(FAILED(hr)) { dlog.err(L"Mapiobj->GetData failed for itemobject->getData with hresult",hr); return hr; } } else dlog.err("GetMapiAccessObject is null for itemobject->getData"); dlog.trace(L"End ItemObject::GetDataForItemID"); return hr; }
void Value_Raw::Assign( const I_Value& inValue ) { if( inValue.get_IsNull() ) { put_IsNull( true ); } else { if( get_Type() == inValue.get_Type() ) { vuint32 Len = static_cast<vuint32>(inValue.end() - inValue.begin()); put_Data( (vuint8*)inValue.begin(), Len ); } else { ConvertValue( &inValue, this ); } } }
void QcepImageDataBase::copyProperties(QcepImageDataBase *dest) { dest -> set_Type(get_Type()); dest -> set_Creator(get_Creator()); dest -> set_Version(get_Version()); dest -> set_QtVersion(get_QtVersion()); dest -> set_DataType(get_DataType()); dest -> set_FileBase(get_FileBase()); dest -> set_FileName(get_FileName()); dest -> set_Title(get_Title()); dest -> set_ReadoutMode(get_ReadoutMode()); dest -> set_ExposureTime(get_ExposureTime()); dest -> set_SummedExposures(get_SummedExposures()); dest -> set_ImageSequenceNumber(get_ImageSequenceNumber()); dest -> set_ImageNumber(get_ImageNumber()); dest -> set_PhaseNumber(get_PhaseNumber()); dest -> set_NPhases(get_NPhases()); dest -> set_DateTime(get_DateTime()); dest -> set_HBinning(get_HBinning()); dest -> set_VBinning(get_VBinning()); dest -> set_CameraGain(get_CameraGain()); dest -> set_Triggered(get_Triggered()); dest -> set_UserComment1(get_UserComment1()); dest -> set_UserComment2(get_UserComment2()); dest -> set_UserComment3(get_UserComment3()); dest -> set_UserComment4(get_UserComment4()); dest -> set_ObjectSaved(get_ObjectSaved()); dest -> set_Normalization(get_Normalization()); dest -> set_ExtraInputs(get_ExtraInputs()); dest -> set_Used(get_Used()); QByteArray name; foreach(name, dynamicPropertyNames()) { dest -> setProperty(name.data(), property(name.data())); }
void derived_mat::print(std::ostream& o)const { o<<get_Type()+" "+get_Sub()<<std::endl; }
void material_token::print(std::ostream& o)const { o<< get_Type()+" "+get_Sub()<<std::endl; }