示例#1
0
bool DataProperty::getValue(DataObject* obj, DataValue& outValue) const
{
	if (_getter && _getter(obj, const_cast<DataProperty*>(this), outValue))
	{
		outValue.convertTo(_type);
		return true;
	}

	return false;
}
示例#2
0
bool CProperty::Get(string &value) const {
    return _getter(value);
}
示例#3
0
int MaxLogSizeKB::get() {
    return (_getter == nullptr) ? 10 : _getter();
}