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 #ifndef __STLSOFT_DOCUMENTATION_SKIP_SECTION
00047 # define ATLSTL_VER_H_ATLSTL_MAJOR 2
00048 # define ATLSTL_VER_H_ATLSTL_MINOR 0
00049 # define ATLSTL_VER_H_ATLSTL_REVISION 1
00050 # define ATLSTL_VER_H_ATLSTL_EDIT 68
00051 #endif
00052
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
00132
00135
00138
00141
00142 #define _ATLSTL_VER_MAJOR 1
00143 #define _ATLSTL_VER_MINOR 3
00144 #define _ATLSTL_VER_REVISION 1
00145 #ifndef __STLSOFT_DOCUMENTATION_SKIP_SECTION
00146 # define _ATLSTL_VER_1_0_1 0x00010001
00147 # define _ATLSTL_VER_1_1_1 0x00010101
00148 # define _ATLSTL_VER_1_2_1 0x00010201
00149 # define _ATLSTL_VER_1_2_2 0x00010202
00150 # define _ATLSTL_VER_1_2_3 0x00010203
00151 # define _ATLSTL_VER_1_2_4 0x00010204
00152 # define _ATLSTL_VER_1_2_5 0x00010205
00153 # define _ATLSTL_VER_1_2_6 0x00010206
00154 # define _ATLSTL_VER_1_2_7 0x00010207
00155 # define _ATLSTL_VER_1_2_8 0x00010208
00156 # define _ATLSTL_VER_1_3_1 0x00010301
00157 #endif
00158
00159 #define _ATLSTL_VER _ATLSTL_VER_1_3_1
00160
00161
00162
00163
00164
00165 #ifndef STLSOFT_INCL_H_STLSOFT
00166 # include "stlsoft.h"
00167 #endif
00168
00169 #if defined(__STLSOFT_COMPILER_IS_BORLAND)
00170 # pragma warn -8013
00171 # pragma warn -8084
00172 #endif
00173
00174 #include <atlbase.h>
00175
00176 #if defined(__STLSOFT_COMPILER_IS_BORLAND)
00177 # pragma warn .8013
00178 # pragma warn .8084
00179 #endif
00180
00181 #ifdef STLSOFT_UNITTEST
00182 # include <stdio.h>
00183 #endif
00184
00185
00186
00187
00188
00189 #if !defined(_STLSOFT_VER_1_5_1) || \
00190 _STLSOFT_VER < _STLSOFT_VER_1_5_1
00191 # error This version of the ATLSTL libraries requires STLSoft version 1.5.1 or later
00192 #endif
00193
00194
00195
00196
00197
00198
00199
00200
00201
00202
00203
00204
00205
00206 #if defined(__STLSOFT_COMPILER_IS_BORLAND)
00207
00208 # if __BORLANDC__ < 0x0550
00209 # error Versions of Borland C++ prior to 5.5 are not supported by the ATLSTL libraries
00210 # endif
00211
00212 #elif defined(__STLSOFT_COMPILER_IS_DMC)
00213
00214 # if __DMC__ < 0x0826
00215 # error Versions of Digital Mars C/C++ prior to 8.26 are not supported by the ATLSTL libraries
00216 # endif
00217
00218 #elif defined(__STLSOFT_COMPILER_IS_INTEL)
00219
00220 # if (__INTEL_COMPILER < 600)
00221 # error Versions of Intel C++ prior to 6.0 are not supported by the ATLSTL libraries
00222 # endif
00223
00224 #elif defined(__STLSOFT_COMPILER_IS_MWERKS)
00225
00226 # if (__MWERKS__ & 0xFF00) < 0x2400
00227 # error Versions of Metrowerks CodeWarrior C++ prior to 7.0 are not supported by the ATLSTL libraries
00228 # endif
00229
00230 #elif defined(__STLSOFT_COMPILER_IS_MSVC)
00231
00232 # if _MSC_VER < 1100
00233 # error Versions of Visual C++ prior to 5.0 are not supported by the ATLSTL libraries
00234 # endif
00235
00236 #else
00237
00238 # ifdef _STLSOFT_FORCE_ANY_COMPILER
00239 # define _ATLSTL_COMPILER_IS_UNKNOWN
00240 # ifdef _STLSOFT_COMPILE_VERBOSE
00241 # pragma message("Compiler is unknown to ATLSTL")
00242 # endif
00243 # else
00244 # error Currently only Borland C++, Digital Mars C/C++, Intel C/C++, Metrowerks CodeWarrior and Visual C++ compilers are supported by the ATLSTL libraries
00245 # endif
00246 #endif
00247
00248
00249
00250
00251
00252
00253
00257 #define atlstl_assert(expr) stlsoft_assert(expr)
00258
00263 #define atlstl_message_assert(msg, expr) stlsoft_message_assert(msg, expr)
00264
00268 #define atlstl_static_assert(expr) stlsoft_static_assert(expr)
00269
00270
00271
00272
00273
00274
00275
00276
00277
00278
00279
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 #ifdef _STLSOFT_NO_NAMESPACES
00318 # define _ATLSTL_NO_NAMESPACES
00319 #endif
00320
00321
00322 #ifdef _ATLSTL_NO_NAMESPACES
00323 # define _ATLSTL_NO_NAMESPACE
00324 #endif
00325
00326 #ifndef _ATLSTL_NO_NAMESPACE
00327 # if defined(_STLSOFT_NO_NAMESPACE) || \
00328 defined(__STLSOFT_DOCUMENTATION_SKIP_SECTION)
00329
00332 namespace atlstl
00333 {
00334 # else
00335
00336
00337 namespace stlsoft
00338 {
00339
00340 namespace atlstl_project
00341 {
00342
00343 # endif
00344 #else
00345 stlsoft_ns_using(move_lhs_from_rhs)
00346 #endif
00347
00350
00353
00354 #ifndef _ATLSTL_NO_NAMESPACE
00355 # define atlstl_ns_qual(x) ::atlstl::x
00356 # define atlstl_ns_using(x) using ::atlstl::x;
00357 #else
00358 # define atlstl_ns_qual(x) x
00359 # define atlstl_ns_using(x)
00360 #endif
00361
00364
00367
00368 #ifdef __STLSOFT_CF_std_NAMESPACE
00369 # define atlstl_ns_qual_std(x) ::std::x
00370 # define atlstl_ns_using_std(x) using ::std::x;
00371 #else
00372 # define atlstl_ns_qual_std(x) x
00373 # define atlstl_ns_using_std(x)
00374 #endif
00375
00378
00381
00382 #ifndef ATL_NO_NAMESPACE
00383 # define atlstl_ns_qual_atl(x) ::ATL::x
00384 # define atlstl_ns_using_atl(x) using ::ATL::x;
00385 #else
00386 # define atlstl_ns_qual_atl(x) x
00387 # define atlstl_ns_using_atl(x)
00388 #endif
00389
00390
00391
00392
00393
00394
00395
00396
00397 typedef stlsoft_ns_qual(ss_char_a_t) as_char_a_t;
00398 typedef stlsoft_ns_qual(ss_char_w_t) as_char_w_t;
00399 typedef stlsoft_ns_qual(ss_sint8_t) as_sint8_t;
00400 typedef stlsoft_ns_qual(ss_uint8_t) as_uint8_t;
00401 typedef stlsoft_ns_qual(ss_int16_t) as_int16_t;
00402 typedef stlsoft_ns_qual(ss_sint16_t) as_sint16_t;
00403 typedef stlsoft_ns_qual(ss_uint16_t) as_uint16_t;
00404 typedef stlsoft_ns_qual(ss_int32_t) as_int32_t;
00405 typedef stlsoft_ns_qual(ss_sint32_t) as_sint32_t;
00406 typedef stlsoft_ns_qual(ss_uint32_t) as_uint32_t;
00407 #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
00408 typedef stlsoft_ns_qual(ss_int64_t) as_int64_t;
00409 typedef stlsoft_ns_qual(ss_sint64_t) as_sint64_t;
00410 typedef stlsoft_ns_qual(ss_uint64_t) as_uint64_t;
00411 #endif
00412 typedef stlsoft_ns_qual(ss_int_t) as_int_t;
00413 typedef stlsoft_ns_qual(ss_sint_t) as_sint_t;
00414 typedef stlsoft_ns_qual(ss_uint_t) as_uint_t;
00415 typedef stlsoft_ns_qual(ss_long_t) as_long_t;
00416 typedef stlsoft_ns_qual(ss_bool_t) as_bool_t;
00417 typedef DWORD as_dword_t;
00418 typedef stlsoft_ns_qual(ss_size_t) as_size_t;
00419 typedef stlsoft_ns_qual(ss_ptrdiff_t) as_ptrdiff_t;
00420 typedef stlsoft_ns_qual(ss_streampos_t) as_streampos_t;
00421 typedef stlsoft_ns_qual(ss_streamoff_t) as_streamoff_t;
00422
00423 #ifndef __STLSOFT_DOCUMENTATION_SKIP_SECTION
00424
00425
00426
00427
00428
00429
00430
00431
00432 #define as_true_v ss_true_v
00433 #define as_false_v ss_false_v
00434
00435 #endif
00436
00437
00438
00439
00440 #ifndef __STLSOFT_DOCUMENTATION_SKIP_SECTION
00441
00442 #define atlstl_throw_0() stlsoft_throw_0()
00443 #define atlstl_throw_1(x1) stlsoft_throw_1(x1)
00444 #define atlstl_throw_2(x1, x2) stlsoft_throw_2(x1, x2)
00445 #define atlstl_throw_3(x1, x2, x3) stlsoft_throw_3(x1, x2, x3)
00446 #define atlstl_throw_4(x1, x2, x3, x4) stlsoft_throw_4(x1, x2, x3, x4)
00447 #define atlstl_throw_5(x1, x2, x3, x4, x5) stlsoft_throw_5(x1, x2, x3, x4, x5)
00448 #define atlstl_throw_6(x1, x2, x3, x4, x5, x6) stlsoft_throw_6(x1, x2, x3, x4, x5, x6)
00449 #define atlstl_throw_7(x1, x2, x3, x4, x5, x6, x7) stlsoft_throw_7(x1, x2, x3, x4, x5, x6, x7)
00450 #define atlstl_throw_8(x1, x2, x3, x4, x5, x6, x7, x8) stlsoft_throw_8(x1, x2, x3, x4, x5, x6, x7, x8)
00451 #endif
00452
00454 #define atlstl_num_elements(ar) stlsoft_num_elements(ar)
00455
00457 #define atlstl_destroy_instance(t, _type, p) stlsoft_destroy_instance(t, _type, p)
00458
00460 #define atlstl_gen_opaque(_htype) stlsoft_gen_opaque(_htype)
00461
00462
00463
00464
00465
00469 #if _ATL_VER < 0x0700
00470 inline as_bool_t InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
00471 {
00472 return ( ((as_int32_t*) &rguid1)[0] == ((as_int32_t*) &rguid2)[0] &&
00473 ((as_int32_t*) &rguid1)[1] == ((as_int32_t*) &rguid2)[1] &&
00474 ((as_int32_t*) &rguid1)[2] == ((as_int32_t*) &rguid2)[2] &&
00475 ((as_int32_t*) &rguid1)[3] == ((as_int32_t*) &rguid2)[3]);
00476 }
00477 #endif
00478
00479
00480
00481
00482
00483 #ifdef STLSOFT_UNITTEST
00484
00485 namespace unittest
00486 {
00487 ss_bool_t test_atlstl(unittest_reporter *r)
00488 {
00489 using stlsoft::unittest::unittest_initialiser;
00490
00491 ss_bool_t bSuccess = true;
00492 char szVersion[101];
00493 unsigned atlverHi = HIBYTE(_ATL_VER);
00494 unsigned atlverLo = HIBYTE(_ATL_VER);
00495
00496 sprintf(szVersion, "ATL %u.%u", atlverHi, atlverLo);
00497
00498 unittest_initialiser init(r, "ATLSTL", szVersion, __FILE__);
00499
00500 return bSuccess;
00501 }
00502
00503 unittest_registrar unittest_stlsoft_string_tokeniser(test_atlstl);
00504
00505 }
00506
00507 #endif
00508
00509
00510
00511
00512
00513
00514
00515
00516
00517
00518
00519
00520 #endif
00521
00522
00523
00524
00525
00526