cmpi
CmpiStatus.h
Go to the documentation of this file.
1/*
2 *
3 * $Id: CmpiStatus.h,v 1.3 2008/07/09 19:36:59 tyreld Exp $
4 *
5 * (C) Copyright IBM Corp. 2003, 2005, 2008
6 *
7 * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
8 * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
9 * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
10 *
11 * You can obtain a current copy of the Eclipse Public License from
12 * http://www.opensource.org/licenses/eclipse-1.0.txt
13 *
14 * Author: Adrian Schuur <schuur@de.ibm.com>
15 * Contributors: Heidi Neumann, heidineu@de.ibm.com
16 * Angel Nunez Mencias, anunez@de.ibm.com
17 * Viktor Mihajlovski, mihajlov@de.ibm.com
18 *
19 * Description: CMPI Status Definitions
20 *
21 */
22
23#ifndef _CmpiStatus_h_
24#define _CmpiStatus_h_
25
26#include "cmpidt.h"
27#include "cmpift.h"
28
29#include "Linkage.h"
30#include "CmpiBaseMI.h"
31
34
36 friend class CmpiInstanceMI;
37 friend class CmpiMethodMI;
38 friend class CmpiBaseMI;
39 friend class CmpiAssociationMI;
40 friend class CmpiPropertyMI;
41 friend class CmpiIndicationMI;
42protected:
43
47
50 CMPIStatus status() const;
51
52private:
53
56 CmpiStatus();
57
58public:
59
63 CmpiStatus(const CMPIStatus stat);
64
68 CmpiStatus(const CMPIrc rc);
69
74 CmpiStatus(const CMPIrc rcp, const char *msg);
75
78 CMPIrc rc() const;
79
82 const char* msg();
83};
84
85#endif
86
87
88
#define CMPI_PROVIDER_LINKAGE
Definition Linkage.h:28
friend class CmpiAssociationMI
Definition CmpiStatus.h:39
CMPIrc rc() const
Definition CmpiImpl.cpp:1190
CMPIStatus status() const
Definition CmpiImpl.cpp:1182
CMPIStatus st
Definition CmpiStatus.h:46
CmpiStatus()
Definition CmpiImpl.cpp:1198
friend class CmpiMethodMI
Definition CmpiStatus.h:37
friend class CmpiInstanceMI
Definition CmpiStatus.h:36
friend class CmpiBaseMI
Definition CmpiStatus.h:38
friend class CmpiIndicationMI
Definition CmpiStatus.h:41
friend class CmpiPropertyMI
Definition CmpiStatus.h:40
const char * msg()
Definition CmpiImpl.cpp:1194
enum _CMPIrc CMPIrc
struct _CMPIStatus CMPIStatus