version 1.29, 2004/11/29 18:48:19
|
version 1.33, 2006/05/02 20:26:59
|
|
|
//%2004//////////////////////////////////////////////////////////////////////// |
//%2006//////////////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
// IBM Corp.; EMC Corporation, The Open Group. | // IBM Corp.; EMC Corporation, The Open Group. |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; | // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
// EMC Corporation; Symantec Corporation; The Open Group. |
// | // |
// Permission is hereby granted, free of charge, to any person obtaining a copy | // Permission is hereby granted, free of charge, to any person obtaining a copy |
// of this software and associated documentation files (the "Software"), to | // of this software and associated documentation files (the "Software"), to |
|
|
representation type. | representation type. |
| |
<pre> | <pre> |
CIM CIMType Constant C++ CIMType |
CIM Type CIMType Symbol C++ Type |
------------------------------------------------------- |
---------------------------------------------- |
boolean CIMTYPE_BOOLEAN Boolean | boolean CIMTYPE_BOOLEAN Boolean |
uint8 CIMTYPE_UINT8 Uint8 | uint8 CIMTYPE_UINT8 Uint8 |
sint8 CIMTYPE_SINT8 Sint8 | sint8 CIMTYPE_SINT8 Sint8 |
|
|
string CIMTYPE_STRING String | string CIMTYPE_STRING String |
datetime CIMTYPE_DATETIME CIMDateTime | datetime CIMTYPE_DATETIME CIMDateTime |
reference CIMTYPE_REFERENCE CIMObjectPath | reference CIMTYPE_REFERENCE CIMObjectPath |
object CIMTYPE_OBJECT CIMObject (not a "real" CIM type -- see PEP 194) |
object CIMTYPE_OBJECT CIMObject (not a basic CIM type) |
</pre> | </pre> |
*/ | */ |
| |
|
|
CIMTYPE_DATETIME, | CIMTYPE_DATETIME, |
CIMTYPE_REFERENCE, | CIMTYPE_REFERENCE, |
CIMTYPE_OBJECT | CIMTYPE_OBJECT |
|
#ifdef PEGASUS_USE_EXPERIMENTAL_INTERFACES |
|
#ifdef PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
, CIMTYPE_INSTANCE |
|
#endif // PEGASUS_EMBEDDED_INSTANCE_SUPPORT |
|
#endif // PEGASUS_USE_EXPERIMENTAL_INTERFACES |
}; | }; |
| |
/** | /** |
Returns a string representation of the given type. |
Gets a string representation of a CIMType. |
| |
Note: the current implementation returns a string matching the first | Note: the current implementation returns a string matching the first |
column in the table above, but that is subject to change in later | column in the table above, but that is subject to change in later |
revisions. | revisions. |
@param type REVIEWERS: Insert description here. |
@param type The CIMType to convert to string form. |
|
@return The string form of the specified CIMType. |
*/ | */ |
PEGASUS_COMMON_LINKAGE const char * cimTypeToString ( | PEGASUS_COMMON_LINKAGE const char * cimTypeToString ( |
const CIMType type); | const CIMType type); |