(file) Return to CIMType.h CVS log (file) (dir) Up to [Pegasus] / pegasus / src / Pegasus / Common

  1 karl  1.30 //%2005////////////////////////////////////////////////////////////////////////
  2 mike  1.9  //
  3 karl  1.28 // Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development
  4            // Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems.
  5            // Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.;
  6 karl  1.25 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.28 // Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.;
  8            // IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group.
  9 karl  1.30 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 mike  1.9  //
 12            // Permission is hereby granted, free of charge, to any person obtaining a copy
 13 kumpf 1.20 // of this software and associated documentation files (the "Software"), to
 14            // deal in the Software without restriction, including without limitation the
 15            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 16 mike  1.9  // sell copies of the Software, and to permit persons to whom the Software is
 17            // furnished to do so, subject to the following conditions:
 18            // 
 19 kumpf 1.20 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 20 mike  1.9  // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 21            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 22 kumpf 1.20 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 23            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 24            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 25 mike  1.9  // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 26            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27            //
 28            //==============================================================================
 29            //
 30            //%/////////////////////////////////////////////////////////////////////////////
 31            
 32            #ifndef Pegasus_Type_h
 33            #define Pegasus_Type_h
 34            
 35            #include <Pegasus/Common/Config.h>
 36 kumpf 1.23 #include <Pegasus/Common/Linkage.h>
 37 mike  1.9  
 38            PEGASUS_NAMESPACE_BEGIN
 39            
 40            /**
 41 kumpf 1.21     The CIMType enumeration defines symbolic constants for the CIM data types.
 42 mike  1.9  
 43                The table below shows each CIM type, its symbolic constant, and its
 44                representation type.
 45            
 46                <pre>
 47 mike  1.10 	    CIM CIMType	Constant	        C++ CIMType
 48 mike  1.9  	    -------------------------------------------------------
 49 kumpf 1.21 	    boolean	CIMTYPE_BOOLEAN		Boolean
 50            	    uint8	CIMTYPE_UINT8		Uint8
 51            	    sint8	CIMTYPE_SINT8		Sint8
 52            	    uint16	CIMTYPE_UINT16		Uint16
 53            	    sint16	CIMTYPE_SINT16		Sint16
 54            	    uint32	CIMTYPE_UINT32		Uint32
 55            	    sint32	CIMTYPE_SINT32		Sint32
 56            	    uint64	CIMTYPE_UINT64		Sint64
 57            	    sint64	CIMTYPE_SINT64		Sint64
 58            	    real32	CIMTYPE_REAL32		Real32
 59            	    real64	CIMTYPE_REAL64		Real64
 60            	    char16	CIMTYPE_CHAR16		Char16
 61            	    string	CIMTYPE_STRING		String
 62            	    datetime	CIMTYPE_DATETIME	CIMDateTime
 63            	    reference	CIMTYPE_REFERENCE	CIMObjectPath
 64 dave.sudlik 1.29         object      CIMTYPE_OBJECT      CIMObject  (not a "real" CIM type -- see PEP 194)
 65 mike        1.9      </pre>
 66                  */
 67 kumpf       1.21 
 68                  enum CIMType
 69 mike        1.9  {
 70 kumpf       1.21     CIMTYPE_BOOLEAN,
 71                      CIMTYPE_UINT8,
 72                      CIMTYPE_SINT8,
 73                      CIMTYPE_UINT16,
 74                      CIMTYPE_SINT16,
 75                      CIMTYPE_UINT32,
 76                      CIMTYPE_SINT32,
 77                      CIMTYPE_UINT64,
 78                      CIMTYPE_SINT64,
 79                      CIMTYPE_REAL32,
 80                      CIMTYPE_REAL64,
 81                      CIMTYPE_CHAR16,
 82                      CIMTYPE_STRING,
 83                      CIMTYPE_DATETIME,
 84 dave.sudlik 1.29     CIMTYPE_REFERENCE,
 85                      CIMTYPE_OBJECT
 86 mike        1.9  };
 87                  
 88 kumpf       1.21 /** 
 89                      Returns a string representation of the given type.
 90 kumpf       1.17 
 91 kumpf       1.21     Note: the current implementation returns a string matching the first 
 92                      column in the table above, but that is subject to change in later 
 93                      revisions.
 94 karl        1.26     @param type REVIEWERS: Insert description here.
 95 kumpf       1.21  */
 96 kumpf       1.22 PEGASUS_COMMON_LINKAGE const char * cimTypeToString (
 97 kumpf       1.21     const CIMType type);
 98 mike        1.9  
 99                  PEGASUS_NAMESPACE_END
100                  
101                  #endif /* Pegasus_Type_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2