summaryrefslogtreecommitdiffstats
path: root/examples/declarative/ui-components/flipable/qmlapplicationviewer/qmlapplicationviewer.cpp
blob: 11bedd191495d72fbe298e1b4a4cb2040222ce4a (plain)
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
// checksum 0x28c7 version 0x2000a
/*
  This file was generated by the Qt Quick Application wizard of Qt Creator.
  QmlApplicationViewer is a convenience class containing mobile device specific
  code such as screen orientation handling. Also QML paths and debugging are
  handled here.
  It is recommended not to modify this file, since newer versions of Qt Creator
  may offer an updated version of it.
*/

#include "qmlapplicationviewer.h"

#include <QtCore/QCoreApplication>
#include <QtCore/QDir>
#include <QtCore/QFileInfo>
#include <QtDeclarative/QDeclarativeComponent>
#include <QtDeclarative/QDeclarativeEngine>
#include <QtDeclarative/QDeclarativeContext>

#if defined(QMLJSDEBUGGER)
#include <qt_private/qdeclarativedebughelper_p.h>
#endif

#if defined(QMLJSDEBUGGER) && !defined(NO_JSDEBUGGER)
#include <jsdebuggeragent.h>
#endif
#if defined(QMLJSDEBUGGER) && !defined(NO_QMLOBSERVER)
#include <qdeclarativeviewobserver.h>
#endif

#if defined(Q_OS_SYMBIAN) && defined(ORIENTATIONLOCK)
#include <eikenv.h>
#include <eikappui.h>
#include <aknenv.h>
#include <aknappui.h>
#endif // Q_OS_SYMBIAN && ORIENTATIONLOCK

#if defined(QMLJSDEBUGGER)

// Enable debugging before any QDeclarativeEngine is created
struct QmlJsDebuggingEnabler
{
    QmlJsDebuggingEnabler()
    {
        QDeclarativeDebugHelper::enableDebugging();
    }
};

// Execute code in constructor before first QDeclarativeEngine is instantiated
static QmlJsDebuggingEnabler enableDebuggingHelper;

#endif // QMLJSDEBUGGER

class QmlApplicationViewerPrivate
{
    QString mainQmlFile;
    friend class QmlApplicationViewer;
    static QString adjustPath(const QString &path);
};

QString QmlApplicationViewerPrivate::adjustPath(const QString &path)
{
#ifdef Q_OS_UNIX
#ifdef Q_OS_MAC
    if (!QDir::isAbsolutePath(path))
        return QCoreApplication::applicationDirPath()
                + QLatin1String("/../Resources/") + path;
#else
    const QString pathInShareDir = QCoreApplication::applicationDirPath()
        + QLatin1String("/../share/")
        + QFileInfo(QCoreApplication::applicationFilePath()).fileName()
        + QLatin1Char('/') + path;
    if (QFileInfo(pathInShareDir).exists())
        return pathInShareDir;
#endif
#endif
    return path;
}

QmlApplicationViewer::QmlApplicationViewer(QWidget *parent) :
    QDeclarativeView(parent),
    m_d(new QmlApplicationViewerPrivate)
{
    connect(engine(), SIGNAL(quit()), SLOT(close()));
    setResizeMode(QDeclarativeView::SizeRootObjectToView);
#if defined(QMLJSDEBUGGER) && !defined(NO_JSDEBUGGER)
    new QmlJSDebugger::JSDebuggerAgent(engine());
#endif
#if defined(QMLJSDEBUGGER) && !defined(NO_QMLOBSERVER)
    new QmlJSDebugger::QDeclarativeViewObserver(this, parent);
#endif
}

QmlApplicationViewer::~QmlApplicationViewer()
{
    delete m_d;
}

void QmlApplicationViewer::setMainQmlFile(const QString &file)
{
    m_d->mainQmlFile = QmlApplicationViewerPrivate::adjustPath(file);
    setSource(QUrl::fromLocalFile(m_d->mainQmlFile));
}

void QmlApplicationViewer::addImportPath(const QString &path)
{
    engine()->addImportPath(QmlApplicationViewerPrivate::adjustPath(path));
}

void QmlApplicationViewer::setOrientation(ScreenOrientation orientation)
{
#ifdef Q_OS_SYMBIAN
    if (orientation != ScreenOrientationAuto) {
#if defined(ORIENTATIONLOCK)
        const CAknAppUiBase::TAppUiOrientation uiOrientation =
                (orientation == ScreenOrientationLockPortrait) ? CAknAppUi::EAppUiOrientationPortrait
                    : CAknAppUi::EAppUiOrientationLandscape;
        CAknAppUi* appUi = dynamic_cast<CAknAppUi*> (CEikonEnv::Static()->AppUi());
        TRAPD(error,
            if (appUi)
                appUi->SetOrientationL(uiOrientation);
        );
        Q_UNUSED(error)
#else // ORIENTATIONLOCK
        qWarning("'ORIENTATIONLOCK' needs to be defined on Symbian when locking the orientation.");
#endif // ORIENTATIONLOCK
    }
#elif defined(Q_WS_MAEMO_5)
    Qt::WidgetAttribute attribute;
    switch (orientation) {
    case ScreenOrientationLockPortrait:
        attribute = Qt::WA_Maemo5PortraitOrientation;
        break;
    case ScreenOrientationLockLandscape:
        attribute = Qt::WA_Maemo5LandscapeOrientation;
        break;
    case ScreenOrientationAuto:
    default:
        attribute = Qt::WA_Maemo5AutoOrientation;
        break;
    }
    setAttribute(attribute, true);
#else // Q_OS_SYMBIAN
    Q_UNUSED(orientation);
#endif // Q_OS_SYMBIAN
}

void QmlApplicationViewer::showExpanded()
{
#ifdef Q_OS_SYMBIAN
    showFullScreen();
#elif defined(Q_WS_MAEMO_5) || defined(Q_WS_MAEMO_6)
    showMaximized();
#else
    show();
#endif
}
>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 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 * Copyright by The HDF Group.                                               *
 * Copyright by the Board of Trustees of the University of Illinois.         *
 * All rights reserved.                                                      *
 *                                                                           *
 * This file is part of HDF5.  The full HDF5 copyright notice, including     *
 * terms governing use, modification, and redistribution, is contained in    *
 * the COPYING file, which can be found at the root of the source code       *
 * distribution tree, or in https://support.hdfgroup.org/ftp/HDF5/releases.  *
 * If you do not have access to either file, you may request a copy from     *
 * help@hdfgroup.org.                                                        *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

#include <string>

#include "H5Include.h"
#include "H5Exception.h"
#include "H5IdComponent.h"
#include "H5PropList.h"
#include "H5LaccProp.h"
#include "H5Location.h"
#include "H5Object.h"
#include "H5DataType.h"
#include "H5AtomType.h"
#include "H5PredType.h"

namespace H5 {

#ifndef DOXYGEN_SHOULD_SKIP_THIS
//--------------------------------------------------------------------------
// Function:    PredType overloaded constructor
///\brief       Creates a PredType object using the id of an existing
///             predefined datatype.
///\param       predtype_id - IN: Id of a predefined datatype
// Description
//              This constructor creates a PredType object by copying
//              the provided HDF5 predefined datatype.
// Programmer   Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
PredType::PredType(const hid_t predtype_id) : AtomType(predtype_id)
{
    id = H5Tcopy(predtype_id);
}

//--------------------------------------------------------------------------
// Function:    PredType default constructor
///\brief       Default constructor: Creates a stub predefined datatype
// Programmer   Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
PredType::PredType() : AtomType() {}
#endif // DOXYGEN_SHOULD_SKIP_THIS

//--------------------------------------------------------------------------
// Function:    PredType copy constructor
///\brief       Copy constructor: makes a copy of the original PredType object.
///\param       original - IN: PredType instance to copy
// Programmer   Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
PredType::PredType(const PredType& original) : AtomType(original) {}

//--------------------------------------------------------------------------
// Function:    PredType::operator=
///\brief       Assignment operator.
///\param       rhs - IN: Reference to the predefined datatype
///\return      Reference to PredType instance
///\exception   H5::DataTypeIException
// Description
//              Makes a copy of the type on the right hand side and stores
//              the new id in the left hand side object.
// Programmer   Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
PredType& PredType::operator=(const PredType& rhs)
{
    if (this != &rhs)
        copy(rhs);
    return(*this);
}

#ifndef DOXYGEN_SHOULD_SKIP_THIS
// These dummy functions do not inherit from DataType - they'll
// throw an DataTypeIException if invoked.
void PredType::commit(H5Location& loc, const char* name)
{
    throw DataTypeIException("PredType::commit", "Error: Attempted to commit a predefined datatype.  Invalid operation!");
}

void PredType::commit(H5Location& loc, const H5std_string& name)
{
    commit(loc, name.c_str());
}

bool PredType::committed()
{
    throw DataTypeIException("PredType::committed", "Error: Attempting to check for commit status on a predefined datatype.");
}
#endif // DOXYGEN_SHOULD_SKIP_THIS

// Default destructor
//--------------------------------------------------------------------------
// Function:    PredType destructor
///\brief       Noop destructor.
// Programmer   Binh-Minh Ribler - 2000
//--------------------------------------------------------------------------
PredType::~PredType() {}

/*****************************************************************************
        The following section is regarding the global constants PredType,
        DataSpace, and PropList.

 *****************************************************************************/

#ifndef DOXYGEN_SHOULD_SKIP_THIS
// Definition pointers for the constants
PredType* PredType::PREDTYPE_CONST_ = 0; //dummy
PredType* PredType::STD_I8BE_;
PredType* PredType::STD_I8LE_;
PredType* PredType::STD_I16BE_;
PredType* PredType::STD_I16LE_;
PredType* PredType::STD_I32BE_;
PredType* PredType::STD_I32LE_;
PredType* PredType::STD_I64BE_;
PredType* PredType::STD_I64LE_;
PredType* PredType::STD_U8BE_;
PredType* PredType::STD_U8LE_;
PredType* PredType::STD_U16BE_;
PredType* PredType::STD_U16LE_;
PredType* PredType::STD_U32BE_;
PredType* PredType::STD_U32LE_;
PredType* PredType::STD_U64BE_;
PredType* PredType::STD_U64LE_;
PredType* PredType::STD_B8BE_;
PredType* PredType::STD_B8LE_;
PredType* PredType::STD_B16BE_;
PredType* PredType::STD_B16LE_;
PredType* PredType::STD_B32BE_;
PredType* PredType::STD_B32LE_;
PredType* PredType::STD_B64BE_;
PredType* PredType::STD_B64LE_;
PredType* PredType::STD_REF_OBJ_;
PredType* PredType::STD_REF_DSETREG_;

PredType* PredType::C_S1_;
PredType* PredType::FORTRAN_S1_;

PredType* PredType::IEEE_F32BE_;
PredType* PredType::IEEE_F32LE_;
PredType* PredType::IEEE_F64BE_;
PredType* PredType::IEEE_F64LE_;

PredType* PredType::UNIX_D32BE_;
PredType* PredType::UNIX_D32LE_;
PredType* PredType::UNIX_D64BE_;
PredType* PredType::UNIX_D64LE_;

PredType* PredType::INTEL_I8_;
PredType* PredType::INTEL_I16_;
PredType* PredType::INTEL_I32_;
PredType* PredType::INTEL_I64_;
PredType* PredType::INTEL_U8_;
PredType* PredType::INTEL_U16_;
PredType* PredType::INTEL_U32_;
PredType* PredType::INTEL_U64_;
PredType* PredType::INTEL_B8_;
PredType* PredType::INTEL_B16_;
PredType* PredType::INTEL_B32_;
PredType* PredType::INTEL_B64_;
PredType* PredType::INTEL_F32_;
PredType* PredType::INTEL_F64_;

PredType* PredType::ALPHA_I8_;
PredType* PredType::ALPHA_I16_;
PredType* PredType::ALPHA_I32_;
PredType* PredType::ALPHA_I64_;
PredType* PredType::ALPHA_U8_;
PredType* PredType::ALPHA_U16_;
PredType* PredType::ALPHA_U32_;
PredType* PredType::ALPHA_U64_;
PredType* PredType::ALPHA_B8_;
PredType* PredType::ALPHA_B16_;
PredType* PredType::ALPHA_B32_;
PredType* PredType::ALPHA_B64_;
PredType* PredType::ALPHA_F32_;
PredType* PredType::ALPHA_F64_;

PredType* PredType::MIPS_I8_;
PredType* PredType::MIPS_I16_;
PredType* PredType::MIPS_I32_;
PredType* PredType::MIPS_I64_;
PredType* PredType::MIPS_U8_;
PredType* PredType::MIPS_U16_;
PredType* PredType::MIPS_U32_;
PredType* PredType::MIPS_U64_;
PredType* PredType::MIPS_B8_;
PredType* PredType::MIPS_B16_;
PredType* PredType::MIPS_B32_;
PredType* PredType::MIPS_B64_;
PredType* PredType::MIPS_F32_;
PredType* PredType::MIPS_F64_;

PredType* PredType::NATIVE_CHAR_;
PredType* PredType::NATIVE_SCHAR_;
PredType* PredType::NATIVE_UCHAR_;
PredType* PredType::NATIVE_SHORT_;
PredType* PredType::NATIVE_USHORT_;
PredType* PredType::NATIVE_INT_;
PredType* PredType::NATIVE_UINT_;
PredType* PredType::NATIVE_LONG_;
PredType* PredType::NATIVE_ULONG_;
PredType* PredType::NATIVE_LLONG_;
PredType* PredType::NATIVE_ULLONG_;
PredType* PredType::NATIVE_FLOAT_;
PredType* PredType::NATIVE_DOUBLE_;
PredType* PredType::NATIVE_LDOUBLE_;
PredType* PredType::NATIVE_B8_;
PredType* PredType::NATIVE_B16_;
PredType* PredType::NATIVE_B32_;
PredType* PredType::NATIVE_B64_;
PredType* PredType::NATIVE_OPAQUE_;
PredType* PredType::NATIVE_HSIZE_;
PredType* PredType::NATIVE_HSSIZE_;
PredType* PredType::NATIVE_HERR_;
PredType* PredType::NATIVE_HBOOL_;

PredType* PredType::NATIVE_INT8_;
PredType* PredType::NATIVE_UINT8_;
PredType* PredType::NATIVE_INT16_;
PredType* PredType::NATIVE_UINT16_;
PredType* PredType::NATIVE_INT32_;
PredType* PredType::NATIVE_UINT32_;
PredType* PredType::NATIVE_INT64_;
PredType* PredType::NATIVE_UINT64_;
// LEAST types
#if H5_SIZEOF_INT_LEAST8_T != 0
PredType* PredType::NATIVE_INT_LEAST8_;
#endif /* H5_SIZEOF_INT_LEAST8_T */
#if H5_SIZEOF_UINT_LEAST8_T != 0
PredType* PredType::NATIVE_UINT_LEAST8_;
#endif /* H5_SIZEOF_UINT_LEAST8_T */

#if H5_SIZEOF_INT_LEAST16_T != 0
PredType* PredType::NATIVE_INT_LEAST16_;
#endif /* H5_SIZEOF_INT_LEAST16_T */
#if H5_SIZEOF_UINT_LEAST16_T != 0
PredType* PredType::NATIVE_UINT_LEAST16_;
#endif /* H5_SIZEOF_UINT_LEAST16_T */

#if H5_SIZEOF_INT_LEAST32_T != 0
PredType* PredType::NATIVE_INT_LEAST32_;
#endif /* H5_SIZEOF_INT_LEAST32_T */
#if H5_SIZEOF_UINT_LEAST32_T != 0
PredType* PredType::NATIVE_UINT_LEAST32_;
#endif /* H5_SIZEOF_UINT_LEAST32_T */

#if H5_SIZEOF_INT_LEAST64_T != 0
PredType* PredType::NATIVE_INT_LEAST64_;
#endif /* H5_SIZEOF_INT_LEAST64_T */
#if H5_SIZEOF_UINT_LEAST64_T != 0
PredType* PredType::NATIVE_UINT_LEAST64_;
#endif /* H5_SIZEOF_UINT_LEAST64_T */

// FAST types
#if H5_SIZEOF_INT_FAST8_T != 0
PredType* PredType::NATIVE_INT_FAST8_;
#endif /* H5_SIZEOF_INT_FAST8_T */
#if H5_SIZEOF_UINT_FAST8_T != 0
PredType* PredType::NATIVE_UINT_FAST8_;
#endif /* H5_SIZEOF_UINT_FAST8_T */

#if H5_SIZEOF_INT_FAST16_T != 0
PredType* PredType::NATIVE_INT_FAST16_;
#endif /* H5_SIZEOF_INT_FAST16_T */
#if H5_SIZEOF_UINT_FAST16_T != 0
PredType* PredType::NATIVE_UINT_FAST16_;
#endif /* H5_SIZEOF_UINT_FAST16_T */

#if H5_SIZEOF_INT_FAST32_T != 0
PredType* PredType::NATIVE_INT_FAST32_;
#endif /* H5_SIZEOF_INT_FAST32_T */
#if H5_SIZEOF_UINT_FAST32_T != 0
PredType* PredType::NATIVE_UINT_FAST32_;
#endif /* H5_SIZEOF_UINT_FAST32_T */

#if H5_SIZEOF_INT_FAST64_T != 0
PredType* PredType::NATIVE_INT_FAST64_;
#endif /* H5_SIZEOF_INT_FAST64_T */
#if H5_SIZEOF_UINT_FAST64_T != 0
PredType* PredType::NATIVE_UINT_FAST64_;
#endif /* H5_SIZEOF_UINT_FAST64_T */

//--------------------------------------------------------------------------
// Function:    PredType::getPredTypes
// Purpose:     Returns the dummy PredType constant object pointer
// Return:      PredType object pointer
// Description
//              If the dummy constant PREDTYPE_CONST_ is not allocated yet,
//              call makePredTypes() to allocate all of the PredType constants.
//              Otherwise, just simply return the object pointer PREDTYPE_CONST_.
//
//              Note that, there is a similar function to getPredTypes() in
//              other classes, that have global constants, is called getConstant().
//
// Programmer   Binh-Minh Ribler - September 2015
//--------------------------------------------------------------------------
PredType* PredType::getPredTypes()
{
    // Tell the C library not to clean up, H5Library::termH5cpp will call
    // H5close - more dependency if use H5Library::dontAtExit()
    if (!IdComponent::H5dontAtexit_called)
    {
        (void) H5dont_atexit();
        IdComponent::H5dontAtexit_called = true;
    }

    // If the dummy constant pointer is not allocated, allocate all PredType
    // constant pointers.  Otherwise, throw because it shouldn't be.
    if (PREDTYPE_CONST_ == 0)
        makePredTypes();
    else
        throw H5::DataTypeIException("PredType::getPredTypes", "PredType::getPredTypes is being invoked on an allocated PREDTYPE_CONST_");
    return PREDTYPE_CONST_;
}

//--------------------------------------------------------------------------
// Function:    PredType::makePredTypes
// Purpose:     Allocate all PredType constants.
// Programmer   Binh-Minh Ribler - September 2015
//--------------------------------------------------------------------------
void PredType::makePredTypes()
{
    PREDTYPE_CONST_ = new PredType;
    C_S1_ = new PredType(H5T_C_S1);
    FORTRAN_S1_ = new PredType(H5T_FORTRAN_S1);

    STD_I8BE_ = new PredType(H5T_STD_I8BE);
    STD_I8LE_ = new PredType(H5T_STD_I8LE);
    STD_I16BE_ = new PredType(H5T_STD_I16BE);
    STD_I16LE_ = new PredType(H5T_STD_I16LE);
    STD_I32BE_ = new PredType(H5T_STD_I32BE);
    STD_I32LE_ = new PredType(H5T_STD_I32LE);
    STD_I64BE_ = new PredType(H5T_STD_I64BE);
    STD_I64LE_ = new PredType(H5T_STD_I64LE);
    STD_U8BE_ = new PredType(H5T_STD_U8BE);
    STD_U8LE_ = new PredType(H5T_STD_U8LE);
    STD_U16BE_ = new PredType(H5T_STD_U16BE);
    STD_U16LE_ = new PredType(H5T_STD_U16LE);
    STD_U32BE_ = new PredType(H5T_STD_U32BE);
    STD_U32LE_ = new PredType(H5T_STD_U32LE);
    STD_U64BE_ = new PredType(H5T_STD_U64BE);
    STD_U64LE_ = new PredType(H5T_STD_U64LE);
    STD_B8BE_ = new PredType(H5T_STD_B8BE);
    STD_B8LE_ = new PredType(H5T_STD_B8LE);

    STD_B16BE_ = new PredType(H5T_STD_B16BE);
    STD_B16LE_ = new PredType(H5T_STD_B16LE);
    STD_B32BE_ = new PredType(H5T_STD_B32BE);
    STD_B32LE_ = new PredType(H5T_STD_B32LE);
    STD_B64BE_ = new PredType(H5T_STD_B64BE);
    STD_B64LE_ = new PredType(H5T_STD_B64LE);
    STD_REF_OBJ_ = new PredType(H5T_STD_REF_OBJ);
    STD_REF_DSETREG_ = new PredType(H5T_STD_REF_DSETREG);

    IEEE_F32BE_ = new PredType(H5T_IEEE_F32BE);
    IEEE_F32LE_ = new PredType(H5T_IEEE_F32LE);
    IEEE_F64BE_ = new PredType(H5T_IEEE_F64BE);
    IEEE_F64LE_ = new PredType(H5T_IEEE_F64LE);

    UNIX_D32BE_ = new PredType(H5T_UNIX_D32BE);
    UNIX_D32LE_ = new PredType(H5T_UNIX_D32LE);
    UNIX_D64BE_ = new PredType(H5T_UNIX_D64BE);
    UNIX_D64LE_ = new PredType(H5T_UNIX_D64LE);

    INTEL_I8_ = new PredType(H5T_INTEL_I8);
    INTEL_I16_ = new PredType(H5T_INTEL_I16);
    INTEL_I32_ = new PredType(H5T_INTEL_I32);
    INTEL_I64_ = new PredType(H5T_INTEL_I64);
    INTEL_U8_ = new PredType(H5T_INTEL_U8);
    INTEL_U16_ = new PredType(H5T_INTEL_U16);
    INTEL_U32_ = new PredType(H5T_INTEL_U32);
    INTEL_U64_ = new PredType(H5T_INTEL_U64);
    INTEL_B8_ = new PredType(H5T_INTEL_B8);
    INTEL_B16_ = new PredType(H5T_INTEL_B16);
    INTEL_B32_ = new PredType(H5T_INTEL_B32);
    INTEL_B64_ = new PredType(H5T_INTEL_B64);
    INTEL_F32_ = new PredType(H5T_INTEL_F32);
    INTEL_F64_ = new PredType(H5T_INTEL_F64);

    ALPHA_I8_ = new PredType(H5T_ALPHA_I8);
    ALPHA_I16_ = new PredType(H5T_ALPHA_I16);
    ALPHA_I32_ = new PredType(H5T_ALPHA_I32);
    ALPHA_I64_ = new PredType(H5T_ALPHA_I64);
    ALPHA_U8_ = new PredType(H5T_ALPHA_U8);
    ALPHA_U16_ = new PredType(H5T_ALPHA_U16);
    ALPHA_U32_ = new PredType(H5T_ALPHA_U32);
    ALPHA_U64_ = new PredType(H5T_ALPHA_U64);
    ALPHA_B8_ = new PredType(H5T_ALPHA_B8);
    ALPHA_B16_ = new PredType(H5T_ALPHA_B16);
    ALPHA_B32_ = new PredType(H5T_ALPHA_B32);
    ALPHA_B64_ = new PredType(H5T_ALPHA_B64);
    ALPHA_F32_ = new PredType(H5T_ALPHA_F32);
    ALPHA_F64_ = new PredType(H5T_ALPHA_F64);

    MIPS_I8_ = new PredType(H5T_MIPS_I8);
    MIPS_I16_ = new PredType(H5T_MIPS_I16);
    MIPS_I32_ = new PredType(H5T_MIPS_I32);
    MIPS_I64_ = new PredType(H5T_MIPS_I64);
    MIPS_U8_ = new PredType(H5T_MIPS_U8);
    MIPS_U16_ = new PredType(H5T_MIPS_U16);
    MIPS_U32_ = new PredType(H5T_MIPS_U32);
    MIPS_U64_ = new PredType(H5T_MIPS_U64);
    MIPS_B8_ = new PredType(H5T_MIPS_B8);
    MIPS_B16_ = new PredType(H5T_MIPS_B16);
    MIPS_B32_ = new PredType(H5T_MIPS_B32);
    MIPS_B64_ = new PredType(H5T_MIPS_B64);
    MIPS_F32_ = new PredType(H5T_MIPS_F32);
    MIPS_F64_ = new PredType(H5T_MIPS_F64);

    NATIVE_CHAR_ = new PredType(H5T_NATIVE_CHAR);
    NATIVE_INT_ = new PredType(H5T_NATIVE_INT);
    NATIVE_FLOAT_ = new PredType(H5T_NATIVE_FLOAT);
    NATIVE_SCHAR_ = new PredType(H5T_NATIVE_SCHAR);
    NATIVE_UCHAR_ = new PredType(H5T_NATIVE_UCHAR);
    NATIVE_SHORT_ = new PredType(H5T_NATIVE_SHORT);
    NATIVE_USHORT_ = new PredType(H5T_NATIVE_USHORT);
    NATIVE_UINT_ = new PredType(H5T_NATIVE_UINT);
    NATIVE_LONG_ = new PredType(H5T_NATIVE_LONG);
    NATIVE_ULONG_ = new PredType(H5T_NATIVE_ULONG);
    NATIVE_LLONG_ = new PredType(H5T_NATIVE_LLONG);
    NATIVE_ULLONG_ = new PredType(H5T_NATIVE_ULLONG);
    NATIVE_DOUBLE_ = new PredType(H5T_NATIVE_DOUBLE);
#if H5_SIZEOF_LONG_DOUBLE !=0
    NATIVE_LDOUBLE_ = new PredType(H5T_NATIVE_LDOUBLE);
#endif
    NATIVE_B8_ = new PredType(H5T_NATIVE_B8);
    NATIVE_B16_ = new PredType(H5T_NATIVE_B16);
    NATIVE_B32_ = new PredType(H5T_NATIVE_B32);
    NATIVE_B64_ = new PredType(H5T_NATIVE_B64);
    NATIVE_OPAQUE_ = new PredType(H5T_NATIVE_OPAQUE);
    NATIVE_HSIZE_ = new PredType(H5T_NATIVE_HSIZE);
    NATIVE_HSSIZE_ = new PredType(H5T_NATIVE_HSSIZE);
    NATIVE_HERR_ = new PredType(H5T_NATIVE_HERR);
    NATIVE_HBOOL_ = new PredType(H5T_NATIVE_HBOOL);

    NATIVE_INT8_ = new PredType(H5T_NATIVE_INT8);
    NATIVE_UINT8_ = new PredType(H5T_NATIVE_UINT8);
    NATIVE_INT16_ = new PredType(H5T_NATIVE_INT16);
    NATIVE_UINT16_ = new PredType(H5T_NATIVE_UINT16);
    NATIVE_INT32_ = new PredType(H5T_NATIVE_INT32);
    NATIVE_UINT32_ = new PredType(H5T_NATIVE_UINT32);
    NATIVE_INT64_ = new PredType(H5T_NATIVE_INT64);
    NATIVE_UINT64_ = new PredType(H5T_NATIVE_UINT64);

// LEAST types
#if H5_SIZEOF_INT_LEAST8_T != 0
    NATIVE_INT_LEAST8_ = new PredType(H5T_NATIVE_INT_LEAST8);
#endif /* H5_SIZEOF_INT_LEAST8_T */
#if H5_SIZEOF_UINT_LEAST8_T != 0
    NATIVE_UINT_LEAST8_ = new PredType(H5T_NATIVE_UINT_LEAST8);
#endif /* H5_SIZEOF_UINT_LEAST8_T */

#if H5_SIZEOF_INT_LEAST16_T != 0
    NATIVE_INT_LEAST16_ = new PredType(H5T_NATIVE_INT_LEAST16);
#endif /* H5_SIZEOF_INT_LEAST16_T */
#if H5_SIZEOF_UINT_LEAST16_T != 0
    NATIVE_UINT_LEAST16_ = new PredType(H5T_NATIVE_UINT_LEAST16);
#endif /* H5_SIZEOF_UINT_LEAST16_T */

#if H5_SIZEOF_INT_LEAST32_T != 0
    NATIVE_INT_LEAST32_ = new PredType(H5T_NATIVE_INT_LEAST32);
#endif /* H5_SIZEOF_INT_LEAST32_T */
#if H5_SIZEOF_UINT_LEAST32_T != 0
    NATIVE_UINT_LEAST32_ = new PredType(H5T_NATIVE_UINT_LEAST32);
#endif /* H5_SIZEOF_UINT_LEAST32_T */

#if H5_SIZEOF_INT_LEAST64_T != 0
    NATIVE_INT_LEAST64_ = new PredType(H5T_NATIVE_INT_LEAST64);
#endif /* H5_SIZEOF_INT_LEAST64_T */
#if H5_SIZEOF_UINT_LEAST64_T != 0
    NATIVE_UINT_LEAST64_ = new PredType(H5T_NATIVE_UINT_LEAST64);
#endif /* H5_SIZEOF_UINT_LEAST64_T */

// FAST types
#if H5_SIZEOF_INT_FAST8_T != 0
    NATIVE_INT_FAST8_ = new PredType(H5T_NATIVE_INT_FAST8);
#endif /* H5_SIZEOF_INT_FAST8_T */
#if H5_SIZEOF_UINT_FAST8_T != 0
    NATIVE_UINT_FAST8_ = new PredType(H5T_NATIVE_UINT_FAST8);
#endif /* H5_SIZEOF_UINT_FAST8_T */

#if H5_SIZEOF_INT_FAST16_T != 0
    NATIVE_INT_FAST16_ = new PredType(H5T_NATIVE_INT_FAST16);
#endif /* H5_SIZEOF_INT_FAST16_T */
#if H5_SIZEOF_UINT_FAST16_T != 0
    NATIVE_UINT_FAST16_ = new PredType(H5T_NATIVE_UINT_FAST16);
#endif /* H5_SIZEOF_UINT_FAST16_T */

#if H5_SIZEOF_INT_FAST32_T != 0
    NATIVE_INT_FAST32_ = new PredType(H5T_NATIVE_INT_FAST32);
#endif /* H5_SIZEOF_INT_FAST32_T */
#if H5_SIZEOF_UINT_FAST32_T != 0
    NATIVE_UINT_FAST32_ = new PredType(H5T_NATIVE_UINT_FAST32);
#endif /* H5_SIZEOF_UINT_FAST32_T */

#if H5_SIZEOF_INT_FAST64_T != 0
    NATIVE_INT_FAST64_ = new PredType(H5T_NATIVE_INT_FAST64);
#endif /* H5_SIZEOF_INT_FAST64_T */
#if H5_SIZEOF_UINT_FAST64_T != 0
    NATIVE_UINT_FAST64_ = new PredType(H5T_NATIVE_UINT_FAST64);
#endif /* H5_SIZEOF_UINT_FAST64_T */

} // makePredTypes


//--------------------------------------------------------------------------
// Function:    PredType::deleteConstants
// Purpose:     Deletes all PredType constant pointers.
// Programmer   Binh-Minh Ribler - September 2015
//--------------------------------------------------------------------------
void PredType::deleteConstants()
{
    delete STD_I8BE_;
    delete STD_I8LE_;
    delete STD_I16BE_;
    delete STD_I16LE_;
    delete STD_I32BE_;
    delete STD_I32LE_;
    delete STD_I64BE_;
    delete STD_I64LE_;
    delete STD_U8BE_;
    delete STD_U8LE_;
    delete STD_U16BE_;
    delete STD_U16LE_;
    delete STD_U32BE_;
    delete STD_U32LE_;
    delete STD_U64BE_;
    delete STD_U64LE_;
    delete STD_B8BE_;
    delete STD_B8LE_;
    delete STD_B16BE_;
    delete STD_B16LE_;
    delete STD_B32BE_;
    delete STD_B32LE_;
    delete STD_B64BE_;
    delete STD_B64LE_;
    delete STD_REF_OBJ_;
    delete STD_REF_DSETREG_;

    delete C_S1_;
    delete FORTRAN_S1_;

    delete IEEE_F32BE_;
    delete IEEE_F32LE_;
    delete IEEE_F64BE_;
    delete IEEE_F64LE_;

    delete UNIX_D32BE_;
    delete UNIX_D32LE_;
    delete UNIX_D64BE_;
    delete UNIX_D64LE_;

    delete INTEL_I8_;
    delete INTEL_I16_;
    delete INTEL_I32_;
    delete INTEL_I64_;
    delete INTEL_U8_;
    delete INTEL_U16_;
    delete INTEL_U32_;
    delete INTEL_U64_;
    delete INTEL_B8_;
    delete INTEL_B16_;
    delete INTEL_B32_;
    delete INTEL_B64_;
    delete INTEL_F32_;
    delete INTEL_F64_;

    delete ALPHA_I8_;
    delete ALPHA_I16_;
    delete ALPHA_I32_;
    delete ALPHA_I64_;
    delete ALPHA_U8_;
    delete ALPHA_U16_;
    delete ALPHA_U32_;
    delete ALPHA_U64_;
    delete ALPHA_B8_;
    delete ALPHA_B16_;
    delete ALPHA_B32_;
    delete ALPHA_B64_;
    delete ALPHA_F32_;
    delete ALPHA_F64_;

    delete MIPS_I8_;
    delete MIPS_I16_;
    delete MIPS_I32_;
    delete MIPS_I64_;
    delete MIPS_U8_;
    delete MIPS_U16_;
    delete MIPS_U32_;
    delete MIPS_U64_;
    delete MIPS_B8_;
    delete MIPS_B16_;
    delete MIPS_B32_;
    delete MIPS_B64_;
    delete MIPS_F32_;
    delete MIPS_F64_;

    delete NATIVE_CHAR_;
    delete NATIVE_SCHAR_;
    delete NATIVE_UCHAR_;
    delete NATIVE_SHORT_;
    delete NATIVE_USHORT_;
    delete NATIVE_INT_;
    delete NATIVE_UINT_;
    delete NATIVE_LONG_;
    delete NATIVE_ULONG_;
    delete NATIVE_LLONG_;
    delete NATIVE_ULLONG_;
    delete NATIVE_FLOAT_;
    delete NATIVE_DOUBLE_;
    delete NATIVE_LDOUBLE_;
    delete NATIVE_B8_;
    delete NATIVE_B16_;
    delete NATIVE_B32_;
    delete NATIVE_B64_;
    delete NATIVE_OPAQUE_;
    delete NATIVE_HSIZE_;
    delete NATIVE_HSSIZE_;
    delete NATIVE_HERR_;
    delete NATIVE_HBOOL_;

    delete NATIVE_INT8_;
    delete NATIVE_UINT8_;
    delete NATIVE_INT16_;
    delete NATIVE_UINT16_;
    delete NATIVE_INT32_;
    delete NATIVE_UINT32_;
    delete NATIVE_INT64_;
    delete NATIVE_UINT64_;

// LEAST types
#if H5_SIZEOF_INT_LEAST8_T != 0
    delete NATIVE_INT_LEAST8_;
#endif /* H5_SIZEOF_INT_LEAST8_T */
#if H5_SIZEOF_UINT_LEAST8_T != 0
    delete NATIVE_UINT_LEAST8_;
#endif /* H5_SIZEOF_UINT_LEAST8_T */

#if H5_SIZEOF_INT_LEAST16_T != 0
    delete NATIVE_INT_LEAST16_;
#endif /* H5_SIZEOF_INT_LEAST16_T */
#if H5_SIZEOF_UINT_LEAST16_T != 0
    delete NATIVE_UINT_LEAST16_;
#endif /* H5_SIZEOF_UINT_LEAST16_T */

#if H5_SIZEOF_INT_LEAST32_T != 0
    delete NATIVE_INT_LEAST32_;
#endif /* H5_SIZEOF_INT_LEAST32_T */
#if H5_SIZEOF_UINT_LEAST32_T != 0
    delete NATIVE_UINT_LEAST32_;
#endif /* H5_SIZEOF_UINT_LEAST32_T */

#if H5_SIZEOF_INT_LEAST64_T != 0
    delete NATIVE_INT_LEAST64_;
#endif /* H5_SIZEOF_INT_LEAST64_T */
#if H5_SIZEOF_UINT_LEAST64_T != 0
    delete NATIVE_UINT_LEAST64_;
#endif /* H5_SIZEOF_UINT_LEAST64_T */

// FAST types
#if H5_SIZEOF_INT_FAST8_T != 0
    delete NATIVE_INT_FAST8_;
#endif /* H5_SIZEOF_INT_FAST8_T */
#if H5_SIZEOF_UINT_FAST8_T != 0
    delete NATIVE_UINT_FAST8_;
#endif /* H5_SIZEOF_UINT_FAST8_T */

#if H5_SIZEOF_INT_FAST16_T != 0
    delete NATIVE_INT_FAST16_;
#endif /* H5_SIZEOF_INT_FAST16_T */
#if H5_SIZEOF_UINT_FAST16_T != 0
    delete NATIVE_UINT_FAST16_;
#endif /* H5_SIZEOF_UINT_FAST16_T */

#if H5_SIZEOF_INT_FAST32_T != 0
    delete NATIVE_INT_FAST32_;
#endif /* H5_SIZEOF_INT_FAST32_T */
#if H5_SIZEOF_UINT_FAST32_T != 0
    delete NATIVE_UINT_FAST32_;
#endif /* H5_SIZEOF_UINT_FAST32_T */

#if H5_SIZEOF_INT_FAST64_T != 0
    delete NATIVE_INT_FAST64_;
#endif /* H5_SIZEOF_INT_FAST64_T */
#if H5_SIZEOF_UINT_FAST64_T != 0
    delete NATIVE_UINT_FAST64_;
#endif /* H5_SIZEOF_UINT_FAST64_T */

    delete PREDTYPE_CONST_;
    PREDTYPE_CONST_ = 0;
} // deleteConstants

// Assigning the constant references to the dynamically allocated constants
// after using PREDTYPE_CONST to activate the creation of those constants.

//  PREDTYPE_CONST will be the first static constant declared in the file.
//  getPredTypes() will call makePredTypes() to allocate memory for all the
//  PredType constants.  Note that, there is a similar function to getPredTypes()
//  in other classes, that have global constants, is called getConstant().

const PredType& PredType::PREDTYPE_CONST = *PredType::getPredTypes();
const PredType& PredType::STD_I8BE = *STD_I8BE_;
const PredType& PredType::STD_I8LE = *STD_I8LE_;
const PredType& PredType::STD_I16BE = *STD_I16BE_;
const PredType& PredType::STD_I16LE = *STD_I16LE_;
const PredType& PredType::STD_I32BE = *STD_I32BE_;
const PredType& PredType::STD_I32LE = *STD_I32LE_;
const PredType& PredType::STD_I64BE = *STD_I64BE_;
const PredType& PredType::STD_I64LE = *STD_I64LE_;
const PredType& PredType::STD_U8BE = *STD_U8BE_;
const PredType& PredType::STD_U8LE = *STD_U8LE_;
const PredType& PredType::STD_U16BE = *STD_U16BE_;
const PredType& PredType::STD_U16LE = *STD_U16LE_;
const PredType& PredType::STD_U32BE = *STD_U32BE_;
const PredType& PredType::STD_U32LE = *STD_U32LE_;
const PredType& PredType::STD_U64BE = *STD_U64BE_;
const PredType& PredType::STD_U64LE = *STD_U64LE_;
const PredType& PredType::STD_B8BE = *STD_B8BE_;
const PredType& PredType::STD_B8LE = *STD_B8LE_;
const PredType& PredType::STD_B16BE = *STD_B16BE_;
const PredType& PredType::STD_B16LE = *STD_B16LE_;
const PredType& PredType::STD_B32BE = *STD_B32BE_;
const PredType& PredType::STD_B32LE = *STD_B32LE_;
const PredType& PredType::STD_B64BE = *STD_B64BE_;
const PredType& PredType::STD_B64LE = *STD_B64LE_;
const PredType& PredType::STD_REF_OBJ = *STD_REF_OBJ_;
const PredType& PredType::STD_REF_DSETREG = *STD_REF_DSETREG_;

const PredType& PredType::C_S1 = *C_S1_;
const PredType& PredType::FORTRAN_S1 = *FORTRAN_S1_;

const PredType& PredType::IEEE_F32BE = *IEEE_F32BE_;
const PredType& PredType::IEEE_F32LE = *IEEE_F32LE_;
const PredType& PredType::IEEE_F64BE = *IEEE_F64BE_;
const PredType& PredType::IEEE_F64LE = *IEEE_F64LE_;

const PredType& PredType::UNIX_D32BE = *UNIX_D32BE_;
const PredType& PredType::UNIX_D32LE = *UNIX_D32LE_;
const PredType& PredType::UNIX_D64BE = *UNIX_D64BE_;
const PredType& PredType::UNIX_D64LE = *UNIX_D64LE_;

const PredType& PredType::INTEL_I8 = *INTEL_I8_;
const PredType& PredType::INTEL_I16 = *INTEL_I16_;
const PredType& PredType::INTEL_I32 = *INTEL_I32_;
const PredType& PredType::INTEL_I64 = *INTEL_I64_;
const PredType& PredType::INTEL_U8 = *INTEL_U8_;
const PredType& PredType::INTEL_U16 = *INTEL_U16_;
const PredType& PredType::INTEL_U32 = *INTEL_U32_;
const PredType& PredType::INTEL_U64 = *INTEL_U64_;
const PredType& PredType::INTEL_B8 = *INTEL_B8_;
const PredType& PredType::INTEL_B16 = *INTEL_B16_;
const PredType& PredType::INTEL_B32 = *INTEL_B32_;
const PredType& PredType::INTEL_B64 = *INTEL_B64_;
const PredType& PredType::INTEL_F32 = *INTEL_F32_;
const PredType& PredType::INTEL_F64 = *INTEL_F64_;

const PredType& PredType::ALPHA_I8 = *ALPHA_I8_;
const PredType& PredType::ALPHA_I16 = *ALPHA_I16_;
const PredType& PredType::ALPHA_I32 = *ALPHA_I32_;
const PredType& PredType::ALPHA_I64 = *ALPHA_I64_;
const PredType& PredType::ALPHA_U8 = *ALPHA_U8_;
const PredType& PredType::ALPHA_U16 = *ALPHA_U16_;
const PredType& PredType::ALPHA_U32 = *ALPHA_U32_;
const PredType& PredType::ALPHA_U64 = *ALPHA_U64_;
const PredType& PredType::ALPHA_B8 = *ALPHA_B8_;
const PredType& PredType::ALPHA_B16 = *ALPHA_B16_;
const PredType& PredType::ALPHA_B32 = *ALPHA_B32_;
const PredType& PredType::ALPHA_B64 = *ALPHA_B64_;
const PredType& PredType::ALPHA_F32 = *ALPHA_F32_;
const PredType& PredType::ALPHA_F64 = *ALPHA_F64_;

const PredType& PredType::MIPS_I8 = *MIPS_I8_;
const PredType& PredType::MIPS_I16 = *MIPS_I16_;
const PredType& PredType::MIPS_I32 = *MIPS_I32_;
const PredType& PredType::MIPS_I64 = *MIPS_I64_;
const PredType& PredType::MIPS_U8 = *MIPS_U8_;
const PredType& PredType::MIPS_U16 = *MIPS_U16_;
const PredType& PredType::MIPS_U32 = *MIPS_U32_;
const PredType& PredType::MIPS_U64 = *MIPS_U64_;
const PredType& PredType::MIPS_B8 = *MIPS_B8_;
const PredType& PredType::MIPS_B16 = *MIPS_B16_;
const PredType& PredType::MIPS_B32 = *MIPS_B32_;
const PredType& PredType::MIPS_B64 = *MIPS_B64_;
const PredType& PredType::MIPS_F32 = *MIPS_F32_;
const PredType& PredType::MIPS_F64 = *MIPS_F64_;

const PredType& PredType::NATIVE_CHAR = *NATIVE_CHAR_;
const PredType& PredType::NATIVE_SCHAR = *NATIVE_SCHAR_;
const PredType& PredType::NATIVE_UCHAR = *NATIVE_UCHAR_;
const PredType& PredType::NATIVE_SHORT = *NATIVE_SHORT_;
const PredType& PredType::NATIVE_USHORT = *NATIVE_USHORT_;
const PredType& PredType::NATIVE_INT = *NATIVE_INT_;
const PredType& PredType::NATIVE_UINT = *NATIVE_UINT_;
const PredType& PredType::NATIVE_LONG = *NATIVE_LONG_;
const PredType& PredType::NATIVE_ULONG = *NATIVE_ULONG_;
const PredType& PredType::NATIVE_LLONG = *NATIVE_LLONG_;
const PredType& PredType::NATIVE_ULLONG = *NATIVE_ULLONG_;
const PredType& PredType::NATIVE_FLOAT = *NATIVE_FLOAT_;
const PredType& PredType::NATIVE_DOUBLE = *NATIVE_DOUBLE_;
const PredType& PredType::NATIVE_LDOUBLE = *NATIVE_LDOUBLE_;
const PredType& PredType::NATIVE_B8 = *NATIVE_B8_;
const PredType& PredType::NATIVE_B16 = *NATIVE_B16_;
const PredType& PredType::NATIVE_B32 = *NATIVE_B32_;
const PredType& PredType::NATIVE_B64 = *NATIVE_B64_;
const PredType& PredType::NATIVE_OPAQUE = *NATIVE_OPAQUE_;
const PredType& PredType::NATIVE_HSIZE = *NATIVE_HSIZE_;
const PredType& PredType::NATIVE_HSSIZE = *NATIVE_HSSIZE_;
const PredType& PredType::NATIVE_HERR = *NATIVE_HERR_;
const PredType& PredType::NATIVE_HBOOL = *NATIVE_HBOOL_;

const PredType& PredType::NATIVE_INT8 = *NATIVE_INT8_;
const PredType& PredType::NATIVE_UINT8 = *NATIVE_UINT8_;
const PredType& PredType::NATIVE_INT16 = *NATIVE_INT16_;
const PredType& PredType::NATIVE_UINT16 = *NATIVE_UINT16_;
const PredType& PredType::NATIVE_INT32 = *NATIVE_INT32_;
const PredType& PredType::NATIVE_UINT32 = *NATIVE_UINT32_;
const PredType& PredType::NATIVE_INT64 = *NATIVE_INT64_;
const PredType& PredType::NATIVE_UINT64 = *NATIVE_UINT64_;

// LEAST types
#if H5_SIZEOF_INT_LEAST8_T != 0
const PredType& PredType::NATIVE_INT_LEAST8 = *NATIVE_INT_LEAST8_;
#endif /* H5_SIZEOF_INT_LEAST8_T */
#if H5_SIZEOF_UINT_LEAST8_T != 0
const PredType& PredType::NATIVE_UINT_LEAST8 = *NATIVE_UINT_LEAST8_;
#endif /* H5_SIZEOF_UINT_LEAST8_T */

#if H5_SIZEOF_INT_LEAST16_T != 0
const PredType& PredType::NATIVE_INT_LEAST16 = *NATIVE_INT_LEAST16_;
#endif /* H5_SIZEOF_INT_LEAST16_T */
#if H5_SIZEOF_UINT_LEAST16_T != 0
const PredType& PredType::NATIVE_UINT_LEAST16 = *NATIVE_UINT_LEAST16_;
#endif /* H5_SIZEOF_UINT_LEAST16_T */

#if H5_SIZEOF_INT_LEAST32_T != 0
const PredType& PredType::NATIVE_INT_LEAST32 = *NATIVE_INT_LEAST32_;
#endif /* H5_SIZEOF_INT_LEAST32_T */
#if H5_SIZEOF_UINT_LEAST32_T != 0
const PredType& PredType::NATIVE_UINT_LEAST32 = *NATIVE_UINT_LEAST32_;
#endif /* H5_SIZEOF_UINT_LEAST32_T */

#if H5_SIZEOF_INT_LEAST64_T != 0
const PredType& PredType::NATIVE_INT_LEAST64 = *NATIVE_INT_LEAST64_;
#endif /* H5_SIZEOF_INT_LEAST64_T */
#if H5_SIZEOF_UINT_LEAST64_T != 0
const PredType& PredType::NATIVE_UINT_LEAST64 = *NATIVE_UINT_LEAST64_;
#endif /* H5_SIZEOF_UINT_LEAST64_T */

// FAST types
#if H5_SIZEOF_INT_FAST8_T != 0
const PredType& PredType::NATIVE_INT_FAST8 = *NATIVE_INT_FAST8_;
#endif /* H5_SIZEOF_INT_FAST8_T */
#if H5_SIZEOF_UINT_FAST8_T != 0
const PredType& PredType::NATIVE_UINT_FAST8 = *NATIVE_UINT_FAST8_;
#endif /* H5_SIZEOF_UINT_FAST8_T */

#if H5_SIZEOF_INT_FAST16_T != 0
const PredType& PredType::NATIVE_INT_FAST16 = *NATIVE_INT_FAST16_;
#endif /* H5_SIZEOF_INT_FAST16_T */
#if H5_SIZEOF_UINT_FAST16_T != 0
const PredType& PredType::NATIVE_UINT_FAST16 = *NATIVE_UINT_FAST16_;
#endif /* H5_SIZEOF_UINT_FAST16_T */

#if H5_SIZEOF_INT_FAST32_T != 0
const PredType& PredType::NATIVE_INT_FAST32 = *NATIVE_INT_FAST32_;
#endif /* H5_SIZEOF_INT_FAST32_T */
#if H5_SIZEOF_UINT_FAST32_T != 0
const PredType& PredType::NATIVE_UINT_FAST32 = *NATIVE_UINT_FAST32_;
#endif /* H5_SIZEOF_UINT_FAST32_T */

#if H5_SIZEOF_INT_FAST64_T != 0
const PredType& PredType::NATIVE_INT_FAST64 = *NATIVE_INT_FAST64_;
#endif /* H5_SIZEOF_INT_FAST64_T */
#if H5_SIZEOF_UINT_FAST64_T != 0
const PredType& PredType::NATIVE_UINT_FAST64 = *NATIVE_UINT_FAST64_;
#endif /* H5_SIZEOF_UINT_FAST64_T */