From 99d04472eb4fdbba35f6ab8c72a2efa6af40fa72 Mon Sep 17 00:00:00 2001 From: Benjamin Paassen Date: Sun, 8 Feb 2015 21:40:37 +0100 Subject: added getFieldDescriptor method. --- src/core/model/Domain.hpp | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/core/model/Domain.hpp') diff --git a/src/core/model/Domain.hpp b/src/core/model/Domain.hpp index db3b9e6..24199b1 100644 --- a/src/core/model/Domain.hpp +++ b/src/core/model/Domain.hpp @@ -515,6 +515,16 @@ public: * FieldDescriptor is not registered at this Descriptor. */ ssize_t getFieldDescriptorIndex(Handle fd) const; + /** + * Returns the FieldDescriptor with the given name. + * + * @param name the name of a FieldDescriptor. + + * @return the FieldDescriptor with the given name or a nullptr if no + * such FieldDescriptor was found. + */ + Rooted getFieldDescriptor( + const std::string &name = DEFAULT_FIELD_NAME) const; /** * This returns true if this Descriptor has a FieldDescriptor with the -- cgit v1.2.3