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

  1 martin 1.36 //%LICENSE////////////////////////////////////////////////////////////////
  2 martin 1.37 //
  3 martin 1.36 // Licensed to The Open Group (TOG) under one or more contributor license
  4             // agreements.  Refer to the OpenPegasusNOTICE.txt file distributed with
  5             // this work for additional information regarding copyright ownership.
  6             // Each contributor licenses this file to you under the OpenPegasus Open
  7             // Source License; you may not use this file except in compliance with the
  8             // License.
  9 martin 1.37 //
 10 martin 1.36 // Permission is hereby granted, free of charge, to any person obtaining a
 11             // copy of this software and associated documentation files (the "Software"),
 12             // to deal in the Software without restriction, including without limitation
 13             // the rights to use, copy, modify, merge, publish, distribute, sublicense,
 14             // and/or sell copies of the Software, and to permit persons to whom the
 15             // Software is furnished to do so, subject to the following conditions:
 16 martin 1.37 //
 17 martin 1.36 // The above copyright notice and this permission notice shall be included
 18             // in all copies or substantial portions of the Software.
 19 martin 1.37 //
 20 martin 1.36 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
 21 martin 1.37 // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
 22 martin 1.36 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
 23             // IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
 24             // CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
 25             // TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
 26             // SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 27 martin 1.37 //
 28 martin 1.36 //////////////////////////////////////////////////////////////////////////
 29 mike   1.9  //
 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 kumpf  1.32         CIM Type    CIMType Symbol       C++ Type
 48                     ----------------------------------------------
 49                     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                     object      CIMTYPE_OBJECT       CIMObject (not a basic CIM type)
 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 s.kodali    1.35     CIMTYPE_OBJECT,
 86                      CIMTYPE_INSTANCE
 87 mike        1.9  };
 88                  
 89 kumpf       1.34 /**
 90 kumpf       1.32     Gets a string representation of a CIMType.
 91 kumpf       1.17 
 92 kumpf       1.34     Note: the current implementation returns a string matching the first
 93                      column in the table above, but that is subject to change in later
 94 kumpf       1.21     revisions.
 95 kumpf       1.32     @param type The CIMType to convert to string form.
 96                      @return The string form of the specified CIMType.
 97                  */
 98 kumpf       1.22 PEGASUS_COMMON_LINKAGE const char * cimTypeToString (
 99 kumpf       1.21     const CIMType type);
100 mike        1.9  
101                  PEGASUS_NAMESPACE_END
102                  
103                  #endif /* Pegasus_Type_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2