00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
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
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
00137
00138 #include <iostream.h>
00139 #include <strstream.h>
00140 #include <fstream.h>
00141
00142 #endif
00143
00144 #endif
00145 #endif
00146
00147
00148
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