Function getUInt8

Synopsis

#include <include/bitpropvariant.hpp>

uint8_t getUInt8() const

Description

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

Source

Lines 246-253 in src/bitpropvariant.cpp. Line 430 in include/bitpropvariant.hpp.

uint8_t BitPropVariant::getUInt8() const {
    switch ( vt ) {
        case VT_UI1:
            return bVal;
        default:
            throw BitException( "BitPropVariant is not a 8-bits unsigned integer" );
    }
}





Add Discussion as Guest

Log in