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 #ifndef WTLSTL_INCL_WTLSTL_HPP_WTLSTL
00043 #define WTLSTL_INCL_WTLSTL_HPP_WTLSTL
00044 #define WTLSTL_INCL_H_WTLSTL
00045
00046
00047 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00048 # define _WTLSTL_VER_WTLSTL_HPP_WTLSTL_MAJOR 2
00049 # define _WTLSTL_VER_WTLSTL_HPP_WTLSTL_MINOR 3
00050 # define _WTLSTL_VER_WTLSTL_HPP_WTLSTL_REVISION 4
00051 # define _WTLSTL_VER_WTLSTL_HPP_WTLSTL_EDIT 42
00052 #endif
00053
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
00109 #define _WTLSTL_VER_1_0_1 0x00010001
00110 #define _WTLSTL_VER_1_1_1 0x00010101
00111 #define _WTLSTL_VER_1_1_2 0x00010102
00112 #define _WTLSTL_VER_1_2_1 0x00010201
00113 #define _WTLSTL_VER_1_2_2 0x00010202
00115 #define _WTLSTL_VER_MAJOR 1
00116 #define _WTLSTL_VER_MINOR 2
00117 #define _WTLSTL_VER_REVISION 2
00118 #define _WTLSTL_VER _WTLSTL_VER_1_2_2
00119
00120
00121
00122
00123
00124 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
00125 # include <stlsoft/stlsoft.h>
00126 #endif
00127
00128
00129
00130
00131
00132
00133 #if defined(STLSOFT_COMPILER_IS_MSVC) && \
00134 _MSC_VER < 1200
00135
00136 # ifndef MIDL_INTERFACE
00137 # define MIDL_INTERFACE(x) struct
00138 # endif
00139
00140 # ifndef LONG_PTR
00141 # define LONG_PTR LONG
00142 # endif
00143
00144 # ifndef UINT_PTR
00145 # define UINT_PTR unsigned int
00146 # endif
00147
00148 # ifndef _ATL_NO_MSIMG
00149 # define _ATL_NO_MSIMG
00150 # endif
00151
00152 # ifndef ATLASSERT
00153 # define ATLASSERT _ASSERTE
00154 # endif
00155
00156 # ifndef _WIN32_IE
00157 # define _WIN32_IE 0x0300
00158 # endif
00159
00160 #endif
00161
00162
00163
00164 #ifdef STLSOFT_UNITTEST
00165 # include <atlbase.h>
00166 #endif
00167
00168 #ifndef STLSOFT_INCL_H_ATLAPP
00169 # define STLSOFT_INCL_H_ATLAPP
00170 # include <atlapp.h>
00171 #endif
00172
00173
00174 #if !defined(_WTL_VER) || \
00175 _WTL_VER < 0x0310
00176 # error WTLSTL supports WTL version 3.1 and above only
00177 #endif
00178
00179
00180
00181
00182
00183 #if !defined(_STLSOFT_VER_1_9_1_B41) || \
00184 _STLSOFT_VER < _STLSOFT_VER_1_9_1_B41
00185 # error This version of the WTLSTL libraries requires STLSoft version 1.9.1 beta 41, or later
00186 #endif
00187
00188
00189
00190
00191
00192
00193
00194
00195
00196
00197
00198
00199
00200 #if defined(STLSOFT_COMPILER_IS_BORLAND)
00201
00202 # if __BORLANDC__ < 0x0550
00203 # error Versions of Borland C++ prior to 5.5 are not supported by the WTLSTL libraries
00204 # endif
00205
00206 #elif defined(STLSOFT_COMPILER_IS_DMC)
00207
00208 # if __DMC__ < 0x0826
00209 # error Versions of Digital Mars C/C++ prior to 8.26 are not supported by the WTLSTL libraries
00210 # endif
00211
00212 #elif defined(STLSOFT_COMPILER_IS_INTEL)
00213
00214 # if (__INTEL_COMPILER < 600)
00215 # error Versions of Intel C++ prior to 6.0 are not supported by the WTLSTL libraries
00216 # endif
00217
00218 #elif defined(STLSOFT_COMPILER_IS_MWERKS)
00219
00220 # if (__MWERKS__ & 0xFF00) < 0x2400
00221 # error Versions of Metrowerks CodeWarrior C++ prior to 7.0 are not supported by the WTLSTL libraries
00222 # endif
00223
00224 #elif defined(STLSOFT_COMPILER_IS_MSVC)
00225
00226 # if _MSC_VER < 1100
00227 # error Versions of Visual C++ prior to 5.0 are not supported by the WTLSTL libraries
00228 # endif
00229
00230 #else
00231
00232 # ifdef _STLSOFT_FORCE_ANY_COMPILER
00233 # define _WTLSTL_COMPILER_IS_UNKNOWN
00234 # ifdef _STLSOFT_COMPILE_VERBOSE
00235 # pragma message("Compiler is unknown to WTLSTL")
00236 # endif
00237 # else
00238 # error Currently only Borland C++, Digital Mars C/C++, Intel C/C++, Metrowerks CodeWarrior and Visual C++ compilers are supported by the WTLSTL libraries
00239 # endif
00240 #endif
00241
00242
00243
00244
00245
00246
00247
00254 #define WTLSTL_ASSERT(_x) STLSOFT_ASSERT(_x)
00255
00263 #define WTLSTL_MESSAGE_ASSERT(_m, _x) STLSOFT_MESSAGE_ASSERT(_m, _x)
00264
00271 #define WTLSTL_STATIC_ASSERT(_x) STLSOFT_STATIC_ASSERT(_x)
00272
00273
00274
00275 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00276 # define wtlstl_assert(expr) WTLSTL_ASSERT(expr)
00277 # define wtlstl_message_assert(msg, expr) WTLSTL_MESSAGE_ASSERT(msg, expr)
00278 # define wtlstl_static_assert(expr) WTLSTL_STATIC_ASSERT(expr)
00279 #endif
00280
00281
00282
00283
00284
00285
00286
00287
00288
00289
00290
00291
00292
00293
00294
00295
00296
00297
00298
00299
00300
00301
00302
00303
00304
00305
00306
00307
00308
00309
00310
00311
00312
00313
00314
00315
00316
00317
00318
00319
00320
00321
00322
00323
00324
00325
00326
00327
00328 #ifdef _STLSOFT_NO_NAMESPACES
00329 # define _WTLSTL_NO_NAMESPACES
00330 #endif
00331
00332
00333 #ifdef _WTLSTL_NO_NAMESPACES
00334 # define _WTLSTL_NO_NAMESPACE
00335 #endif
00336
00337 #ifndef _WTLSTL_NO_NAMESPACE
00338 # if defined(_STLSOFT_NO_NAMESPACE) || \
00339 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00340
00371 namespace wtlstl
00372 {
00373 # else
00374
00375
00376 namespace stlsoft
00377 {
00378
00383 namespace wtlstl_project
00384 {
00385
00386 # endif
00387 #else
00388 stlsoft_ns_using(move_lhs_from_rhs)
00389 #endif
00390
00399 #ifndef _WTLSTL_NO_NAMESPACE
00400 # define wtlstl_ns_qual(x) ::wtlstl::x
00401 # define wtlstl_ns_using(x) using ::wtlstl::x;
00402 #else
00403 # define wtlstl_ns_qual(x) x
00404 # define wtlstl_ns_using(x)
00405 #endif
00406
00415 #ifdef STLSOFT_CF_std_NAMESPACE
00416 # define wtlstl_ns_qual_std(x) ::std::x
00417 # define wtlstl_ns_using_std(x) using ::std::x;
00418 #else
00419 # define wtlstl_ns_qual_std(x) x
00420 # define wtlstl_ns_using_std(x)
00421 #endif
00422
00431 #ifndef ATL_NO_NAMESPACE
00432 # define wtlstl_ns_qual_atl(x) ::ATL::x
00433 # define wtlstl_ns_using_atl(x) using ::ATL::x;
00434 #else
00435 # define wtlstl_ns_qual_atl(x) x
00436 # define wtlstl_ns_using_atl(x)
00437 #endif
00438
00439
00440
00441
00442
00443
00444
00445
00446 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00447
00448 typedef stlsoft_ns_qual(ss_char_a_t) ws_char_a_t;
00449 typedef stlsoft_ns_qual(ss_char_w_t) ws_char_w_t;
00450 typedef stlsoft_ns_qual(ss_sint8_t) ws_sint8_t;
00451 typedef stlsoft_ns_qual(ss_uint8_t) ws_uint8_t;
00452 typedef stlsoft_ns_qual(ss_int16_t) ws_int16_t;
00453 typedef stlsoft_ns_qual(ss_sint16_t) ws_sint16_t;
00454 typedef stlsoft_ns_qual(ss_uint16_t) ws_uint16_t;
00455 typedef stlsoft_ns_qual(ss_int32_t) ws_int32_t;
00456 typedef stlsoft_ns_qual(ss_sint32_t) ws_sint32_t;
00457 typedef stlsoft_ns_qual(ss_uint32_t) ws_uint32_t;
00458 #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
00459 typedef stlsoft_ns_qual(ss_int64_t) ws_int64_t;
00460 typedef stlsoft_ns_qual(ss_sint64_t) ws_sint64_t;
00461 typedef stlsoft_ns_qual(ss_uint64_t) ws_uint64_t;
00462 #endif
00463 typedef stlsoft_ns_qual(ss_int_t) ws_int_t;
00464 typedef stlsoft_ns_qual(ss_sint_t) ws_sint_t;
00465 typedef stlsoft_ns_qual(ss_uint_t) ws_uint_t;
00466 typedef stlsoft_ns_qual(ss_long_t) ws_long_t;
00467 typedef stlsoft_ns_qual(ss_bool_t) ws_bool_t;
00468 typedef DWORD ws_dword_t;
00469 typedef stlsoft_ns_qual(ss_size_t) ws_size_t;
00470 typedef stlsoft_ns_qual(ss_ptrdiff_t) ws_ptrdiff_t;
00471 typedef stlsoft_ns_qual(ss_streampos_t) ws_streampos_t;
00472 typedef stlsoft_ns_qual(ss_streamoff_t) ws_streamoff_t;
00473
00474 #endif
00475
00476
00477
00478
00479
00480
00481
00482
00483
00484 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00485
00486 #define ws_true_v ss_true_v
00487 #define ws_false_v ss_false_v
00488
00489 #endif
00490
00491
00492
00493
00494 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00495
00496 # define wtlstl_throw_0() stlsoft_throw_0()
00497 # define wtlstl_throw_1(x1) stlsoft_throw_1(x1)
00498 # define wtlstl_throw_2(x1, x2) stlsoft_throw_2(x1, x2)
00499 # define wtlstl_throw_3(x1, x2, x3) stlsoft_throw_3(x1, x2, x3)
00500 # define wtlstl_throw_4(x1, x2, x3, x4) stlsoft_throw_4(x1, x2, x3, x4)
00501 # define wtlstl_throw_5(x1, x2, x3, x4, x5) stlsoft_throw_5(x1, x2, x3, x4, x5)
00502 # define wtlstl_throw_6(x1, x2, x3, x4, x5, x6) stlsoft_throw_6(x1, x2, x3, x4, x5, x6)
00503 # define wtlstl_throw_7(x1, x2, x3, x4, x5, x6, x7) stlsoft_throw_7(x1, x2, x3, x4, x5, x6, x7)
00504 # define wtlstl_throw_8(x1, x2, x3, x4, x5, x6, x7, x8) stlsoft_throw_8(x1, x2, x3, x4, x5, x6, x7, x8)
00505 #endif
00506
00507 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00508 # define WTLSTL_NUM_ELEMENTS(ar) STLSOFT_NUM_ELEMENTS(ar)
00509 # define wtlstl_num_elements(ar) WTLSTL_NUM_ELEMENTS(ar)
00510 #endif
00511
00516 #define wtlstl_destroy_instance(t, _type, p) STLSOFT_DESTROY_INSTANCE(t, _type, p)
00517
00522 #define wtlstl_gen_opaque(_htype) STLSOFT_GEN_OPAQUE(_htype)
00523
00524
00525
00526 #ifndef _WTLSTL_NO_NAMESPACE
00527 # if defined(_STLSOFT_NO_NAMESPACE) || \
00528 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00529 }
00530 # else
00531 }
00532 }
00533 namespace wtlstl = ::stlsoft::wtlstl_project;
00534 # endif
00535 #endif
00536
00537
00538
00539
00540
00541 #ifdef STLSOFT_CF_PRAGMA_ONCE_SUPPORT
00542 # pragma once
00543 #endif
00544
00545
00546
00547 #endif
00548
00549