cmpi
CmpiBaseMI.h
Go to the documentation of this file.
1 /*
2  *
3  * $Id: CmpiBaseMI.h,v 1.5 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 Base MI Definitions
20  *
21  */
22 
23 #ifndef _CmpiBaseMI_h_
24 #define _CmpiBaseMI_h_
25 
26 #include <iostream>
27 
28 #include "cmpidt.h"
29 #include "cmpift.h"
30 #include "cmpimacs.h"
31 
32 #include "Linkage.h"
33 #include "CmpiProviderBase.h"
34 
35 class CmpiBroker;
36 class CmpiContext;
37 class CmpiStatus;
38 
40 public:
41  virtual ~CmpiBaseMI();
42 
43  CmpiBaseMI(const CmpiBroker &mbp, const CmpiContext& ctx);
44 
45  void setProviderBase(CmpiProviderBase* base);
46  CmpiProviderBase* getProviderBase();
47 
48  static CMPIStatus driveBaseCleanup(void* mi, const CMPIContext* eCtx, CMPIBoolean b);
49 
50  virtual CmpiStatus initialize(const CmpiContext& ctx);
51  virtual CmpiStatus cleanup(CmpiContext& ctx);
52  virtual int isUnloadable() const;
53 
54 protected:
56 private:
58 };
59 
60 #endif
Definition: CmpiBroker.h:46
CmpiProviderBase * providerBase
Definition: CmpiBaseMI.h:57
Definition: CmpiProviderBase.h:30
Definition: cmpift.h:1061
Definition: CmpiBaseMI.h:39
Definition: CmpiStatus.h:35
CmpiBroker * broker
Definition: CmpiBaseMI.h:55
unsigned char CMPIBoolean
Definition: cmpidt.h:219
Definition: cmpidt.h:511
#define CMPI_PROVIDER_LINKAGE
Definition: Linkage.h:28
Definition: CmpiContext.h:38