diff options
Diffstat (limited to 'src/shared/ResourceImpl.cpp')
-rw-r--r-- | src/shared/ResourceImpl.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/shared/ResourceImpl.cpp b/src/shared/ResourceImpl.cpp index 93d6ea03..949a8b36 100644 --- a/src/shared/ResourceImpl.cpp +++ b/src/shared/ResourceImpl.cpp @@ -62,6 +62,19 @@ ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value) } +bool +ResourceImpl::has_property(const Raul::URI& uri, const Raul::Atom& value) +{ + Properties::const_iterator i = _properties.find(uri); + for (; i->first == uri; ++i) { + if (i->second == value) { + return true; + } + } + return false; +} + + Raul::Atom& ResourceImpl::set_property(const Raul::URI& uri, const Raul::Atom& value) const { |