toInt()

Convert the attribute value to an int (n encoding).

Synopsis:

#include <qpps/variant.h>
 
int toInt( bool *ok = 0 ) const;

Arguments:

ok
A reference to a bool for storing the conversion status. When the reference is non-NULL, the status is set to false if a conversion error occurs; otherwise, it's set to true.

Description:

Convert the attribute value to an int (n encoding).

Returns:

An int containing the attribute's value.