NCBI C++ Toolkit Cross Reference

  C++/include/serial/serialimpl.hpp


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840
#ifndef SERIALIMPL__HPP #define SERIALIMPL__HPP /* $Id: serialimpl.hpp 78511 2017-06-26 16:58:28Z gouriano $ * =========================================================================== * * PUBLIC DOMAIN NOTICE * National Center for Biotechnology Information * * This software/database is a "United States Government Work" under the * terms of the United States Copyright Act. It was written as part of * the author's official duties as a United States Government employee and * thus cannot be copyrighted. This software/database is freely available * to the public for use. The National Library of Medicine and the U.S. * Government have not placed any restriction on its use or reproduction. * * Although all reasonable efforts have been taken to ensure the accuracy * and reliability of the software and data, the NLM and the U.S. * Government do not and cannot warrant the performance or results that * may be obtained by using this software or data. The NLM and the U.S. * Government disclaim all warranties, express or implied, including * warranties of performance, merchantability or fitness for any particular * purpose. * * Please cite the author in any work or product based on this material. * * =========================================================================== * * Author: Eugene Vasilchenko * * File Description: * File to be included in modules implementing GetTypeInfo methods. * */ #include <corelib/ncbistd.hpp> #include <corelib/ncbiobj.hpp> #include <corelib/ncbimtx.hpp> #include <serial/impl/stltypes.hpp> #include <serial/impl/enumerated.hpp> #include <serial/impl/classinfo.hpp> #include <serial/impl/choiceptr.hpp> #include <serial/impl/aliasinfo.hpp> #include <serial/impl/classinfohelper.hpp> #include <serial/impl/objstrasnb.hpp> /** @addtogroup GenClassSupport * * @{ */ struct valnode; BEGIN_NCBI_SCOPE // forward declaration class CMemberInfo; class CClassTypeInfoBase; class CClassTypeInfo; class CChoiceTypeInfo; class CDelayBufferData; // // define type info getter for standard classes template<typename T> inline TTypeInfoGetter GetStdTypeInfoGetter(const T* ) { return &CStdTypeInfo<T>::GetTypeInfo; } // some compilers cannot resolve overloading by // (char* const*) and (const char* const*) in template // so we'll add explicit implementations: inline TTypeInfoGetter GetStdTypeInfoGetter(char* const* ) { return &CStdTypeInfo<char*>::GetTypeInfo; } inline TTypeInfoGetter GetStdTypeInfoGetter(const char* const* ) { return &CStdTypeInfo<const char*>::GetTypeInfo; } // macros used in ADD_*_MEMBER macros to specify complex type // example: ADD_MEMBER(member, STL_set, (STD, (string))) #define SERIAL_TYPE(TypeMacro) NCBI_NAME2(SERIAL_TYPE_,TypeMacro) #define SERIAL_REF(TypeMacro) NCBI_NAME2(SERIAL_REF_,TypeMacro) #define SERIAL_TYPE_CLASS(ClassName) ClassName #define SERIAL_REF_CLASS(ClassName) &ClassName::GetTypeInfo #define SERIAL_TYPE_STD(CType) CType #define SERIAL_REF_STD(CType) &NCBI_NS_NCBI::CStdTypeInfo<CType>::GetTypeInfo #define SERIAL_TYPE_StringStore() NCBI_NS_STD::string #define SERIAL_REF_StringStore() \ &NCBI_NS_NCBI::CStdTypeInfo<string>::GetTypeInfoStringStore #define SERIAL_TYPE_null() bool #define SERIAL_REF_null() \ &NCBI_NS_NCBI::CStdTypeInfo<bool>::GetTypeInfoNullBool #define SERIAL_TYPE_CStringUTF8() NCBI_NS_NCBI::CStringUTF8 #define SERIAL_REF_CStringUTF8() \ &NCBI_NS_NCBI::CStdTypeInfo<NCBI_NS_NCBI::utf8_string_type>::GetTypeInfo #define SERIAL_TYPE_BigInt() Int8 #define SERIAL_REF_BigInt() \ &NCBI_NS_NCBI::CStdTypeInfo<NCBI_NS_NCBI::bigint_type>::GetTypeInfo #define SERIAL_TYPE_ENUM(CType, EnumName) CType #define SERIAL_REF_ENUM(CType, EnumName) \ NCBI_NS_NCBI::CreateEnumeratedTypeInfo(CType(0), ENUM_METHOD_NAME(EnumName)()) #define SERIAL_TYPE_ENUM_IN(CType, CppContext, EnumName) CppContext CType #define SERIAL_REF_ENUM_IN(CType, CppContext, EnumName) \ NCBI_NS_NCBI::CreateEnumeratedTypeInfo(CppContext CType(0), CppContext ENUM_METHOD_NAME(EnumName)()) #define SERIAL_TYPE_POINTER(TypeMacro,TypeMacroArgs) \ SERIAL_TYPE(TypeMacro)TypeMacroArgs* #define SERIAL_REF_POINTER(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CPointerTypeInfo::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_multiset(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::multiset<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_multiset(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_multiset<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_set(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::set<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_set(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_set<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_multiset2(TypeMacro,TypeMacroArgs,ComparatorType) \ NCBI_NS_STD::multiset<SERIAL_TYPE(TypeMacro)TypeMacroArgs, ComparatorType > #define SERIAL_REF_STL_multiset2(TypeMacro,TypeMacroArgs,ComparatorType) \ &NCBI_NS_NCBI::CStlClassInfo_multiset2<SERIAL_TYPE(TypeMacro)TypeMacroArgs,ComparatorType >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_set2(TypeMacro,TypeMacroArgs,ComparatorType) \ NCBI_NS_STD::set<SERIAL_TYPE(TypeMacro)TypeMacroArgs,ComparatorType > #define SERIAL_REF_STL_set2(TypeMacro,TypeMacroArgs,ComparatorType) \ &NCBI_NS_NCBI::CStlClassInfo_set2<SERIAL_TYPE(TypeMacro)TypeMacroArgs,ComparatorType >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_multimap(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs) \ NCBI_NS_STD::multimap<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs > #define SERIAL_REF_STL_multimap(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs) \ CTypeRef(&NCBI_NS_NCBI::CStlClassInfo_multimap<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs >::GetTypeInfo, SERIAL_REF(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_REF(ValueTypeMacro)ValueTypeMacroArgs) #define SERIAL_TYPE_STL_map(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs) \ NCBI_NS_STD::map<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs > #define SERIAL_REF_STL_map(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs) \ CTypeRef(&NCBI_NS_NCBI::CStlClassInfo_map<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs >::GetTypeInfo, SERIAL_REF(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_REF(ValueTypeMacro)ValueTypeMacroArgs) #define SERIAL_TYPE_STL_multimap3(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs,ComparatorType) \ NCBI_NS_STD::multimap<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs, ComparatorType > #define SERIAL_REF_STL_multimap3(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs,ComparatorType) \ CTypeRef(NCBI_NS_NCBI::CStlClassInfo_multimap3<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs,ComparatorType >::GetTypeInfo, SERIAL_REF(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_REF(ValueTypeMacro)ValueTypeMacroArgs) #define SERIAL_TYPE_STL_map3(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs,ComparatorType) \ NCBI_NS_STD::map<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs, ComparatorType > #define SERIAL_REF_STL_map3(KeyTypeMacro,KeyTypeMacroArgs,ValueTypeMacro,ValueTypeMacroArgs,ComparatorType) \ CTypeRef(NCBI_NS_NCBI::CStlClassInfo_map3<SERIAL_TYPE(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_TYPE(ValueTypeMacro)ValueTypeMacroArgs,ComparatorType >::GetTypeInfo, SERIAL_REF(KeyTypeMacro)KeyTypeMacroArgs,SERIAL_REF(ValueTypeMacro)ValueTypeMacroArgs) #define SERIAL_TYPE_STL_list(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::list<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_list(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_list<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_list_set(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::list<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_list_set(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_list<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetSetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_vector(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::vector<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_vector(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_vector<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_vector_set(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::vector<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_vector_set(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_vector<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetSetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_CHAR_vector(CharType) NCBI_NS_STD::vector<CharType> #define SERIAL_REF_STL_CHAR_vector(CharType) \ &NCBI_NS_NCBI::CStdTypeInfo< SERIAL_TYPE(STL_CHAR_vector)(CharType) >::GetTypeInfo #define SERIAL_TYPE_STL_auto_ptr(TypeMacro,TypeMacroArgs) \ NCBI_NS_STD::auto_ptr<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_auto_ptr(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CStlClassInfo_auto_ptr<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_AutoPtr(TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AutoPtr<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_AutoPtr(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CAutoPtrTypeInfo<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_CRef(TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::CRef<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_CRef(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CRefTypeInfo<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_STL_CConstRef(TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::CConstRef<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_STL_CConstRef(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CConstRefTypeInfo<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::GetTypeInfo, SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_TYPE_CHOICE(TypeMacro,TypeMacroArgs) \ SERIAL_TYPE(TypeMacro)TypeMacroArgs #define SERIAL_REF_CHOICE(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CChoicePointerTypeInfo::GetTypeInfo, \ SERIAL_REF(TypeMacro)TypeMacroArgs //#define SERIAL_TYPE_CHOICERef(ClassName) NCBI_NS_NCBI::CRef<ClassName> //#define SERIAL_REF_CHOICERef(ClassName) &ClassName::GetChoiceRefTypeInfo #define SERIAL_TYPE_CHOICERef(TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::CRef<SERIAL_TYPE(TypeMacro)TypeMacroArgs > #define SERIAL_REF_CHOICERef(TypeMacro,TypeMacroArgs) \ &NCBI_NS_NCBI::CChoicePointerTypeInfo::GetTypeInfo, \ SERIAL_REF(TypeMacro)TypeMacroArgs template<typename T> struct Check { static const void* Ptr(const T* member) { return member; } static const void* PtrPtr(T*const* member) { return member; } static const void* ObjectPtrPtr(T*const* member) { return member; } static const void* ObjectPtrPtr(CSerialObject*const* member) { return member; } private: Check(void); ~Check(void); Check(const Check<T>&); Check<T>& operator=(const Check<T>&); }; // Functions preventing memory leaks due to undestroyed type info objects NCBI_XSERIAL_EXPORT void RegisterEnumTypeValuesObject(CEnumeratedTypeValues* object); NCBI_XSERIAL_EXPORT void RegisterTypeInfoObject(CTypeInfo* object); template<typename T> inline TTypeInfo EnumTypeInfo(const T* member, const CEnumeratedTypeValues* enumInfo) { return CreateEnumeratedTypeInfo(*member, enumInfo); } NCBI_XSERIAL_EXPORT SSystemMutex& GetTypeInfoMutex(void); // internal macros for implementing BEGIN_*_INFO and ADD_*_MEMBER #define DECLARE_BASE_OBJECT(ClassName) ClassName* base = 0 #define BASE_OBJECT() static_cast<const CClass_Base*>(base) #define MEMBER_PTR(MemberName) &BASE_OBJECT()->MemberName #define CLASS_PTR(ClassName) static_cast<const ClassName*>(BASE_OBJECT()) #define BEGIN_BASE_TYPE_INFO(ClassName,BaseClassName,Method,InfoType,Code) \ const NCBI_NS_NCBI::CTypeInfo* Method(void) \ { \ typedef ClassName CClass; \ typedef BaseClassName CClass_Base; \ static InfoType* volatile s_info = 0; \ InfoType* info = s_info; \ if ( !info ) { \ NCBI_NS_NCBI::CMutexGuard GUARD(NCBI_NS_NCBI::GetTypeInfoMutex()); \ info = s_info; \ if ( !info ) { \ DECLARE_BASE_OBJECT(CClass); \ info = Code; \ NCBI_NS_NCBI::RegisterTypeInfoObject(info); #define BEGIN_TYPE_INFO(ClassName, Method, InfoType, Code) \ BEGIN_BASE_TYPE_INFO(ClassName, ClassName, Method, InfoType, Code) #define END_TYPE_INFO \ s_info = info; \ } \ } \ return info; \ } #define END_STRUCT_INFO \ info->AssignItemsTags(); \ END_TYPE_INFO // macros for specifying differents members #define SERIAL_MEMBER(MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::Check<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::Ptr(MEMBER_PTR(MemberName)), SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_BUF_MEMBER(MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::Check<NCBI_NS_NCBI::CUnionBuffer<SERIAL_TYPE(TypeMacro)TypeMacroArgs > >::Ptr(MEMBER_PTR(MemberName)), SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_STD_MEMBER(MemberName) \ MEMBER_PTR(MemberName),NCBI_NS_NCBI::GetStdTypeInfoGetter(MEMBER_PTR(MemberName)) #define SERIAL_CLASS_MEMBER(MemberName) \ MEMBER_PTR(MemberName),&MEMBER_PTR(MemberName).GetTypeInfo #define SERIAL_ENUM_MEMBER(MemberName,EnumName) \ MEMBER_PTR(MemberName), NCBI_NS_NCBI::EnumTypeInfo(MEMBER_PTR(MemberName), ENUM_METHOD_NAME(EnumName)()) #define SERIAL_ENUM_IN_MEMBER(MemberName,CppContext,EnumName) \ MEMBER_PTR(MemberName), NCBI_NS_NCBI::EnumTypeInfo(MEMBER_PTR(MemberName),CppContext ENUM_METHOD_NAME(EnumName)()) #define SERIAL_REF_MEMBER(MemberName,ClassName) \ SERIAL_MEMBER(MemberName,STL_CRef,(CLASS,(ClassName))) #define SERIAL_PTR_CHOICE_VARIANT(MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::Check<SERIAL_TYPE(TypeMacro)TypeMacroArgs >::PtrPtr(MEMBER_PTR(MemberName)), SERIAL_REF(TypeMacro)TypeMacroArgs #define SERIAL_REF_CHOICE_VARIANT(MemberName,ClassName) \ NCBI_NS_NCBI::Check<SERIAL_TYPE(CLASS)(ClassName)>::ObjectPtrPtr(MEMBER_PTR(MemberName)), SERIAL_REF(CLASS)(ClassName) #define SERIAL_BASE_CLASS(ClassName) \ CLASS_PTR(ClassName),&(CLASS_PTR(ClassName)->GetTypeInfo) // ADD_NAMED_*_MEMBER macros #define ADD_NAMED_NULL_MEMBER(MemberAlias,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ BASE_OBJECT(),SERIAL_REF(TypeMacro)TypeMacroArgs) #define ADD_NAMED_MEMBER(MemberAlias,MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_MEMBER(MemberName,TypeMacro,TypeMacroArgs)) #define ADD_NAMED_STD_MEMBER(MemberAlias,MemberName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_STD_MEMBER(MemberName)) #define ADD_NAMED_CLASS_MEMBER(MemberAlias,MemberName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_CLASS_MEMBER(MemberName)) #define ADD_NAMED_ENUM_MEMBER(MemberAlias,MemberName,EnumName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_ENUM_MEMBER(MemberName,EnumName)) #define ADD_NAMED_ENUM_IN_MEMBER(MemberAlias,MemberName,CppContext,EnumName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_ENUM_IN_MEMBER(MemberName,CppContext,EnumName)) #define ADD_NAMED_REF_MEMBER(MemberAlias,MemberName,ClassName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_REF_MEMBER(MemberName,ClassName)) #define ADD_NAMED_BASE_CLASS(MemberAlias,ClassName) \ NCBI_NS_NCBI::AddMember(info,MemberAlias, \ SERIAL_BASE_CLASS(ClassName)) // ADD_*_MEMBER macros #define ADD_MEMBER(MemberName,TypeMacro,TypeMacroArgs) \ ADD_NAMED_MEMBER(#MemberName,MemberName,TypeMacro,TypeMacroArgs) #define ADD_STD_MEMBER(MemberName) \ ADD_NAMED_STD_MEMBER(#MemberName,MemberName) #define ADD_CLASS_MEMBER(MemberName) \ ADD_NAMED_CLASS_MEMBER(#MemberName,MemberName) #define ADD_ENUM_MEMBER(MemberName,EnumName) \ ADD_NAMED_ENUM_MEMBER(#MemberName,MemberName,EnumName) #define ADD_ENUM_IN_MEMBER(MemberName,CppContext,EnumName) \ ADD_NAMED_ENUM_MEMBER(#MemberName,MemberName,CppContext,EnumName) #define ADD_REF_MEMBER(MemberName,ClassName) \ ADD_NAMED_REF_MEMBER(#MemberName,MemberName,ClassName) // ADD_NAMED_*_CHOICE_VARIANT macros #define ADD_NAMED_NULL_CHOICE_VARIANT(MemberAlias,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ BASE_OBJECT(),SERIAL_REF(TypeMacro)TypeMacroArgs) #define ADD_NAMED_CHOICE_VARIANT(MemberAlias,MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_MEMBER(MemberName,TypeMacro,TypeMacroArgs)) #define ADD_NAMED_BUF_CHOICE_VARIANT(MemberAlias,MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_BUF_MEMBER(MemberName,TypeMacro,TypeMacroArgs)) #define ADD_NAMED_STD_CHOICE_VARIANT(MemberAlias,MemberName) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_STD_MEMBER(MemberName)) #define ADD_NAMED_ENUM_CHOICE_VARIANT(MemberAlias,MemberName,EnumName) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_ENUM_MEMBER(MemberName,EnumName)) #define ADD_NAMED_ENUM_IN_CHOICE_VARIANT(MemberAlias,MemberName,CppContext,EnumName) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_ENUM_IN_MEMBER(MemberName,CppContext,EnumName)) #define ADD_NAMED_PTR_CHOICE_VARIANT(MemberAlias,MemberName,TypeMacro,TypeMacroArgs) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_PTR_CHOICE_VARIANT(MemberName,TypeMacro,TypeMacroArgs))->SetPointer() #define ADD_NAMED_REF_CHOICE_VARIANT(MemberAlias,MemberName,ClassName) \ NCBI_NS_NCBI::AddVariant(info,MemberAlias, \ SERIAL_REF_CHOICE_VARIANT(MemberName,ClassName))->SetObjectPointer() // ADD_*_CHOICE_VARIANT macros #define ADD_CHOICE_VARIANT(MemberName,TypeMacro,TypeMacroArgs) \ ADD_NAMED_CHOICE_VARIANT(#MemberName,MemberName,TypeMacro,TypeMacroArgs) #define ADD_STD_CHOICE_VARIANT(MemberName) \ ADD_NAMED_STD_CHOICE_VARIANT(#MemberName,MemberName) #define ADD_ENUM_CHOICE_VARIANT(MemberName,EnumName) \ ADD_NAMED_ENUM_CHOICE_VARIANT(#MemberName,MemberName,EnumName) #define ADD_ENUM_IN_CHOICE_VARIANT(MemberName,CppContext,EnumName) \ ADD_NAMED_ENUM_IN_CHOICE_VARIANT(#MemberName,MemberName,CppContext,EnumName) #define ADD_PTR_CHOICE_VARIANT(MemberName,TypeMacro,TypeMacroArgs) \ ADD_NAMED_PTR_CHOICE_VARIANT(#MemberName,MemberName,TypeMacro,TypeMacroArgs) #define ADD_REF_CHOICE_VARIANT(MemberName,ClassName) \ ADD_NAMED_REF_CHOICE_VARIANT(#MemberName,MemberName,ClassName) // type info definition macros #define BEGIN_NAMED_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_TYPE_INFO(ClassName, \ ClassName::GetTypeInfo, \ NCBI_NS_NCBI::CClassTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateClassInfo(ClassAlias)) #define BEGIN_CLASS_INFO(ClassName) \ BEGIN_NAMED_CLASS_INFO(#ClassName, ClassName) #define BEGIN_NAMED_BASE_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_BASE_TYPE_INFO(ClassName, NCBI_NAME2(ClassName,_Base), \ NCBI_NAME2(ClassName,_Base)::GetTypeInfo, \ NCBI_NS_NCBI::CClassTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateClassInfo(ClassAlias)) #define BEGIN_BASE_CLASS_INFO(ClassName) \ BEGIN_NAMED_BASE_CLASS_INFO(#ClassName, ClassName) #define SET_CLASS_IMPLICIT() info->SetImplicit() #define BEGIN_NAMED_IMPLICIT_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_NAMED_CLASS_INFO(ClassAlias,ClassName); SET_CLASS_IMPLICIT(); #define BEGIN_IMPLICIT_CLASS_INFO(ClassName) \ BEGIN_CLASS_INFO(ClassName); SET_CLASS_IMPLICIT(); #define BEGIN_NAMED_BASE_IMPLICIT_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_NAMED_BASE_CLASS_INFO(ClassAlias,ClassName); SET_CLASS_IMPLICIT(); #define BEGIN_BASE_IMPLICIT_CLASS_INFO(ClassName) \ BEGIN_BASE_CLASS_INFO(ClassName); SET_CLASS_IMPLICIT(); #define SET_CLASS_MODULE(ModuleName) \ NCBI_NS_NCBI::SetModuleName(info, ModuleName) #define SET_INTERNAL_NAME(OwnerName, MemberName) \ NCBI_NS_NCBI::SetInternalName(info, OwnerName, MemberName) #define SET_NAMESPACE(name) \ info->SetNamespaceName(name) #define SET_ASN_TAGGED_TYPE_INFO(method, args) \ info->method args #define END_CLASS_INFO \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::SetReadWriteMemberMethods(info); \ END_STRUCT_INFO #define BEGIN_NAMED_ABSTRACT_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_TYPE_INFO(ClassName, \ ClassName::GetTypeInfo, \ NCBI_NS_NCBI::CClassTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateAbstractClassInfo(ClassAlias)) #define BEGIN_ABSTRACT_CLASS_INFO(ClassName) \ BEGIN_NAMED_ABSTRACT_CLASS_INFO(#ClassName, ClassName) #define BEGIN_NAMED_ABSTRACT_BASE_CLASS_INFO(ClassAlias,ClassName) \ BEGIN_BASE_TYPE_INFO(ClassName, NCBI_NAME2(ClassName,_Base), \ NCBI_NAME2(ClassName,_Base)::GetTypeInfo, \ NCBI_NS_NCBI::CClassTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateAbstractClassInfo(ClassAlias)) #define END_ABSTRACT_CLASS_INFO \ END_STRUCT_INFO #define BEGIN_NAMED_DERIVED_CLASS_INFO(ClassAlias,ClassName,ParentClassName) \ BEGIN_NAMED_CLASS_INFO(ClassAlias,ClassName) \ SET_PARENT_CLASS(ParentClassName); #define BEGIN_DERIVED_CLASS_INFO(ClassName,ParentClassName) \ BEGIN_NAMED_DERIVED_CLASS_INFO(#ClassName, ClassName, ParentClassName) #define END_DERIVED_CLASS_INFO \ END_STRUCT_INFO #define BEGIN_NAMED_CHOICE_INFO(ClassAlias,ClassName) \ BEGIN_TYPE_INFO(ClassName, \ ClassName::GetTypeInfo, \ NCBI_NS_NCBI::CChoiceTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateChoiceInfo(ClassAlias)) #define BEGIN_CHOICE_INFO(ClassName) \ BEGIN_NAMED_CHOICE_INFO(#ClassName, ClassName) #define BEGIN_NAMED_BASE_CHOICE_INFO(ClassAlias,ClassName) \ BEGIN_BASE_TYPE_INFO(ClassName, NCBI_NAME2(ClassName,_Base), \ NCBI_NAME2(ClassName,_Base)::GetTypeInfo, \ NCBI_NS_NCBI::CChoiceTypeInfo, \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::CreateChoiceInfo(ClassAlias)) #define BEGIN_BASE_CHOICE_INFO(ClassName) \ BEGIN_NAMED_BASE_CHOICE_INFO(#ClassName, ClassName) #define SET_CHOICE_MODULE(ModuleName) \ NCBI_NS_NCBI::SetModuleName(info, ModuleName) #define SET_CHOICE_DELAYED() \ info->SetSelectDelay(&NCBI_NS_NCBI::CClassInfoHelper<CClass>::SelectDelayBuffer) #define END_CHOICE_INFO \ NCBI_NS_NCBI::CClassInfoHelper<CClass>::SetReadWriteVariantMethods(info); \ END_STRUCT_INFO // sub class definition #define SET_PARENT_CLASS(ParentClassName) \ info->SetParentClass(ParentClassName::GetTypeInfo()) #define ADD_NAMED_SUB_CLASS(SubClassAlias, SubClassName) \ info->AddSubClass(SubClassAlias, &SubClassName::GetTypeInfo) #define ADD_SUB_CLASS(SubClassName) \ ADD_NAMED_SUB_CLASS(#SubClassName, SubClassName) #define ADD_NAMED_NULL_SUB_CLASS(ClassAlias) \ info->AddSubClassNull(ClassAlias) #define ADD_NULL_SUB_CLASS(ClassAlias) \ ADD_NAMED_NULL_SUB_CLASS("NULL") // enum definition macros #define BEGIN_ENUM_INFO_METHOD(MethodName, EnumAlias, EnumName, IsInteger) \ const NCBI_NS_NCBI::CEnumeratedTypeValues* MethodName(void) \ { \ static NCBI_NS_NCBI::CEnumeratedTypeValues* volatile s_enumInfo = 0; \ NCBI_NS_NCBI::CEnumeratedTypeValues* enumInfo = s_enumInfo; \ if ( !enumInfo ) { \ NCBI_NS_NCBI::CMutexGuard GUARD(NCBI_NS_NCBI::GetTypeInfoMutex()); \ enumInfo = s_enumInfo; \ if ( !enumInfo ) { \ enumInfo = new NCBI_NS_NCBI::CEnumeratedTypeValues(EnumAlias, IsInteger); \ NCBI_NS_NCBI::RegisterEnumTypeValuesObject(enumInfo); \ EnumName enumValue; #define END_ENUM_INFO_METHOD \ s_enumInfo = enumInfo; \ } \ } \ return enumInfo; \ } #define BEGIN_NAMED_ENUM_IN_INFO(EnumAlias, CppContext, EnumName, IsInteger) \ BEGIN_ENUM_INFO_METHOD(CppContext ENUM_METHOD_NAME(EnumName), EnumAlias, EnumName, IsInteger) #define BEGIN_NAMED_ENUM_INFO(EnumAlias, EnumName, IsInteger) \ BEGIN_ENUM_INFO_METHOD(ENUM_METHOD_NAME(EnumName), EnumAlias, EnumName, IsInteger) #define BEGIN_ENUM_IN_INFO(CppContext, EnumName, IsInteger) \ BEGIN_NAMED_ENUM_IN_INFO(#EnumName, CppContext, EnumName, IsInteger) #define BEGIN_ENUM_INFO(EnumName, IsInteger) \ BEGIN_NAMED_ENUM_INFO(#EnumName, EnumName, IsInteger) #define SET_ENUM_MODULE(ModuleName) \ NCBI_NS_NCBI::SetModuleName(enumInfo, ModuleName) #define SET_ENUM_BITSET \ enumInfo->SetBitset() #define SET_ENUM_INTERNAL_NAME(OwnerName, MemberName) \ NCBI_NS_NCBI::SetInternalName(enumInfo, OwnerName, MemberName) #define ADD_ENUM_VALUE(EnumValueName, EnumValueValue) \ enumInfo->AddValue(EnumValueName, enumValue = EnumValueValue) #define ADD_ENUM_VALUE_FLAGS(EnumValueName, EnumValueValue, EnumValueFlags) \ enumInfo->AddValue(EnumValueName, enumValue = EnumValueValue, EnumValueFlags) #define END_ENUM_IN_INFO END_ENUM_INFO_METHOD #define END_ENUM_INFO END_ENUM_INFO_METHOD // alias definition macros #define SERIAL_ALIAS(RefType) \ NCBI_NAME2(SERIAL_REF_, RefType) #define ALIASED_TYPE_INFO(RefType, RefCode) \ NCBI_NAME2(RefType, RefCode) #define BEGIN_ALIAS_INFO_METHOD(AliasName,ClassName,BaseClassName,SerialRef,Code) \ const NCBI_NS_NCBI::CTypeInfo* BaseClassName::GetTypeInfo(void) \ { \ static NCBI_NS_NCBI::CAliasTypeInfo* volatile s_info = 0; \ NCBI_NS_NCBI::CAliasTypeInfo* info = s_info; \ if ( !info ) { \ NCBI_NS_NCBI::CMutexGuard GUARD(NCBI_NS_NCBI::GetTypeInfoMutex()); \ info = s_info; \ if ( !info ) { \ typedef ClassName CClass; \ typedef BaseClassName CClass_Base; \ DECLARE_BASE_OBJECT(CClass); \ typedef NCBI_NS_NCBI::TTypeInfo (*TGetter)(void); \ TGetter getter = SerialRef Code; \ info = new NCBI_NS_NCBI::CAliasTypeInfo(AliasName, getter()); \ NCBI_NS_NCBI::RegisterTypeInfoObject(info); #define BEGIN_ALIAS_INFO(AliasName,ClassName,RefType,RefCode) \ BEGIN_ALIAS_INFO_METHOD(AliasName, ClassName, \ NCBI_NAME2(ClassName,_Base), \ SERIAL_ALIAS(RefType), RefCode) #define BEGIN_NESTED_ALIAS_INFO(AliasName,ClassName,RefType,RefCode) \ BEGIN_ALIAS_INFO_METHOD(AliasName, ClassName, \ ClassName, \ SERIAL_ALIAS(RefType), RefCode) #define BEGIN_ENUM_ALIAS_INFO_METHOD(AliasName,ClassName,BaseClassName,SerialRef,Code) \ const NCBI_NS_NCBI::CTypeInfo* BaseClassName::GetTypeInfo(void) \ { \ static NCBI_NS_NCBI::CAliasTypeInfo* volatile s_info = 0; \ NCBI_NS_NCBI::CAliasTypeInfo* info = s_info; \ if ( !info ) { \ NCBI_NS_NCBI::CMutexGuard GUARD(NCBI_NS_NCBI::GetTypeInfoMutex()); \ info = s_info; \ if ( !info ) { \ typedef ClassName CClass; \ typedef BaseClassName CClass_Base; \ DECLARE_BASE_OBJECT(CClass); \ info = new NCBI_NS_NCBI::CAliasTypeInfo(AliasName, SerialRef Code); \ NCBI_NS_NCBI::RegisterTypeInfoObject(info); #define BEGIN_ENUM_ALIAS_INFO(AliasName,ClassName,RefType,RefCode) \ BEGIN_ENUM_ALIAS_INFO_METHOD(AliasName, ClassName, \ NCBI_NAME2(ClassName,_Base), \ SERIAL_ALIAS(RefType), RefCode) #define BEGIN_NESTED_ENUM_ALIAS_INFO(AliasName,ClassName,RefType,RefCode) \ BEGIN_ENUM_ALIAS_INFO_METHOD(AliasName, ClassName, \ ClassName, \ SERIAL_ALIAS(RefType), RefCode) #define SET_STD_ALIAS_DATA_PTR \ info->SetDataOffset(NCBI_NS_NCBI::TPointerOffsetType(GetDataPtr(BASE_OBJECT()))) #define SET_CLASS_ALIAS_DATA_PTR \ info->SetDataOffset(NCBI_NS_NCBI::TPointerOffsetType(BASE_OBJECT())); \ info->SetCreateFunction(NCBI_NS_NCBI::CClassInfoHelper<CClass>::Create) #define END_ALIAS_INFO \ s_info = info; \ } \ } \ return info; \ } #define SET_ALIAS_MODULE(ModuleName) \ NCBI_NS_NCBI::SetModuleName(info, ModuleName) #define SET_FULL_ALIAS info->SetFullAlias() NCBI_XSERIAL_EXPORT void SetModuleName(CTypeInfo* info, const char* name); NCBI_XSERIAL_EXPORT void SetModuleName(CEnumeratedTypeValues* info, const char* name); NCBI_XSERIAL_EXPORT void SetInternalName(CTypeInfo* info, const char* owner_name, const char* member_name = 0); NCBI_XSERIAL_EXPORT void SetInternalName(CEnumeratedTypeValues* info, const char* owner_name, const char* member_name = 0); // internal methods // add member NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfo t); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, const CTypeRef& r); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CMemberInfo* AddMember(CClassTypeInfoBase* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); // add variant NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfo t); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, const CTypeRef& r); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfo t); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, TTypeInfoGetter f); NCBI_XSERIAL_EXPORT CVariantInfo* AddVariant(CChoiceTypeInfo* info, const char* name, const void* member, TTypeInfoGetter1 f4, TTypeInfoGetter1 f3, TTypeInfoGetter1 f2, TTypeInfoGetter1 f1, const CTypeRef& r); // end of internal methods END_NCBI_SCOPE /* @} */ #endif

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.