Function getInt8

Synopsis

#include <include/bitpropvariant.hpp>

int8_t getInt8() const

Description

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

Source

Lines 298-305 in src/bitpropvariant.cpp. Line 454 in include/bitpropvariant.hpp.

int8_t BitPropVariant::getInt8() const {
    switch ( vt ) {
        case VT_I1:
            return cVal;
        default:
            throw BitException( "BitPropVariant is not a 8-bits integer" );
    }
}





Add Discussion as Guest

Log in