summaryrefslogtreecommitdiff
path: root/src/core/common/Rtti.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/common/Rtti.cpp')
-rw-r--r--src/core/common/Rtti.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/core/common/Rtti.cpp b/src/core/common/Rtti.cpp
index 239f2b4..6809911 100644
--- a/src/core/common/Rtti.cpp
+++ b/src/core/common/Rtti.cpp
@@ -161,6 +161,16 @@ std::shared_ptr<PropertyDescriptor> RttiType::getProperty(const std::string &nam
return it->second;
}
+bool RttiType::hasMethod(const std::string &name) const
+{
+ return methods.count(name) > 0;
+}
+
+bool RttiType::hasProperty(const std::string &name) const
+{
+ return properties.count(name) > 0;
+}
+
/* Constant initialization */
namespace RttiTypes {