00001 00002 /* 00003 * 00004 * CmpiResult.h 00005 * 00006 * (C) Copyright IBM Corp. 2003 00007 * 00008 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE COMMON PUBLIC LICENSE 00009 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE 00010 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. 00011 * 00012 * You can obtain a current copy of the Common Public License from 00013 * http://oss.software.ibm.com/developerworks/opensource/license-cpl.html 00014 * 00015 * Author: Adrian Schuur <schuur@de.ibm.com> 00016 * Contributors: 00017 * 00018 * Description: CMPI C++ result wrapper 00019 * 00020 */ 00021 00022 #ifndef _CmpiResult_h_ 00023 #define _CmpiResult_h_ 00024 #include "OW_config.h" 00025 00026 #include "cmpidt.h" 00027 #include "cmpift.h" 00028 00029 #include "CmpiObject.h" 00030 #include "CmpiData.h" 00031 #include "CmpiInstance.h" 00032 #include "CmpiObjectPath.h" 00033 00034 00038 class CmpiResult : public CmpiObject{ 00039 friend class CmpiInstanceMI; 00040 friend class CmpiAssociationMI; 00041 friend class CmpiMethodMI; 00042 friend class CmpiPropertyMI; 00043 friend class CmpiIndicationMI; 00044 private: 00045 00048 CmpiResult() {} 00049 protected: 00050 00053 CmpiResult(CMPIResult* r) 00054 : CmpiObject((void*)r) {} 00055 00058 inline CMPIResult *getEnc() const 00059 { return (CMPIResult*)enc; } 00060 public: 00061 00064 void returnData(const CmpiData& d); 00065 00068 void returnData(const CmpiInstance& d); 00069 00072 void returnData(const CmpiObjectPath& d); 00073 00076 void returnDone(); 00077 }; 00078 00079 #endif 00080 00081