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
00037
00038
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065
00066
00067
00068
00069
00070
00071
00072
00073
00074
00075
00076
00077
00078
00079
00080
00081
00082
00083
00084
00085
00086
00087
00088
00089
00090
00091
00092
00093
00094
00095
00096
00097
00098
00099
00100
00101
00102
00103
00104
00105
00106
00107
00108
00109
00110
00111
00112
00113
00114
00115
00116
00117
00118
00119
00120
00121
00122
00123
00124
00125
00126
00127
00128
00129
00130
00131
00132
00133
00134
00135
00136
00137
00138
00139
00140
00141
00142
00143
00144 #ifndef ADH_port_h
00145 #define ADH_port_h
00146
00147
00148 #undef CLOSE_namespace
00149 #undef USING_namespace
00150 #undef OPEN_namespace
00151
00152
00153 #define OPEN_namespace(N) namespace N {
00154
00155
00156 #define CLOSE_namespace(N) }
00157
00158
00159 #define USING_namespace(N) using namespace N
00160
00161
00162 #undef CLOSE_namespace
00163 #undef USING_namespace
00164 #undef OPEN_namespace
00165
00166 #ifdef DOXYGEN_COMMENT // Documentados acá para Doxygen
00167
00168 namespace std {}
00169
00170 namespace ADH {}
00171 #define INCLUDE_fstream Truco para "include <fstream>" portable
00172 #define INCLUDE_io Truco para "include <io>" portable
00173 #define INCLUDE_iomanip Truco para "include <iomanip>" portable
00174 #define INCLUDE_iostream Truco para "include <iostream>" portable
00175 #define INCLUDE_list Truco para "include <list>" portable
00176 #define INCLUDE_map Truco para "include <map>" portable
00177 #define INCLUDE_stdexcept Truco para "include <stdexcept>" portable
00178 #define INCLUDE_vector Truco para "include <vector>" portable
00179 #endif
00180
00181
00182 #ifdef __BORLANDC__
00183 #if (__BORLANDC__ <= 0x0410) // Identifica a BC++ v3.1 y anterior
00184
00185
00186 #ifndef _bool_h
00187 #define _bool_h
00188 #undef false
00189 #undef true
00190 #undef bool
00191
00192 typedef int bool;
00193 const int false = 0;
00194 const int true = ! false;
00195 #endif
00196
00197 class istream; class ostream;
00198
00199 #define using // BC++ v3.1 NO tiene "namespace"
00200 #define namespace
00201 #define std
00202 #define ADH
00203
00204 #define OPEN_namespace(N) // BC++ v3.1 NO tiene "namespace"
00205 #define CLOSE_namespace(N)
00206 #define USING_namespace(N)
00207
00208 #ifdef INCLUDE_fstream
00209 #include <fstream.h>
00210 #endif
00211 #ifdef INCLUDE_io
00212 #include <io.h>
00213 #endif
00214 #ifdef INCLUDE_iomanip
00215 #include <iomanip.h>
00216 #endif
00217 #ifdef INCLUDE_iostream
00218 #include <iostream.h>
00219 #endif
00220 #ifdef INCLUDE_list
00221 #include <list.h>
00222 #endif
00223 #ifdef INCLUDE_map
00224 #include <map.h>
00225 #endif
00226 #ifdef INCLUDE_set
00227 #include <set.h>
00228 #endif
00229 #ifdef INCLUDE_stdexcept
00230 #include <stdexcept.h>
00231 #endif
00232 #ifdef INCLUDE_string
00233 #include <string.h>
00234 #endif
00235 #ifdef INCLUDE_vector
00236 #include <vector.h>
00237 #endif
00238 #endif
00239
00240 #if (__BORLANDC__ > 0x0410) // Versiones posteriores a BC++ v3.1
00241 #define OPEN_namespace(N) namespace N {
00242 #define CLOSE_namespace(N) }
00243 #define USING_namespace(N) using namespace N
00244 #error Ajuste ADH_port.h para compìlar con versiones nuevas de BC++
00245 #endif
00246 #endif
00247
00248
00249 #ifdef _MSC_VER
00250 // namespace
00251 #define OPEN_namespace(N) namespace N {
00252 #define CLOSE_namespace(N) }
00253 #define USING_namespace(N) using namespace N
00254
00255 #if (_MSC_VER >= 1300) // Identifica a VC++ .net
00256
00257 namespace std {}
00258 using namespace std;
00259
00260 #ifdef INCLUDE_fstream
00261 #include <fstream>
00262 #endif
00263 #ifdef INCLUDE_io
00264 #include <io>
00265 #endif
00266 #ifdef INCLUDE_iomanip
00267 #include <iomanip>
00268 #endif
00269 #ifdef INCLUDE_iostream
00270 #include <iostream>
00271 #endif
00272 #ifdef INCLUDE_list
00273 #include <list>
00274 #endif
00275 #ifdef INCLUDE_map
00276 #include <map>
00277 #endif
00278 #ifdef INCLUDE_set
00279 #include <set>
00280 #endif
00281 #ifdef INCLUDE_stdexcept
00282 #include <stdexcept>
00283 #endif
00284 #ifdef INCLUDE_string
00285 #include <string>
00286 #endif
00287 #ifdef INCLUDE_vector
00288 #include <vector>
00289 #endif
00290 #endif
00291
00292 #if (_MSC_VER < 1300) // Identifica a VC++ v6 y anterior
00293 namespace std {}
00294 using namespace std;
00295
00296 #ifdef INCLUDE_fstream
00297 #include <fstream.h>
00298 #endif
00299 #ifdef INCLUDE_io
00300 #include <io.h>
00301 #endif
00302 #ifdef INCLUDE_iomanip
00303 #include <iomanip.h>
00304 #endif
00305 #ifdef INCLUDE_iostream
00306 #include <iostream.h>
00307 #endif
00308 #ifdef INCLUDE_list
00309 #include <list.h>
00310 #endif
00311 #ifdef INCLUDE_map
00312 #include <map.h>
00313 #endif
00314 #ifdef INCLUDE_set
00315 #include <set.h>
00316 #endif
00317 #ifdef INCLUDE_stdexcept
00318 #include <stdexcept.h>
00319 #endif
00320 #ifdef INCLUDE_string
00321 #include <string.h>
00322 #endif
00323 #ifdef INCLUDE_vector
00324 #include <vector.h>
00325 #endif
00326 #endif
00327 #endif
00328
00329 #endif // ADH_port_h
00330
00331