Function getInt16

Synopsis

#include <include/bitpropvariant.hpp>

int16_t getInt16() const

Description

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

Source

Lines 307-316 in src/bitpropvariant.cpp. Line 460 in include/bitpropvariant.hpp.

int16_t BitPropVariant::getInt16() const {
    switch ( vt ) {
        case VT_I1:
            return cVal;
        case VT_I2:
            return iVal;
        default:
            throw BitException( "BitPropVariant is not a 16-bits integer" );
    }
}





Add Discussion as Guest

Log in