Exemple #1
0
//-------------------------------------------------------------------------------------------------
bool DictionaryProperty::exists(const UserObject& object, const camp::Value& key) const
{
    // Check if the property is readable
    if (!readable(object))
        CAMP_ERROR(ForbiddenRead(name()));

    return queryExists(object,key);
}
Exemple #2
0
//-------------------------------------------------------------------------------------------------
DictionaryIteratorPtr DictionaryProperty::iterator(const UserObject& object) const
{
    // Check if the property is readable
    if (!readable(object))
        CAMP_ERROR(ForbiddenRead(name()));

    return getIterator(object);
}
Exemple #3
0
//-------------------------------------------------------------------------------------------------
std::size_t DictionaryProperty::size(const UserObject& object) const
{
    // Check if the property is readable
    if (!readable(object))
        CAMP_ERROR(ForbiddenRead(name()));

    return getSize(object);
}
Exemple #4
0
Value Property::get(const UserObject& object) const
{
    // Check if the property is readable
    if (!readable(object))
        PONDER_ERROR(ForbiddenRead(name()));

    return getValue(object);
}