CmpiInstanceMI.h

Go to the documentation of this file.
00001 
00002 /*
00003  *
00004  * CmpiInstanceMI.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++ instance provider wrapper
00019  *
00020  */
00021 
00022 #ifndef _CmpiInstanceMI_h_
00023 #define _CmpiInstanceMI_h_
00024 #include "OW_config.h"
00025 
00026 #include <iostream>
00027 
00028 #include "cmpidt.h"
00029 #include "cmpift.h"
00030 
00031 #include "CmpiBaseMI.h"
00032 #include "CmpiStatus.h"
00033 #include "CmpiObjectPath.h"
00034 #include "CmpiInstance.h"
00035 #include "CmpiResult.h"
00036 #include "CmpiContext.h"
00037 
00038 class CmpiInstanceMI : public CmpiBaseMI {
00039   protected:
00040   public:
00041    virtual ~CmpiInstanceMI() {}
00042    CmpiInstanceMI(CMPIBroker *mbp, const CmpiContext& ctx)
00043       : CmpiBaseMI(mbp,ctx) {}
00044 
00045    static CMPIStatus driveEnumInstanceNames
00046       (CMPIInstanceMI* mi,CMPIContext* eCtx, CMPIResult* eRslt,
00047        CMPIObjectPath* eCop);
00048    static CMPIStatus driveEnumInstances
00049       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00050        CMPIObjectPath* eCop, char* *properties);
00051    static CMPIStatus driveGetInstance
00052       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00053        CMPIObjectPath* eCop, char* *properties);
00054    static CMPIStatus driveCreateInstance
00055       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00056        CMPIObjectPath* eCop, CMPIInstance* eInst);
00057    static CMPIStatus driveSetInstance
00058       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00059        CMPIObjectPath* eCop, CMPIInstance* eInst, char* *properties);
00060    static CMPIStatus driveDeleteInstance
00061       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00062        CMPIObjectPath* eCop);
00063    static CMPIStatus driveExecQuery
00064       (CMPIInstanceMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00065        CMPIObjectPath* eCop, char* language ,char* query);
00066 
00067 
00068    virtual CmpiStatus enumInstanceNames
00069               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop);
00070    virtual CmpiStatus enumInstances
00071               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop,
00072           const char* *properties);
00073    virtual CmpiStatus getInstance
00074               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop,
00075           const char* *properties);
00076    virtual CmpiStatus createInstance
00077               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop,
00078                const CmpiInstance& inst);
00079    virtual CmpiStatus setInstance
00080               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop,
00081                const CmpiInstance& inst, const char* *properties);
00082    virtual CmpiStatus deleteInstance
00083               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop);
00084    virtual CmpiStatus execQuery
00085               (const CmpiContext& ctx, CmpiResult& rslt, const CmpiObjectPath& cop,
00086                const char* language, const char* query);
00087 };
00088 
00089 #endif
00090 
00091 
00092 
00093 
00094 
00095 
00096 
00097 
00098 

Generated on Thu Feb 9 08:47:49 2006 for openwbem by  doxygen 1.4.6