Ejemplo n.º 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);
}
Ejemplo n.º 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);
}
Ejemplo n.º 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);
}
Ejemplo n.º 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);
}