Exemple #1
0
bool unwrap(const Number& cfvalue, float& value) {
    if (!cfvalue.c_obj()) {
        return false;
    }
    return CFNumberGetValue(cfvalue.c_obj(), kCFNumberFloatType, &value);
}
Exemple #2
0
bool unwrap(const Number& cfvalue, double& value) {
    if (!cfvalue.c_obj()) {
        return false;
    }
    return CFNumberGetValue(cfvalue.c_obj(), kCFNumberDoubleType, &value);
}
Exemple #3
0
bool unwrap(const Number& cfvalue, long long& value) {
    if (!cfvalue.c_obj()) {
        return false;
    }
    return CFNumberGetValue(cfvalue.c_obj(), kCFNumberLongLongType, &value);
}