version 1.40, 2006/01/31 16:06:21
|
version 1.56, 2010/03/30 07:20:03
|
|
|
//%2006//////////////////////////////////////////////////////////////////////// |
//%LICENSE//////////////////////////////////////////////////////////////// |
// | // |
// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
// Licensed to The Open Group (TOG) under one or more contributor license |
// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
// agreements. Refer to the OpenPegasusNOTICE.txt file distributed with |
// Copyright (c) 2003 BMC Software; Hewlett-Packard Development Company, L.P.; |
// this work for additional information regarding copyright ownership. |
// IBM Corp.; EMC Corporation, The Open Group. |
// Each contributor licenses this file to you under the OpenPegasus Open |
// Copyright (c) 2004 BMC Software; Hewlett-Packard Development Company, L.P.; |
// Source License; you may not use this file except in compliance with the |
// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
// License. |
// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// |
// EMC Corporation; VERITAS Software Corporation; The Open Group. |
// Permission is hereby granted, free of charge, to any person obtaining a |
// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
// copy of this software and associated documentation files (the "Software"), |
// EMC Corporation; Symantec Corporation; The Open Group. |
// to deal in the Software without restriction, including without limitation |
// |
// the rights to use, copy, modify, merge, publish, distribute, sublicense, |
// Permission is hereby granted, free of charge, to any person obtaining a copy |
// and/or sell copies of the Software, and to permit persons to whom the |
// of this software and associated documentation files (the "Software"), to |
// Software is furnished to do so, subject to the following conditions: |
// deal in the Software without restriction, including without limitation the |
// |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
// The above copyright notice and this permission notice shall be included |
// sell copies of the Software, and to permit persons to whom the Software is |
// in all copies or substantial portions of the Software. |
// furnished to do so, subject to the following conditions: |
// |
// |
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
// THE ABOVE COPYRIGHT NOTICE AND THIS PERMISSION NOTICE SHALL BE INCLUDED IN |
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
// ALL COPIES OR SUBSTANTIAL PORTIONS OF THE SOFTWARE. THE SOFTWARE IS PROVIDED |
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. |
// "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT |
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY |
// LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR |
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, |
// PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT |
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
// ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION |
// |
// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
////////////////////////////////////////////////////////////////////////// |
// |
/* |
//============================================================================== |
|
// |
|
// Author: Karl Schopmeyer (k.schopmeyer@opengroup.org) |
|
// |
|
// Modified By: Jenny Yu (jenny_yu@hp.com) |
|
// Warren Otsuka (warren.otsuka@hp.com) |
|
// Roger Kumpf, Hewlett-Packard Company (roger_kumpf@hp.com) |
|
// | // |
//%///////////////////////////////////////////////////////////////////////////// | //%///////////////////////////////////////////////////////////////////////////// |
|
*/ |
| |
#ifndef Pegasus_Version_h | #ifndef Pegasus_Version_h |
#define Pegasus_Version_h | #define Pegasus_Version_h |
| |
#include <Pegasus/Common/Config.h> | #include <Pegasus/Common/Config.h> |
| |
PEGASUS_NAMESPACE_BEGIN |
|
|
|
#ifdef PEGASUS_OVERRIDE_PRODUCT_ID | #ifdef PEGASUS_OVERRIDE_PRODUCT_ID |
# include <Pegasus/Common/ProductVersion.h> | # include <Pegasus/Common/ProductVersion.h> |
#else | #else |
|
// |
|
// The Pegasus version string should be changed immediatly after a release |
|
// to include the word development and should then be changed immediatly |
|
// prior to release to remove it. Leaving the Version set to the prior release |
|
// makes it difficult to determine a development version from a released |
|
// version that may be in use. |
|
// |
|
// The sequence would look like: |
|
// # define PEGASUS_PRODUCT_VERSION "2.5" |
|
// # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.1" |
|
// # define PEGASUS_PRODUCT_STATUS "Development" |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.1" |
|
// # define PEGASUS_PRODUCT_STATUS "Pre-Release" |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.1" |
|
// # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.2" |
|
// # define PEGASUS_PRODUCT_STATUS "Development" |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.2" |
|
// # define PEGASUS_PRODUCT_STATUS "Pre-Release" |
|
// |
|
// # define PEGASUS_PRODUCT_VERSION "2.5.2" |
|
// # define PEGASUS_PRODUCT_STATUS "" // Blank implies Released |
|
// |
|
|
|
|
# define PEGASUS_PRODUCT_NAME "CIM Server" | # define PEGASUS_PRODUCT_NAME "CIM Server" |
# define PEGASUS_PRODUCT_VERSION "2.5" |
|
# define PEGASUS_PRODUCT_STATUS "" | # define PEGASUS_PRODUCT_STATUS "" |
|
# define PEGASUS_PRODUCT_VERSION "2.10.0" |
|
|
# define PEGASUS_CIMOM_GENERIC_NAME "Pegasus" | # define PEGASUS_CIMOM_GENERIC_NAME "Pegasus" |
// If the following is non-zero length it becomes SLP description. | // If the following is non-zero length it becomes SLP description. |
# define PEGASUS_CIMOM_DESCRIPTION "" | # define PEGASUS_CIMOM_DESCRIPTION "" |
|
|
# define COMPONENT_BUILD_DATE __DATE__ | # define COMPONENT_BUILD_DATE __DATE__ |
# endif | # endif |
| |
|
#ifdef PEGASUS_PLATFORM_HPUX_IA64_ACC |
|
#pragma VERSIONID \ |
|
"@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " "\ |
|
PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)"\ |
|
PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " "\ |
|
PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "("\ |
|
COMPONENT_BUILD_DATE ")" |
|
#else |
static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING = | static const char *PLATFORM_EMBEDDED_IDENTIFICATION_STRING = |
"@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " " | "@(#)" PEGASUS_PRODUCT_NAME " " PEGASUS_PRODUCT_VERSION " " |
PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)" | PEGASUS_PRODUCT_STATUS "(" PLATFORM_BUILD_DATE ")" "\n@(#)" |
PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " " | PEGASUS_PRODUCT_NAME "-" PLATFORM_COMPONENT_NAME " " |
PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "(" | PLATFORM_COMPONENT_VERSION " " PLATFORM_COMPONENT_STATUS "(" |
COMPONENT_BUILD_DATE ")"; | COMPONENT_BUILD_DATE ")"; |
|
#endif |
|
|
|
#endif /* PEGASUS_OS_HPUX */ |
| |
// This macro can be examined by preprocessor directives (i.e., #if) to | // This macro can be examined by preprocessor directives (i.e., #if) to |
// make compile time branch decisions based on the Pegasus version number. | // make compile time branch decisions based on the Pegasus version number. |
|
|
// CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when | // CAUTION: always check whether PEGASUS_VERSION_NUMBER is defined when |
// integrating with versions prior to 2.5.1. | // integrating with versions prior to 2.5.1. |
// | // |
#define PEGASUS_VERSION_NUMBER 0x02050100 |
#define PEGASUS_VERSION_NUMBER 0x02100000 |
|
|
#endif /* PEGASUS_OS_HPUX */ |
|
|
|
PEGASUS_NAMESPACE_END |
|
| |
#endif /* Pegasus_Version_h */ | #endif /* Pegasus_Version_h */ |