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 ATLSTL_INCL_ATLSTL_HPP_ATLSTL
00043 #define ATLSTL_INCL_ATLSTL_HPP_ATLSTL
00044 #define ATLSTL_INCL_H_ATLSTL
00045
00046
00047 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00048 # define ATLSTL_VER_ATLSTL_HPP_ATLSTL_MAJOR 3
00049 # define ATLSTL_VER_ATLSTL_HPP_ATLSTL_MINOR 4
00050 # define ATLSTL_VER_ATLSTL_HPP_ATLSTL_REVISION 3
00051 # define ATLSTL_VER_ATLSTL_HPP_ATLSTL_EDIT 105
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 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00110 # define _ATLSTL_VER_1_0_1 0x00010001
00111 # define _ATLSTL_VER_1_1_1 0x00010101
00112 # define _ATLSTL_VER_1_2_1 0x00010201
00113 # define _ATLSTL_VER_1_2_2 0x00010202
00114 # define _ATLSTL_VER_1_2_3 0x00010203
00115 # define _ATLSTL_VER_1_2_4 0x00010204
00116 # define _ATLSTL_VER_1_2_5 0x00010205
00117 # define _ATLSTL_VER_1_2_6 0x00010206
00118 # define _ATLSTL_VER_1_2_7 0x00010207
00119 # define _ATLSTL_VER_1_2_8 0x00010208
00120 # define _ATLSTL_VER_1_3_1 0x00010301
00121 # define _ATLSTL_VER_1_4_1 0x00010401
00122 # define _ATLSTL_VER_1_4_2 0x00010402
00123 # define _ATLSTL_VER_1_4_3 0x00010403
00124 # define _ATLSTL_VER_1_4_4 0x00010404
00125 # define _ATLSTL_VER_1_5_1 0x00010501
00126 # define _ATLSTL_VER_1_5_2 0x00010502
00127 # define _ATLSTL_VER_1_6_1 0x00010601
00128 # define _ATLSTL_VER_1_6_2 0x00010602
00129 #endif
00130
00131 #define _ATLSTL_VER_MAJOR 1
00132 #define _ATLSTL_VER_MINOR 6
00133 #define _ATLSTL_VER_REVISION 2
00134 #define _ATLSTL_VER _ATLSTL_VER_1_6_2
00135
00136
00137
00138
00139
00140 #ifndef STLSOFT_INCL_STLSOFT_H_STLSOFT
00141 # include <stlsoft/stlsoft.h>
00142 #endif
00143
00144 #if defined(STLSOFT_COMPILER_IS_BORLAND)
00145 # pragma warn -8013
00146 # pragma warn -8084
00147 #endif
00148
00149 #ifndef STLSOFT_INCL_H_ATLBASE
00150 # define STLSOFT_INCL_H_ATLBASE
00151 # include <atlbase.h>
00152 #endif
00153
00154 #if defined(STLSOFT_COMPILER_IS_BORLAND)
00155 # pragma warn .8013
00156 # pragma warn .8084
00157 #endif
00158
00159 #ifdef STLSOFT_UNITTEST
00160 extern CComModule _Module;
00161
00162 # include <stdio.h>
00163 #endif
00164
00165
00166
00167
00168
00169 #if !defined(_STLSOFT_VER_1_9_1_B41) || \
00170 _STLSOFT_VER < _STLSOFT_VER_1_9_1_B41
00171 # error This version of the ATLSTL libraries requires STLSoft version 1.9.1 beta 41, or later
00172 #endif
00173
00174
00175
00176
00177
00178
00179
00180
00181
00182
00183
00184
00185
00186 #if defined(STLSOFT_COMPILER_IS_BORLAND)
00187
00188 # if __BORLANDC__ < 0x0550
00189 # error Versions of Borland C++ prior to 5.5 are not supported by the ATLSTL libraries
00190 # endif
00191
00192 #elif defined(STLSOFT_COMPILER_IS_DMC)
00193
00194 # if __DMC__ < 0x0826
00195 # error Versions of Digital Mars C/C++ prior to 8.26 are not supported by the ATLSTL libraries
00196 # endif
00197
00198 #elif defined(STLSOFT_COMPILER_IS_INTEL)
00199
00200 # if (__INTEL_COMPILER < 600)
00201 # error Versions of Intel C++ prior to 6.0 are not supported by the ATLSTL libraries
00202 # endif
00203
00204 #elif defined(STLSOFT_COMPILER_IS_MWERKS)
00205
00206 # if (__MWERKS__ & 0xFF00) < 0x2400
00207 # error Versions of Metrowerks CodeWarrior C++ prior to 7.0 are not supported by the ATLSTL libraries
00208 # endif
00209
00210 #elif defined(STLSOFT_COMPILER_IS_MSVC)
00211
00212 # if _MSC_VER < 1100
00213 # error Versions of Visual C++ prior to 5.0 are not supported by the ATLSTL libraries
00214 # endif
00215
00216 #else
00217
00218 # ifdef _STLSOFT_FORCE_ANY_COMPILER
00219 # define _ATLSTL_COMPILER_IS_UNKNOWN
00220 # ifdef _STLSOFT_COMPILE_VERBOSE
00221 # pragma message("Compiler is unknown to ATLSTL")
00222 # endif
00223 # else
00224 # error Currently only Borland C++, Digital Mars C/C++, Intel C/C++, Metrowerks CodeWarrior and Visual C++ compilers are supported by the ATLSTL libraries
00225 # endif
00226 #endif
00227
00228
00229
00230
00231
00232
00233
00240 #define ATLSTL_ASSERT(expr) STLSOFT_ASSERT(expr)
00241
00249 #define ATLSTL_MESSAGE_ASSERT(msg, expr) STLSOFT_MESSAGE_ASSERT(msg, expr)
00250
00257 #define ATLSTL_STATIC_ASSERT(expr) STLSOFT_STATIC_ASSERT(expr)
00258
00259
00260
00261 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00262 # define atlstl_assert(expr) ATLSTL_ASSERT(expr)
00263 # define atlstl_message_assert(msg, expr) ATLSTL_MESSAGE_ASSERT(msg, expr)
00264 # define atlstl_static_assert(expr) ATLSTL_STATIC_ASSERT(expr)
00265 #endif
00266
00267
00268
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 #ifdef _STLSOFT_NO_NAMESPACES
00315 # define _ATLSTL_NO_NAMESPACES
00316 #endif
00317
00318
00319 #ifdef _ATLSTL_NO_NAMESPACES
00320 # define _ATLSTL_NO_NAMESPACE
00321 #endif
00322
00323 #ifndef _ATLSTL_NO_NAMESPACE
00324 # if defined(_STLSOFT_NO_NAMESPACE) || \
00325 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00326
00357 namespace atlstl
00358 {
00359 # else
00360
00361
00362 namespace stlsoft
00363 {
00364
00365 namespace atlstl_project
00366 {
00367
00368 # endif
00369 #else
00370 stlsoft_ns_using(move_lhs_from_rhs)
00371 #endif
00372
00381 #ifndef _ATLSTL_NO_NAMESPACE
00382 # define atlstl_ns_qual(x) ::atlstl::x
00383 # define atlstl_ns_using(x) using ::atlstl::x;
00384 #else
00385 # define atlstl_ns_qual(x) x
00386 # define atlstl_ns_using(x)
00387 #endif
00388
00397 #ifdef STLSOFT_CF_std_NAMESPACE
00398 # define atlstl_ns_qual_std(x) ::std::x
00399 # define atlstl_ns_using_std(x) using ::std::x;
00400 #else
00401 # define atlstl_ns_qual_std(x) x
00402 # define atlstl_ns_using_std(x)
00403 #endif
00404
00413 #ifndef ATL_NO_NAMESPACE
00414 # define atlstl_ns_qual_atl(x) ::ATL::x
00415 # define atlstl_ns_using_atl(x) using ::ATL::x;
00416 #else
00417 # define atlstl_ns_qual_atl(x) x
00418 # define atlstl_ns_using_atl(x)
00419 #endif
00420
00421
00422
00423
00424
00425
00426
00427
00428 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00429
00430 typedef stlsoft_ns_qual(ss_char_a_t) as_char_a_t;
00431 typedef stlsoft_ns_qual(ss_char_w_t) as_char_w_t;
00432 typedef stlsoft_ns_qual(ss_sint8_t) as_sint8_t;
00433 typedef stlsoft_ns_qual(ss_uint8_t) as_uint8_t;
00434 typedef stlsoft_ns_qual(ss_int16_t) as_int16_t;
00435 typedef stlsoft_ns_qual(ss_sint16_t) as_sint16_t;
00436 typedef stlsoft_ns_qual(ss_uint16_t) as_uint16_t;
00437 typedef stlsoft_ns_qual(ss_int32_t) as_int32_t;
00438 typedef stlsoft_ns_qual(ss_sint32_t) as_sint32_t;
00439 typedef stlsoft_ns_qual(ss_uint32_t) as_uint32_t;
00440 #ifdef STLSOFT_CF_64BIT_INT_SUPPORT
00441 typedef stlsoft_ns_qual(ss_int64_t) as_int64_t;
00442 typedef stlsoft_ns_qual(ss_sint64_t) as_sint64_t;
00443 typedef stlsoft_ns_qual(ss_uint64_t) as_uint64_t;
00444 #endif
00445 typedef stlsoft_ns_qual(ss_int_t) as_int_t;
00446 typedef stlsoft_ns_qual(ss_sint_t) as_sint_t;
00447 typedef stlsoft_ns_qual(ss_uint_t) as_uint_t;
00448 typedef stlsoft_ns_qual(ss_long_t) as_long_t;
00449 typedef stlsoft_ns_qual(ss_bool_t) as_bool_t;
00450 typedef DWORD as_dword_t;
00451 typedef stlsoft_ns_qual(ss_size_t) as_size_t;
00452 typedef stlsoft_ns_qual(ss_ptrdiff_t) as_ptrdiff_t;
00453 typedef stlsoft_ns_qual(ss_streampos_t) as_streampos_t;
00454 typedef stlsoft_ns_qual(ss_streamoff_t) as_streamoff_t;
00455
00456 #endif
00457
00458
00459
00460
00461
00462
00463
00464
00465
00466 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00467
00468 #define as_true_v ss_true_v
00469 #define as_false_v ss_false_v
00470
00471 #endif
00472
00473
00474
00475
00476 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00477
00478 #define atlstl_throw_0() stlsoft_throw_0()
00479 #define atlstl_throw_1(x1) stlsoft_throw_1(x1)
00480 #define atlstl_throw_2(x1, x2) stlsoft_throw_2(x1, x2)
00481 #define atlstl_throw_3(x1, x2, x3) stlsoft_throw_3(x1, x2, x3)
00482 #define atlstl_throw_4(x1, x2, x3, x4) stlsoft_throw_4(x1, x2, x3, x4)
00483 #define atlstl_throw_5(x1, x2, x3, x4, x5) stlsoft_throw_5(x1, x2, x3, x4, x5)
00484 #define atlstl_throw_6(x1, x2, x3, x4, x5, x6) stlsoft_throw_6(x1, x2, x3, x4, x5, x6)
00485 #define atlstl_throw_7(x1, x2, x3, x4, x5, x6, x7) stlsoft_throw_7(x1, x2, x3, x4, x5, x6, x7)
00486 #define atlstl_throw_8(x1, x2, x3, x4, x5, x6, x7, x8) stlsoft_throw_8(x1, x2, x3, x4, x5, x6, x7, x8)
00487 #endif
00488
00489 #ifndef STLSOFT_DOCUMENTATION_SKIP_SECTION
00490 # define ATLSTL_NUM_ELEMENTS(ar) STLSOFT_NUM_ELEMENTS(ar)
00491 # define atlstl_num_elements(ar) ATLSTL_NUM_ELEMENTS(ar)
00492 #endif
00493
00498 #define atlstl_destroy_instance(t, _type, p) STLSOFT_DESTROY_INSTANCE(t, _type, p)
00499
00504 #define atlstl_gen_opaque(_htype) STLSOFT_GEN_OPAQUE(_htype)
00505
00506
00507
00508
00509
00513 #if _ATL_VER < 0x0700
00514 inline as_bool_t InlineIsEqualGUID(REFGUID rguid1, REFGUID rguid2)
00515 {
00516 return ( ((as_int32_t*) &rguid1)[0] == ((as_int32_t*) &rguid2)[0] &&
00517 ((as_int32_t*) &rguid1)[1] == ((as_int32_t*) &rguid2)[1] &&
00518 ((as_int32_t*) &rguid1)[2] == ((as_int32_t*) &rguid2)[2] &&
00519 ((as_int32_t*) &rguid1)[3] == ((as_int32_t*) &rguid2)[3]);
00520 }
00521 #endif
00522
00523
00524
00525
00526
00527 #ifdef STLSOFT_UNITTEST
00528 # include "./unittest/atlstl_unittest_.h"
00529 #endif
00530
00531
00532
00533 #ifndef _ATLSTL_NO_NAMESPACE
00534 # if defined(_STLSOFT_NO_NAMESPACE) || \
00535 defined(STLSOFT_DOCUMENTATION_SKIP_SECTION)
00536 }
00537 # else
00538 }
00539 }
00540 namespace atlstl = ::stlsoft::atlstl_project;
00541 # endif
00542 #endif
00543
00544
00545
00546
00547
00548 #ifdef STLSOFT_CF_PRAGMA_ONCE_SUPPORT
00549 # pragma once
00550 #endif
00551
00552
00553
00554 #endif
00555
00556