Function getInt64

Synopsis

#include <include/bitpropvariant.hpp>

int64_t getInt64() const

Description

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

Source

Lines 333-348 in src/bitpropvariant.cpp. Line 472 in include/bitpropvariant.hpp.

int64_t BitPropVariant::getInt64() const {
    switch ( vt ) {
        case VT_I1:
            return cVal;
        case VT_I2:
            return iVal;
        case VT_INT:
            return intVal;
        case VT_I4:
            return lVal;
        case VT_I8:
            return hVal.QuadPart;
        default:
            throw BitException( "BitPropVariant is not a 64-bits integer" );
    }
}





Add Discussion as Guest

Log in