Function getUInt64

Synopsis

#include <include/bitpropvariant.hpp>

uint64_t getUInt64() const

Description

Return
the 64-bit unsigned integer value of this variant (it throws an exception if the variant is not an 8, 16, 32 or 64-bit unsigned integer).

Source

Lines 281-296 in src/bitpropvariant.cpp. Line 448 in include/bitpropvariant.hpp.

uint64_t BitPropVariant::getUInt64() const {
    switch ( vt ) {
        case VT_UI1:
            return bVal;
        case VT_UI2:
            return uiVal;
        case VT_UINT:
            return uintVal;
        case VT_UI4:
            return ulVal;
        case VT_UI8:
            return uhVal.QuadPart;
        default:
            throw BitException( "BitPropVariant is not a 64-bits unsigned integer" );
    }
}





Add Discussion as Guest

Log in