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

sc_iostream.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-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_iostream.h - Portable iostream header file wrapper.
00021 
00022   Original Author: Martin Janssen, 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_IOSTREAM_H
00037 #define SC_IOSTREAM_H
00038 
00039 
00040 #if !defined( _MSC_VER ) && !defined( __HP_aCC ) && !defined( __BORLANDC__ )
00041 
00042 #include <iostream>
00043 
00044 #if defined(__GNUC__) && (__GNUC__ == 2) // Maintain compatibility for 2.95.x
00045 #   include <strstream>
00046     using std::strstream;
00047     using std::strstreambuf;
00048     using std::istrstream;
00049     using std::ostrstream;
00050 #else
00051 #   include <sstream>
00052 #endif
00053 
00054 using std::ios;
00055 using std::streambuf;
00056 using std::streampos;
00057 using std::streamsize;
00058 using std::iostream;
00059 using std::istream;
00060 using std::ostream;
00061 using std::cin;
00062 using std::cout;
00063 using std::cerr;
00064 using std::endl;
00065 using std::flush;
00066 using std::dec;
00067 using std::hex;
00068 using std::oct;
00069 
00070 #include <fstream>
00071 using std::fstream;
00072 using std::ifstream;
00073 using std::ofstream;
00074 
00075 #include <cstddef>
00076 using std::size_t;
00077 
00078 #include <cstring>
00079 using std::memchr;
00080 using std::memcmp;
00081 using std::memcpy;
00082 using std::memmove;
00083 using std::memset;
00084 using std::strcat;
00085 using std::strncat;
00086 using std::strchr;
00087 using std::strrchr;
00088 using std::strcmp;
00089 using std::strncmp;
00090 using std::strcpy;
00091 using std::strncpy;
00092 using std::strcspn;
00093 using std::strspn;
00094 using std::strlen;
00095 using std::strpbrk;
00096 using std::strstr;
00097 using std::strtok;
00098 
00099 #else
00100 
00101 #if defined( _MSC_VER )
00102 // VC++6 with standard library
00103 
00104 #include <iostream>
00105 #include <strstream>
00106 using std::ios;
00107 using std::streambuf;
00108 using std::streampos;
00109 using std::streamsize;
00110 using std::iostream;
00111 using std::istream;
00112 using std::ostream;
00113 using std::strstream;
00114 using std::strstreambuf;
00115 using std::istrstream;
00116 using std::ostrstream;
00117 using std::cin;
00118 using std::cout;
00119 using std::cerr;
00120 using std::endl;
00121 using std::flush;
00122 using std::dec;
00123 using std::hex;
00124 using std::oct;
00125 
00126 #include <fstream>
00127 using std::fstream;
00128 using std::ifstream;
00129 using std::ofstream;
00130 
00131 #include <cstddef>
00132 
00133 #else
00134 
00135 #if defined( __HP_aCC )
00136 // HP aCC
00137 
00138 #include <iostream.h>
00139 #include <strstream.h>
00140 #include <fstream.h>
00141 
00142 #endif
00143 
00144 #endif
00145 #endif
00146 
00147 
00148 // shortcuts that save some typing
00149 
00150 #ifdef CCAST
00151 #undef CCAST
00152 #endif
00153 #define CCAST       const_cast
00154 
00155 #ifdef DCAST
00156 #undef DCAST
00157 #endif
00158 #define DCAST     dynamic_cast
00159 
00160 #ifdef RCAST
00161 #undef RCAST
00162 #endif
00163 #define RCAST reinterpret_cast
00164 
00165 #ifdef SCAST
00166 #undef SCAST
00167 #endif
00168 #define SCAST      static_cast
00169 
00170 
00171 #endif

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