Function getUInt32

Synopsis

#include <include/bitpropvariant.hpp>

uint32_t getUInt32() const

Description

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

Source

Lines 266-279 in src/bitpropvariant.cpp. Line 442 in include/bitpropvariant.hpp.

uint32_t BitPropVariant::getUInt32() const {
    switch ( vt ) {
        case VT_UI1:
            return bVal;
        case VT_UI2:
            return uiVal;
        case VT_UINT:
            return uintVal;
        case VT_UI4:
            return ulVal;
        default:
            throw BitException( "BitPropVariant is not a 32-bits unsigned integer" );
    }
}





Add Discussion as Guest

Log in