cmpi
CmpiString.h
Go to the documentation of this file.
1/*
2 *
3 * $Id: CmpiString.h,v 1.4 2012/06/03 04:51:10 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 String Definitions
20 *
21 */
22
23#ifndef _CmpiString_h_
24#define _CmpiString_h_
25
26#include "cmpidt.h"
27#include "cmpift.h"
28#include <string.h>
29
30#ifndef CMPI_PLATFORM_WIN32_IX86_MSVC
31#include <strings.h>
32#endif
33
34#ifndef CmpiBoolean
35#define CmpiBoolean CMPIBoolean
36#define CmpiRc CMPIrc
37#endif
38
39#include "Linkage.h"
40#include "CmpiStatus.h"
41
42#ifdef CMPI_PLATFORM_WIN32_IX86_MSVC
43#define strcasecmp _stricmp
44#endif
45
49class CMPI_PROVIDER_LINKAGE CmpiString { //: public CmpiObject {
50 friend class CmpiBroker;
51 friend class CmpiData;
52 friend class CmpiObjectPath;
53 friend class CmpiInstance;
54 friend class CmpiObject;
55 friend class CmpiArgs;
56 friend class CmpiArrayIdx;
57private:
58protected:
59 void *enc;
63
66 CMPIString *getEnc() const;
67
68public:
69
72 CmpiString();
73
76 CmpiString(const char * s);
77
80 CmpiString(const CmpiString& s);
81
84 const char* charPtr() const;
85
88 CmpiBoolean equals(const char *str) const;
89 CmpiBoolean equals(const CmpiString& str) const;
90
93 CmpiBoolean equalsIgnoreCase(const char *str) const;
94 CmpiBoolean equalsIgnoreCase(const CmpiString& str) const;
95};
96
97#endif
98
99
#define CmpiBoolean
Definition CmpiObject.h:30
#define CMPI_PROVIDER_LINKAGE
Definition Linkage.h:28
Definition CmpiArgs.h:39
Definition CmpiArray.h:38
Definition CmpiBroker.h:46
Definition CmpiData.h:52
Definition CmpiInstance.h:42
Definition CmpiObjectPath.h:42
Definition CmpiObject.h:42
Definition CmpiString.h:49
void * enc
Definition CmpiString.h:59
Definition cmpift.h:2163