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