CmpiPropertyMI.h

Go to the documentation of this file.
00001 
00002 /*
00003  *
00004  * CmpiPropertyMI.h
00005  *
00006  * (C) Copyright IBM Corp. 2002
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++ property provider wrapper
00019  *
00020  */
00021 
00022 #ifndef _CmpiPropertyMI_h_
00023 #define _CmpiPropertyMI_h_
00024 
00025 #include "OW_config.h"
00026 
00027 #include <iostream>
00028 
00029 #include "cmpidt.h"
00030 #include "cmpift.h"
00031 
00032 #include "CmpiBaseMI.h"
00033 #include "CmpiStatus.h"
00034 #include "CmpiObjectPath.h"
00035 #include "CmpiResult.h"
00036 #include "CmpiContext.h"
00037 
00038 
00039 class CmpiPropertyMI : public CmpiBaseMI {
00040   protected:
00041   public:
00042    virtual ~CmpiPropertyMI() {}
00043    CmpiPropertyMI(CMPIBroker *mbp, const CmpiContext& ctx)
00044       : CmpiBaseMI(mbp,ctx) {}
00045 
00046    static CMPIStatus driveSetProperty
00047       (CMPIPropertyMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00048        CMPIObjectPath* eOp, char* name, CMPIData data);
00049    static CMPIStatus driveGetProperty
00050       (CMPIPropertyMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00051        CMPIObjectPath* eOp, char* name);
00052 
00053    virtual CmpiStatus setProperty
00054       (const CmpiContext& ctx, CmpiResult& rslt,
00055        const CmpiObjectPath& op, const char* name, const CmpiData& data);
00056    virtual CmpiStatus getProperty
00057       (const CmpiContext& ctx, CmpiResult& rslt,
00058        const CmpiObjectPath& op, const char* name);
00059 };
00060 
00061 #endif
00062 

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