cmpi
|
00001 /* 00002 * 00003 * $Id: CmpiStatus.h,v 1.3 2008/07/09 19:36:59 tyreld Exp $ 00004 * 00005 * (C) Copyright IBM Corp. 2003, 2005, 2008 00006 * 00007 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE 00008 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE 00009 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT. 00010 * 00011 * You can obtain a current copy of the Eclipse Public License from 00012 * http://www.opensource.org/licenses/eclipse-1.0.txt 00013 * 00014 * Author: Adrian Schuur <schuur@de.ibm.com> 00015 * Contributors: Heidi Neumann, heidineu@de.ibm.com 00016 * Angel Nunez Mencias, anunez@de.ibm.com 00017 * Viktor Mihajlovski, mihajlov@de.ibm.com 00018 * 00019 * Description: CMPI Status Definitions 00020 * 00021 */ 00022 00023 #ifndef _CmpiStatus_h_ 00024 #define _CmpiStatus_h_ 00025 00026 #include "cmpidt.h" 00027 #include "cmpift.h" 00028 00029 #include "Linkage.h" 00030 #include "CmpiBaseMI.h" 00031 00035 class CMPI_PROVIDER_LINKAGE CmpiStatus { 00036 friend class CmpiInstanceMI; 00037 friend class CmpiMethodMI; 00038 friend class CmpiBaseMI; 00039 friend class CmpiAssociationMI; 00040 friend class CmpiPropertyMI; 00041 friend class CmpiIndicationMI; 00042 protected: 00043 00046 CMPIStatus st; 00047 00050 CMPIStatus status() const; 00051 00052 private: 00053 00056 CmpiStatus(); 00057 00058 public: 00059 00063 CmpiStatus(const CMPIStatus stat); 00064 00068 CmpiStatus(const CMPIrc rc); 00069 00074 CmpiStatus(const CMPIrc rcp, const char *msg); 00075 00078 CMPIrc rc() const; 00079 00082 const char* msg(); 00083 }; 00084 00085 #endif 00086 00087 00088