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

  1 karl  1.39 //%2006////////////////////////////////////////////////////////////////////////
  2 mike  1.11 //
  3 karl  1.32 // 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.27 // IBM Corp.; EMC Corporation, The Open Group.
  7 karl  1.32 // 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.35 // Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 10            // EMC Corporation; VERITAS Software Corporation; The Open Group.
 11 karl  1.39 // Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.;
 12            // EMC Corporation; Symantec Corporation; The Open Group.
 13 mike  1.11 //
 14            // Permission is hereby granted, free of charge, to any person obtaining a copy
 15 karl  1.12 // of this software and associated documentation files (the "Software"), to
 16            // deal in the Software without restriction, including without limitation the
 17            // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
 18 mike  1.11 // sell copies of the Software, and to permit persons to whom the Software is
 19            // furnished to do so, subject to the following conditions:
 20 kumpf 1.19 // 
 21 karl  1.12 // THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN
 22 mike  1.11 // ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED
 23            // "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT
 24 karl  1.12 // LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
 25            // PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
 26            // HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
 27 mike  1.11 // ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 28            // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 29            //
 30            //==============================================================================
 31            //
 32            //%/////////////////////////////////////////////////////////////////////////////
 33            
 34            #ifndef Pegasus_Version_h
 35            #define Pegasus_Version_h
 36            
 37            #include <Pegasus/Common/Config.h>
 38            
 39            PEGASUS_NAMESPACE_BEGIN
 40            
 41 kumpf 1.33 #ifdef PEGASUS_OVERRIDE_PRODUCT_ID
 42            # include <Pegasus/Common/ProductVersion.h>
 43            #else
 44 jim.wunderlich 1.42 //
 45                     // The Pegasus version string should be changed immediatly after a release
 46                     // to include the word development and should then be changed immediatly
 47                     // prior to release to remove it. Leaving the Version set to the prior release
 48                     // makes it difficult to determine a development version from a released
 49                     //  version that may be in use.
 50                     //
 51                     // The sequence would look like:
 52                     //  # define PEGASUS_PRODUCT_VERSION "2.5"
 53 kumpf          1.45 //  # define PEGASUS_PRODUCT_STATUS  ""       // Blank implies Released
 54 jim.wunderlich 1.42 //
 55                     //  # define PEGASUS_PRODUCT_VERSION "2.5.1"
 56                     //  # define PEGASUS_PRODUCT_STATUS  "Development"
 57                     //
 58                     //  # define PEGASUS_PRODUCT_VERSION "2.5.1"
 59                     //  # define PEGASUS_PRODUCT_STATUS  "Pre-Release"
 60                     //
 61                     //  # define PEGASUS_PRODUCT_VERSION "2.5.1"
 62 kumpf          1.45 //  # define PEGASUS_PRODUCT_STATUS  ""       // Blank implies Released
 63 jim.wunderlich 1.42 //
 64                     //  # define PEGASUS_PRODUCT_VERSION "2.5.2"
 65                     //  # define PEGASUS_PRODUCT_STATUS  "Development"
 66                     //
 67                     //  # define PEGASUS_PRODUCT_VERSION "2.5.2"
 68                     //  # define PEGASUS_PRODUCT_STATUS  "Pre-Release"
 69                     //
 70                     //  # define PEGASUS_PRODUCT_VERSION "2.5.2"
 71 kumpf          1.45 //  # define PEGASUS_PRODUCT_STATUS  ""       // Blank implies Released
 72                     //
 73 jim.wunderlich 1.42 
 74                     
 75 kumpf          1.33 # define PEGASUS_PRODUCT_NAME    "CIM Server"
 76 jim.wunderlich 1.42 
 77 kumpf          1.48.2.1 # define PEGASUS_PRODUCT_STATUS  "Development"
 78                         # define PEGASUS_PRODUCT_VERSION "2.7.1"
 79 jim.wunderlich 1.42     
 80 karl           1.37     # define PEGASUS_CIMOM_GENERIC_NAME "Pegasus"
 81                         // If the following is non-zero length it becomes SLP description.
 82                         # define PEGASUS_CIMOM_DESCRIPTION ""
 83 kumpf          1.18     #endif
 84                         
 85 kumpf          1.36     #ifdef PEGASUS_OS_HPUX
 86                         // Define the "what" string for binary files
 87                         
 88                         # ifndef PLATFORM_BUILD_DATE
 89                         #  define PLATFORM_BUILD_DATE __DATE__
 90                         # endif
 91                         
 92                         # ifndef PLATFORM_COMPONENT_NAME
 93                         #  define PLATFORM_COMPONENT_NAME  "Pegasus Component"
 94                         # endif
 95                         
 96 kumpf          1.45     # ifndef PLATFORM_COMPONENT_VERSION
 97                         #  define PLATFORM_COMPONENT_VERSION PEGASUS_PRODUCT_VERSION
 98 kumpf          1.36     # endif
 99                         
100                         # ifndef PLATFORM_COMPONENT_STATUS
101                         #  define PLATFORM_COMPONENT_STATUS PEGASUS_PRODUCT_STATUS
102                         # endif
103                         
104                         # ifndef COMPONENT_BUILD_DATE
105                         #  define COMPONENT_BUILD_DATE __DATE__
106                         # endif
107                         
108 mateus.baur    1.44     #ifdef PEGASUS_PLATFORM_HPUX_IA64_ACC
109                         #pragma VERSIONID \
110                             "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "\
111                                 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"\
112                                 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "\
113                                 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("\
114                                 COMPONENT_BUILD_DATE ")"
115                         #else
116 kumpf          1.36     static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING =
117                             "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "
118                                 PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"
119                                 PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "
120                                 PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("
121                                 COMPONENT_BUILD_DATE ")";
122 mateus.baur    1.44     #endif
123 kumpf          1.36     
124 mike           1.41     #endif /* PEGASUS_OS_HPUX */
125                         
126 kumpf          1.45     // This macro can be examined by preprocessor directives (i.e., #if) to
127                         // make compile time branch decisions based on the Pegasus version number.
128 mike           1.40     // When read from left to right, the bytes have the following meaning:
129                         //
130                         //     Byte 0: major version number
131                         //     Byte 1: minor version number
132                         //     Byte 2: revision
133                         //     Byte 3: reserved
134                         //
135                         // This macro appeared for the first time in version 2.5.1 (0x02050100).
136                         // Hence its absence indicates a version earlier than that. The following
137                         // tests for a Pegasus version of at least 2.5.1:
138                         //
139                         //   #if defined(PEGASUS_VERSION_NUMBER)
140                         //     ..
141                         //   #endif
142                         //
143                         // And this tests whether the version is greater than 2.5.2:
144                         //
145                         //    #if defined(PEGASUS_VERSION_NUMBER) && PEGASUS_VERSION_NUMBER > 0x02050200
146                         //      ..
147                         //    #endif
148                         //
149 kumpf          1.45     // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when
150 mike           1.40     // integrating with versions prior to 2.5.1.
151                         //
152 kumpf          1.48.2.1 #define PEGASUS_VERSION_NUMBER 0x02070100
153 mike           1.40     
154 mike           1.11     PEGASUS_NAMESPACE_END
155                         
156                         #endif /* Pegasus_Version_h */

No CVS admin address has been configured
Powered by
ViewCVS 0.9.2