sc_ver.cpp

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-2006 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.cpp -- 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 
00037 // $Log: sc_ver.cpp,v $
00038 // Revision 1.1.1.1  2006/12/15 20:31:37  acg
00039 // SystemC 2.2
00040 //
00041 // Revision 1.3  2006/01/13 18:44:30  acg
00042 // Added $Log to record CVS changes into the source.
00043 //
00044 
00045 #include "sysc/kernel/sc_ver.h"
00046 #include "sysc/utils/sc_iostream.h"
00047 
00048 namespace sc_core {
00049 
00050 static
00051 const char copyright[] =
00052     "        Copyright (c) 1996-2006 by all Contributors\n"
00053     "                    ALL RIGHTS RESERVED";
00054 
00055 static
00056 const char systemc_version[] =
00057     "             SystemC " SC_RELEASE_STRING " --- " __DATE__ " " __TIME__;
00058 
00059 const char*
00060 sc_copyright()
00061 {
00062     return copyright;
00063 }
00064 
00065 
00066 const char*
00067 sc_release()
00068 {
00069     return SC_RELEASE_STRING "-OSCI";
00070 }
00071 
00072 
00073 const char*
00074 sc_version()
00075 {
00076     return systemc_version;
00077 }
00078 
00079 
00080 // THIS CONSTRUCTOR ROOTS OUT OLD OBJECTS AT LINK TIME
00081 //
00082 // Each source file which includes sc_ver.h for this SystemC version 
00083 // will have a static instance of the class sc_api_version_XXX defined 
00084 // in it. That object instanciation will cause the constructor below 
00085 // to be invoked. If the version of the SystemC being linked against
00086 // does not contain the constructor below a linkage error will occur.
00087 
00088 SC_API_VERSION_STRING::SC_API_VERSION_STRING ()
00089 {
00090 }
00091 
00092 } // namespace sc_core
00093 // Taf!

Generated on Wed Jan 21 15:32:09 2009 for SystemC by  doxygen 1.5.5