cmpi
CmpiObject.h
Go to the documentation of this file.
1/*
2 *
3 * $Id: CmpiObject.h,v 1.3 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 Object Definitions
20 *
21 */
22
23#ifndef _CmpiObject_h_
24#define _CmpiObject_h_
25
26#include "cmpidt.h"
27#include "cmpift.h"
28
29#ifndef CmpiBoolean
30#define CmpiBoolean CMPIBoolean
31#define CmpiRc CMPIrc
32#endif
33
34#include "Linkage.h"
35#include "CmpiString.h"
36
37class CmpiBroker;
38
43 friend class CmpiBroker;
44 friend class CmpiObjectPath;
45 friend class CmpiInstance;
46protected:
49 void *enc;
52 CmpiObject();
53
56 CmpiObject(const void* enc);
57
58 CmpiString doToString(CMPIBroker *mb);
59
60 CmpiBoolean doIsA(CMPIBroker *mb, const char *typeName) const;
61private:
62public:
65 CmpiBoolean isNull() const;
66
69 CmpiString toString();
70
73 CmpiBoolean isA(const char *typeName) const;
74};
75
76#endif
77
#define CmpiBoolean
Definition CmpiObject.h:30
#define CMPI_PROVIDER_LINKAGE
Definition Linkage.h:28
Definition CmpiBroker.h:46
Definition CmpiInstance.h:42
Definition CmpiObjectPath.h:42
Definition CmpiObject.h:42
void * enc
Definition CmpiObject.h:49
Definition CmpiString.h:49
Definition cmpift.h:951