sc_ver.h

Go to the documentation of this file.
00001 /*****************************************************************************
00002 
00003   The following code is derived, directly or indirectly, from the SystemC
00004   source code Copyright (c) 1996-2005 by all Contributors.
00005   All Rights reserved.
00006 
00007   The contents of this file are subject to the restrictions and limitations
00008   set forth in the SystemC Open Source License Version 2.4 (the "License");
00009   You may not use this file except in compliance with such restrictions and
00010   limitations. You may obtain instructions on how to receive a copy of the
00011   License at http://www.systemc.org/. Software distributed by Contributors
00012   under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF
00013   ANY KIND, either express or implied. See the License for the specific
00014   language governing rights and limitations under the License.
00015 
00016  *****************************************************************************/
00017 
00018 /*****************************************************************************
00019 
00020   sc_ver.h -- Version and copyright information.
00021 
00022   Original Author: Stan Y. Liao, Synopsys, Inc.
00023 
00024  *****************************************************************************/
00025 
00026 /*****************************************************************************
00027 
00028   MODIFICATION LOG - modifiers, enter your name, affiliation, date and
00029   changes you are making here.
00030 
00031       Name, Affiliation, Date:
00032   Description of Modification:
00033 
00034  *****************************************************************************/
00035 
00036 #ifndef SC_VER_H
00037 #define SC_VER_H
00038 
00039 
00040 namespace sc_core {
00041 
00042 extern const char* sc_copyright();
00043 extern const char* sc_release();
00044 extern const char* sc_version();
00045 
00046 // This is kept as yyyymmdd to allow comparisons.
00047 
00048 #define SYSTEMC_VERSION 20050714
00049 
00050 #define SC_RELEASE_STRING "2.1.v1"
00051 #define SC_API_VERSION_STRING sc_api_version_2_1_0
00052 
00053 
00054 // THIS CLASS AND STATIC INSTANCE BELOW DETECTS BAD REV OBJECTS AT LINK TIME
00055 //
00056 // Each source file which includes this file for the current SystemC version 
00057 // will have a static instance of the class sc_api_version_XXX defined
00058 // in it. That object instanciation will cause the constructor below
00059 // to be invoked. If the version of the SystemC being linked against
00060 // does not contain the constructor below a linkage error will occur.
00061 
00062 class SC_API_VERSION_STRING {
00063   public:
00064         SC_API_VERSION_STRING ();
00065 };
00066 
00067 
00068 static SC_API_VERSION_STRING api_version_check;
00069 
00070 } // namespace sc_core
00071 
00072 #endif
Generated by
Matthieu Moy <Matthieu.Moy@st.com>
Back to Pinapa Home Page