cmpi

cmpi/CmpiEnumeration.h

Go to the documentation of this file.
00001 /*
00002  *
00003  * $Id: CmpiEnumeration.h,v 1.3 2008/07/09 19:36:59 tyreld Exp $
00004  *
00005  * (C) Copyright IBM Corp. 2003, 2005, 2008
00006  *
00007  * THIS FILE IS PROVIDED UNDER THE TERMS OF THE ECLIPSE PUBLIC LICENSE
00008  * ("AGREEMENT"). ANY USE, REPRODUCTION OR DISTRIBUTION OF THIS FILE
00009  * CONSTITUTES RECIPIENTS ACCEPTANCE OF THE AGREEMENT.
00010  *
00011  * You can obtain a current copy of the Eclipse Public License from
00012  * http://www.opensource.org/licenses/eclipse-1.0.txt
00013  *
00014  * Author:        Adrian Schuur <schuur@de.ibm.com>
00015  * Contributors:  Heidi Neumann, heidineu@de.ibm.com
00016  *                Angel Nunez Mencias, anunez@de.ibm.com
00017  *                Viktor Mihajlovski, mihajlov@de.ibm.com
00018  *
00019  * Description: CMPI Enumeration Definitions
00020  *
00021  */
00022 
00023 #ifndef _CmpiEnumeration_h_
00024 #define _CmpiEnumeration_h_
00025 
00026 #include "cmpidt.h"
00027 #include "cmpift.h"
00028 
00029 #include "Linkage.h"
00030 #include "CmpiObject.h"
00031 #include "CmpiStatus.h"
00032 #include "CmpiObjectPath.h"
00033 #include "CmpiBroker.h"
00034 
00035 class CmpiObjectPath;
00036 class CmpiData;
00037 
00042 class CMPI_PROVIDER_LINKAGE CmpiEnumeration : public CmpiObject {
00043    friend class CmpiBroker;
00044 protected:
00045 
00048    CmpiEnumeration(CMPIEnumeration* enc);
00049 
00052    CMPIEnumeration *getEnc() const;
00053 
00054 private:
00055 
00058    CmpiEnumeration();
00059 
00060 public:
00061 
00064    CmpiData getNext();
00065 
00068    CmpiBoolean hasNext();
00069 
00072    CmpiData toArray();
00073 };
00074 
00075 #endif
00076 
00077 
00078