CmpiMethodMI.h

Go to the documentation of this file.
00001 
00002 /*
00003  *
00004  * CmpiMethodMI.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++ method provider wrapper
00019  *
00020  */
00021 
00022 #ifndef _CmpiMethodMI_h_
00023 #define _CmpiMethodMI_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 "CmpiResult.h"
00035 #include "CmpiContext.h"
00036 #include "CmpiArgs.h"
00037 
00038 
00039 class CmpiMethodMI : public CmpiBaseMI {
00040   protected:
00041   public:
00042    virtual ~CmpiMethodMI() {}
00043    CmpiMethodMI(CMPIBroker *mbp, const CmpiContext& ctx)
00044       : CmpiBaseMI(mbp,ctx) {}
00045 
00046    static CMPIStatus driveInvokeMethod
00047       (CMPIMethodMI* mi, CMPIContext* eCtx, CMPIResult* eRslt,
00048        CMPIObjectPath* eCop, char* methodName,
00049        CMPIArgs* eIn, CMPIArgs* eOut);
00050 
00051    virtual CmpiStatus invokeMethod
00052               (const CmpiContext& ctx, CmpiResult& rslt,
00053           const CmpiObjectPath& ref, const char* methodName,
00054           const CmpiArgs& in, CmpiArgs& out);
00055 };
00056 
00057 #endif
00058 

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