Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

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-2004 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.3 (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 #include "systemc/kernel/sc_ver.h"
00038 #include "systemc/utils/sc_iostream.h"
00039 
00040 static
00041 const char copyright[] =
00042     "        Copyright (c) 1996-2004 by all Contributors\n"
00043     "                    ALL RIGHTS RESERVED";
00044 
00045 static
00046 const char systemc_version[] =
00047     "             SystemC " SC_RELEASE_STRING " --- " __DATE__ " " __TIME__;
00048 
00049 const char*
00050 sc_copyright()
00051 {
00052     return copyright;
00053 }
00054 
00055 
00056 const char*
00057 sc_release()
00058 {
00059     return SC_RELEASE_STRING "-OSCI";
00060 }
00061 
00062 
00063 const char*
00064 sc_version()
00065 {
00066     return systemc_version;
00067 }
00068 
00069 
00070 // THIS CONSTRUCTOR ROOTS OUT OLD OBJECTS AT LINK TIME
00071 //
00072 // Each source file which includes sc_ver.h for this SystemC version 
00073 // will have a static instance of the class sc_api_version_XXX defined 
00074 // in it. That object instanciation will cause the constructor below 
00075 // to be invoked. If the version of the SystemC being linked against
00076 // does not contain the constructor below a linkage error will occur.
00077 
00078 SC_API_VERSION_STRING::SC_API_VERSION_STRING ()
00079 {
00080 }
00081 
00082 // Taf!

Generated on Fri Jan 14 08:29:09 2005 for SystemC2.1beta11(excludingMSLib)(IncludingSCV)\nProvidedby:www.openverificationfoundation.org by doxygen1.2.18