For each getSubField overload a throwing getSubFieldT has been added and
vice versa. These have been documented in doxygen and in the module
documentation.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk>
Implementation of getSubField (and getScalarArrayField) introduced in
the getAs pull request throws an exception then catches it to return a
null pointer. Implement without throwing.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk>
Fix seg fault when getAs is called with a string of the form x.y (or
x_1. ... x_n.y) where x or (x1. ... .x_i) is not a structure field.
Signed-off-by: Dave Hickin <david.hickin@diamond.ac.uk>